Ellipsoid Constructor (Double, Double, AxisIndicator, Double, Double) |
Initializes an ellipsoid as a spheroid.
Namespace:
AGI.Foundation.Geometry.Shapes
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 25.2.423.0 (25.2.423.0)
Syntaxpublic Ellipsoid(
double equatorialRadius,
double polarRadius,
AxisIndicator polarAxis,
double centerTolerance,
double surfaceTolerance
)
Public Sub New (
equatorialRadius As Double,
polarRadius As Double,
polarAxis As AxisIndicator,
centerTolerance As Double,
surfaceTolerance As Double
)
public:
Ellipsoid(
double equatorialRadius,
double polarRadius,
AxisIndicator polarAxis,
double centerTolerance,
double surfaceTolerance
)
new :
equatorialRadius : float *
polarRadius : float *
polarAxis : AxisIndicator *
centerTolerance : float *
surfaceTolerance : float -> EllipsoidParameters
- equatorialRadius
- Type: SystemDouble
The lengths of the two equal semiaxis. - polarRadius
- Type: SystemDouble
The length of the semiaxis which is unequal to the rest. - polarAxis
- Type: AGI.Foundation.CoordinatesAxisIndicator
The axis which corresponds to the semiaxis which is unequal to the rest. - centerTolerance
- Type: SystemDouble
The numerical tolerance used to determine if a point is located
at the center of the ellipsoid. - surfaceTolerance
- Type: SystemDouble
The numerical tolerance used to determine if a point is located
on the surface of the ellipsoid.
Exceptions| Exception | Condition |
|---|
| ArgumentOutOfRangeException |
Thrown when the parameters equatorialRadius or polarRadius are
less than or equal to 0.
|
| ArgumentOutOfRangeException |
Thrown when the parameters centerTolerance or surfaceTolerance
are less than or equal to 0.
|
Remarks
If the equatorial radius is larger than the polar radius, the ellipsoid is an oblate spheroid.
If the equatorial radius is smaller than the polar radius, the ellipsoid is a prolate spheroid.
The conversions between cartesian and cartographic coordinates define longitude measured in the xy-plane.
Therefore, the z-axis will, in general, be indicated as the polar axis.
See Also