Click or drag to resize

NearestNeighborTerrainInterpolator.InterpolateHeight Method

Interpolates the height at a particular longitude and latitude from given terrain data.

Namespace:  AGI.Foundation.Terrain
Assembly:  AGI.Foundation.TerrainReaders (in AGI.Foundation.TerrainReaders.dll) Version: 25.1.421.0 (25.1.421.0)
Syntax
public override double InterpolateHeight(
	TerrainPosts data,
	double longitude,
	double latitude
)

Parameters

data
Type: AGI.Foundation.Terrain.TerrainPosts
The terrain data.
longitude
Type: System.Double
The longitude, in the native units of the terrain provider.
latitude
Type: System.Double
The latitude, in the native units of the terrain provider.

Return Value

Type: Double
The interpolated height, in the native units of the terrain provider.
Exceptions
ExceptionCondition
ArgumentNullException Thrown when data is null.
See Also