Method FromCircle
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
FromCircle(GeoCircle3)
Builds the spline that is exactly a circle: the rational quadratic of nine control points, four pieces of a quarter turn.
public static GeoSpline3 FromCircle(GeoCircle3 circle)
Parameters
circleGeoCircle3The circle.
Returns
- GeoSpline3
The spline, of degree 2 and rational, from the circle's point at angle nought round counter-clockwise about its normal, closed.
Remarks
Every point of the curve is at the radius from the centre to rounding, in the plane of the circle, and its length is 2 pi times the radius to a relative 1E-12.
Exceptions
- ArgumentException
Thrown when the centre has a coordinate that is not a finite number.