surfacePoint

abstract fun surfacePoint(latitude: Angle, longitude: Angle, result: Vec3): Boolean

Computes the Cartesian coordinates of a geographic location on the terrain surface. If the latitude and longitude are outside the geometric surface modeled by this terrain, this returns false and does not modify the result argument.

Return

true if the geographic location is on the terrain surface, otherwise false

Parameters

latitude

the location's latitude

longitude

the location's longitude

result

a pre-allocated Vec3 in which to store the computed X, Y and Z Cartesian coordinates