interpolateHeight

open override fun interpolateHeight(rectangle: Rectangle, longitude: Double, latitude: Double): Double(source)

Returns the terrain height at a specified longitude and latitude, or undefined if the mesh is undefined.

Return

The terrain height at the specified position, or undefined if the mesh is undefined. If the position is outside the rectangle, this method will extrapolate the height, which is likely to be wildly incorrect for positions far outside the rectangle.

Parameters

rectangle

The rectangle covered by this terrain data.

longitude

The longitude in radians.

latitude

The latitude in radians.

See also