geographicToCartesian

fun geographicToCartesian(latitude: Angle, longitude: Angle, altitude: Double, result: Vec3): Vec3

Converts a geographic position to Cartesian coordinates. This globe's projection specifies the Cartesian coordinate system.

Return

the result argument, set to the computed Cartesian coordinates

Parameters

latitude

the position's latitude

longitude

the position's longitude

altitude

the position's altitude in meters

result

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