EllipsoidSurfaceDistance Method |
Computes the shortest distance as measured on the surface of the ellipsoid between two planetodetic cartographic positions.
Namespace:
AGI.Foundation.Geometry.Shapes
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax public double SurfaceDistance(
Cartographic first,
Cartographic second
)
Public Function SurfaceDistance (
first As Cartographic,
second As Cartographic
) As Double
public:
double SurfaceDistance(
Cartographic first,
Cartographic second
)
member SurfaceDistance :
first : Cartographic *
second : Cartographic -> float
Parameters
- first
- Type: AGI.Foundation.CoordinatesCartographic
The initial planetodetic cartographic position. - second
- Type: AGI.Foundation.CoordinatesCartographic
The final planetodetic cartographic position.
Return Value
Type:
DoubleThe surface distance.
Exceptions Exception | Condition |
---|
UnsupportedCaseException |
The scalene case of a geodesic ellipsoid is not currently modeled and will be in a future release.
|
Remarks
Since the distance is measured on the surface of the ellipsoid, the height coordinate information is ignored.
See Also