Namespaces

Types in MathNet.Spatial.Euclidean

Type Circle3D

Namespace MathNet.Spatial.Euclidean

Parent ValueType

Interfaces IEquatable<Circle3D>

Describes a 3 dimensional circle

Constructors

Static Functions

Methods

Properties

Fields

Public Constructors

Circle3D(Point3D centerPoint, UnitVector3D axis, double radius)

Initializes a new instance of the Circle3D struct. Constructs a Circle3D with a given radius at a centerPoint orientated to the axis
Parameters
Point3D centerPoint

The center of the circle

UnitVector3D axis

the axis of the circle

double radius

the radius of the circle

Circle3D(Point3D p1, Point3D p2, UnitVector3D axis)

Initializes a new instance of the Circle3D struct. Create a circle from the midpoint between two points, in a direction along a specified axis
Obsolete: This constructor will be removed, use factory method FromPointsAndAxis. Made obsolete 2017-12-05.
Parameters
Point3D p1

First point on the circumference of the circle

Point3D p2

Second point on the circumference of the circle

UnitVector3D axis

Direction of the plane in which the circle lies

Circle3D(Point3D p1, Point3D p2, Point3D p3)

Initializes a new instance of the Circle3D struct. Create a circle from three points which lie along its circumference.
Obsolete: This constructor will be removed, use factory method FromPoints. Made obsolete 2017-12-05.
Parameters
Point3D p1

The first point on the circle

Point3D p2

The second point on the circle

Point3D p3

The third point on the circle

Public Static Functions

Circle3D FromPoints(Point3D p1, Point3D p2, Point3D p3)

Initializes a new instance of the Circle3D struct. Create a circle from three points which lie along its circumference.
Parameters
Point3D p1

The first point on the circle

Point3D p2

The second point on the circle

Point3D p3

The third point on the circle

Return
Circle3D

A Circle3D

Circle3D FromPointsAndAxis(Point3D p1, Point3D p2, UnitVector3D axis)

Initializes a new instance of the Circle3D struct. Create a circle from the midpoint between two points, in a direction along a specified axis
Parameters
Point3D p1

First point on the circumference of the circle

Point3D p2

Second point on the circumference of the circle

UnitVector3D axis

Direction of the plane in which the circle lies

Return
Circle3D

A Circle3D

Public Methods

bool Equals(Circle3D c, double tolerance)

Returns a value to indicate if a pair of circles are equal
Parameters
Circle3D c

The circle to compare against.

double tolerance

A tolerance (epsilon) to adjust for floating point error

Return
bool

true if the points are equal; otherwise false

bool Equals(Circle3D c)

bool Equals(object obj)

int GetHashCode()

Type GetType()

string ToString()

Public Properties

double Area get;

Gets the area of the circle

double Circumference get;

Gets the circumference of the circle

double Diameter get;

Gets the diameter of the circle

Public fields

Point3D CenterPoint

The center of the circle
return Point3D

UnitVector3D Axis

the axis of the circle
return UnitVector3D

double Radius

the radius of the circle
return double