Method Set
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
Set(GeoPoint3, GeoVector3, GeoVector3, double, double, double)
Gives the ellipse a new centre, normal, major axis, ratio and end angles at once, as AutoCAD's Set: the record
is written once, every other group kept.
public void Set(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.
endAngledoubleThe angle of its end from the major axis, in radians; nought and 2 pi make it whole.
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.
- InvalidOperationException
Thrown when the ellipse is erased.