Click or drag to resize

CentralBodyCoverageGridGetHeightRelativeToSurface 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: 19.2.399.0 (19.2.399.0)
Syntax
public double GetHeightRelativeToSurface(
	double longitude,
	double latitude
)

Parameters

longitude
Type: SystemDouble
The longitude of the desired grid point.
latitude
Type: SystemDouble
The latitude of the desired grid point.

Return Value

Type: Double
The height of the specified grid point.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionThrown if the latitude is set outside the range from -pi/2 to pi/2 or the longitude is outside of the range -pi to pi.
InvalidOperationExceptionThrown if the CentralBody doesn't match the shape of the ReferenceTerrain.
Remarks
If ReferenceTerrain is null 0 is returned, otherwise ReferenceTerrain is used to find height with respect to the CentralBody.
See Also