Click or drag to resize

CentralBodyCoverageGrid.GetHeightRelativeToSurface Method

Gets the height of a point at a specific longitude and latitude.

Namespace:  AGI.Foundation.Geometry.Discrete
Assembly:  AGI.Foundation.Spatial (in AGI.Foundation.Spatial.dll) Version: 25.1.421.0 (25.1.421.0)
Syntax
public double GetHeightRelativeToSurface(
	double longitude,
	double latitude
)

Parameters

longitude
Type: System.Double
The longitude of the desired grid point.
latitude
Type: System.Double
The latitude of the desired grid point.

Return Value

Type: Double
The height of the specified grid point.
Exceptions
ExceptionCondition
ArgumentOutOfRangeException Thrown when the latitude is outside the range -π/2 to π/2, or the longitude is outside the range -π to π.
InvalidOperationException Thrown when the Shape of the ReferenceTerrain does not match the Shape of the CentralBody.
Remarks
If ReferenceTerrain is null, returns zero. Otherwise, ReferenceTerrain is used to find the height with respect to the CentralBody.
See Also