Struct Circle
Structure defining a circle curve in three-dimensional euclidean space.
Namespace: BRIDGES.Geometry.Euclidean3D
Assembly: BRIDGES.dll
Syntax
public struct Circle : IGeometricallyEquatable<Circle>
Constructors
| Improve this Doc View SourceCircle(Plane, Double)
Initialises a new instance of the Circle structure by defining its centre, orientation and radius.
Declaration
public Circle(Plane plane, double radius)
Parameters
Type | Name | Description |
---|---|---|
Plane | plane | Plane defining the centre and the orientation of the Circle. |
Double | radius | Radius of the Circle. |
Circle(Point, Double)
Initialises a new instance of the Circle structure, parallel to the WorldXY plane, by defining its centre and radius.
Declaration
public Circle(Point centre, double radius)
Parameters
Type | Name | Description |
---|---|---|
Point | centre | Centre of the Circle. |
Double | radius | Radius of the Circle. |
Properties
| Improve this Doc View SourceCentre
Gets or sets the centre of the current Circle.
Declaration
public Point Centre { get; set; }
Property Value
Type | Description |
---|---|
Point |
IsClosed
Gets a boolean evaluating whether the current Circle is closed or not;
Declaration
public readonly bool IsClosed { get; }
Property Value
Type | Description |
---|---|
Boolean |
Plane
Gets or sets the plane defining the centre and the orientation of the current Circle
Declaration
public Plane Plane { get; set; }
Property Value
Type | Description |
---|---|
Plane |
Radius
Gets or sets the radius of the current Circle.
Declaration
public double Radius { get; set; }
Property Value
Type | Description |
---|---|
Double |
Methods
| Improve this Doc View SourceEquals(Circle)
Declaration
public bool Equals(Circle other)
Parameters
Type | Name | Description |
---|---|---|
Circle | other | Circle to compare with. |
Returns
Type | Description |
---|---|
Boolean | true if the two Circle are equal, false otherwise. |
Remarks
Two Circle are equal if their centre, radius and plane are equal.
Equals(Object)
Structure defining a circle curve in three-dimensional euclidean space.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Flip()
Flips the current Circle by reversing the normal axis (and the in-plane YAxis).
Declaration
public void Flip()
GeometricallyEquals(Circle)
Evaluates whether the current object is geometrically equal to the given T
.
Declaration
public bool GeometricallyEquals(Circle other)
Parameters
Type | Name | Description |
---|---|---|
Circle | other |
Returns
Type | Description |
---|---|
Boolean | true if the two objects are geometrically equal, false otherwise. |
GetHashCode()
Structure defining a circle curve in three-dimensional euclidean space.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
PointAt(Double, CurveParameterFormat)
Evaluates the current Line at the given parameter.
Declaration
public Point PointAt(double t, CurveParameterFormat format)
Parameters
Type | Name | Description |
---|---|---|
Double | t | Parameter to evaluate the Line. |
CurveParameterFormat | format | Format of the parameter.
|
Returns
Type | Description |
---|---|
Point |
PointAt(Double)
Evaluates the current Circle at the given angle.
Declaration
public Point PointAt(double angle)
Parameters
Type | Name | Description |
---|---|---|
Double | angle | Value of the anlgle (in radians). |
Returns
Type | Description |
---|---|
Point |
ToString()
Structure defining a circle curve in three-dimensional euclidean space.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |