geographicToCartesian

open override fun geographicToCartesian(ellipsoid: Ellipsoid, latitude: Angle, longitude: Angle, altitude: Double, offset: Double, result: Vec3): Vec3

Converts a geographic position to Cartesian coordinates.

Return

the result argument, set to the computed Cartesian coordinates

Parameters

ellipsoid

the ellipsoid this projection is applied to

latitude

the position's latitude

longitude

the position's longitude

altitude

the position's altitude in meters

offset

the horizontal offset in 2D projection

result

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