Table of Contents

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

center GeoPoint3

The centre, in world coordinates.

unitNormal GeoVector3

The normal of its plane, of any length; written made of unit length.

majorAxis GeoVector3

The vector from the centre to the end of the long axis, square to the normal.

radiusRatio double

The minor radius over the major, above nought and up to 1.

startAngle double

The angle of its start from the major axis, in radians.

endAngle double

The 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.