Constructor DxfEllipse
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
DxfEllipse()
Initializes the whole ellipse about the origin on the normal (0, 0, 1) with the major axis (1, 0, 0) and the ratio 1,
as AutoCAD's new Ellipse(), on layer 0 in no file.
public DxfEllipse()
DxfEllipse(GeoPoint3, GeoVector3, GeoVector3, double, double, double)
Initializes an ellipse, as AutoCAD's new Ellipse(center, unitNormal, majorAxis, radiusRatio, startAngle,
endAngle), on layer 0 with no look of its own, in no file until it is added to one: nought and 2 pi make it
whole.
public DxfEllipse(GeoPoint3 center, GeoVector3 unitNormal, GeoVector3 majorAxis, double radiusRatio, double startAngle, double endAngle)
Parameters
centerGeoPoint3The centre, in world coordinates.
unitNormalGeoVector3The normal of its plane, of any length; written made of unit length.
majorAxisGeoVector3The vector from the centre to the end of the long axis, square to the normal.
radiusRatiodoubleThe minor radius over the major, above nought and up to 1.
startAngledoubleThe angle of its start from the major axis, in radians, as StartAngle reads it.
endAngledoubleThe angle of its end from the major axis, in radians, as EndAngle reads it.
Exceptions
- ArgumentException
Thrown when a coordinate is not a finite number, the normal or the major axis has no length, or the major axis is not square to the normal within the vector tolerance.
- ArgumentOutOfRangeException
Thrown when the ratio is not above nought and up to 1, or an angle is not finite.