interpolateHeight

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

Computes the terrain height at a specified longitude and latitude.

Return

The terrain height at the specified position. The position is clamped to the rectangle, so expect incorrect results 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