geographic To Cartesian
Converts a geographic Position to Cartesian coordinates according to an altitudeMode. The Cartesian coordinate system is a function of this render context's current globe and its terrain surface, depending on the altitude mode. In general, it is not safe to cache the Cartesian coordinates, as many factors contribute to the value returned, and may change from one frame to the next.
Return
the result argument, set to the computed Cartesian coordinates
Parameters
the specified position
an altitude mode indicating how to interpret the position's altitude component
a pre-allocated Vec3 in which to store the computed X, Y and Z Cartesian coordinates
Converts a geographic position to Cartesian coordinates according to an altitudeMode. The Cartesian coordinate system is a function of this render context's current globe and its terrain surface, depending on the altitude mode. In general, it is not safe to cache the Cartesian coordinates, as many factors contribute to the value returned, and may change from one frame to the next.
Return
the result argument, set to the computed Cartesian coordinates
Parameters
the position's latitude
the position's longitude
the position's altitude in meters
an altitude mode indicating how to interpret the position's altitude component
a pre-allocated Vec3 in which to store the computed X, Y and Z Cartesian coordinates
use the most detailed elevation model data instead of current terrain LoD