Table of Contents

Constructor GeoEllipse3

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

GeoEllipse3(GeoPoint3, GeoVector3, GeoVector3, double, double)

Initializes an ellipse in space from its centre, the normal of its plane, the direction of its major axis and its two radii.

public GeoEllipse3(GeoPoint3 center, GeoVector3 normal, GeoVector3 majorAxis, double majorRadius, double minorRadius)

Parameters

center GeoPoint3

The centre.

normal GeoVector3

The normal of the carrying plane, of any length but nought; it is normalized.

majorAxis GeoVector3

The direction of the major axis, of any length but nought. An axis tilted out of the plane is laid into it: its part along the normal is taken off, and what is left is normalized, so (1, 0, 1) on a plane with the normal along Z is the axis along X.

majorRadius double

Half the length of the major axis; a positive number, no less than the minor radius.

minorRadius double

Half the length of the minor axis; a positive number.

Exceptions

ArgumentException

Thrown when the normal has no length or is not a finite vector; or when the axis has no length, is not a finite vector, or runs along the normal, what is left of it in the plane no more than 1E-12 of its length.

ArgumentOutOfRangeException

Thrown when a radius is not a positive number, or the minor radius is larger than the major one. The two are not swapped: an ellipse longer across than along is given by an axis a quarter turned.