Ellipsoid.GrazingAltitude Method (Cartesian, UnitCartesian) |
Provides the nearest distance between the ellipsoid and the line segment
from the provided position and along the indicated direction.
The line segment is considered to be infinite in length but starting at
the provided position. This means that possibly smaller grazing altitudes
along the opposite direction are not reported.
Namespace:
AGI.Foundation.Geometry.Shapes
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 25.1.421.0 (25.1.421.0)
Syntaxpublic double GrazingAltitude(
Cartesian position,
UnitCartesian direction
)
Public Function GrazingAltitude (
position As Cartesian,
direction As UnitCartesian
) As Double
public:
double GrazingAltitude(
Cartesian position,
UnitCartesian direction
)
member GrazingAltitude :
position : Cartesian *
direction : UnitCartesian -> float
Parameters
- position
- Type: AGI.Foundation.Coordinates.Cartesian
The position exterior to the ellipsoid. - direction
- Type: AGI.Foundation.Coordinates.UnitCartesian
The reference direction.
Return Value
Type:
DoubleThe nearest distance.
RemarksIf the line segment passes through the ellipsoid then the altitude will be
a negative value representing the maximum depth required to reach the surface.
See Also