QuantizedMeshTerrainProvider.GetHeight Method (Double, Double, TerrainInterpolator<QuantizedMeshTerrainTile>) |
Gets the interpolated height of the terrain at the specified longitude and latitude using the
specified
TerrainInterpolator<TData>.
Namespace:
AGI.Foundation.Terrain
Assembly:
AGI.Foundation.TerrainReaders (in AGI.Foundation.TerrainReaders.dll) Version: 25.1.421.0 (25.1.421.0)
Syntaxpublic double GetHeight(
double longitude,
double latitude,
TerrainInterpolator<QuantizedMeshTerrainTile> interpolator
)
Public Function GetHeight (
longitude As Double,
latitude As Double,
interpolator As TerrainInterpolator(Of QuantizedMeshTerrainTile)
) As Double
public:
double GetHeight(
double longitude,
double latitude,
TerrainInterpolator<QuantizedMeshTerrainTile^>^ interpolator
)
member GetHeight :
longitude : float *
latitude : float *
interpolator : TerrainInterpolator<QuantizedMeshTerrainTile> -> float
Parameters
- longitude
- Type: System.Double
The longitude, in radians.
Requesting a height for a longitude less than -π or greater than π will always return NaN.
- latitude
- Type: System.Double
The latitude, in radians.
Requesting a height for a latitude less than -π/2 or greater than π/2 will always return NaN.
- interpolator
- Type: AGI.Foundation.Terrain.TerrainInterpolator<QuantizedMeshTerrainTile>
The TerrainInterpolator<TData> to use to interpolate heights.
Return Value
Type:
Double
The height, in meters, or
NaN if the height is not available at the requested longitude and latitude.
Remarks
The returned height is relative to the ellipsoid specified by the Shape property.
This method may return NaN if the requested longitude and latitude are outside
the terrain region or if the terrain data indicates that the height is unknown.
It is safe to call this method from multiple threads simultaneously.
See Also