cartesianToCartographic

fun cartesianToCartographic(cartesian: Cartesian3, result: Cartographic? = definedExternally): Cartographic(source)

Converts the provided cartesian to cartographic representation. The cartesian is undefined at the center of the ellipsoid.

//Create a Cartesian and determine it's Cartographic representation on a WGS84 ellipsoid.
const position = new Cartesian3(17832.12, 83234.52, 952313.73);
const cartographicPosition = Ellipsoid.WGS84.cartesianToCartographic(position);

Return

The modified result parameter, new Cartographic instance if none was provided, or undefined if the cartesian is at the center of the ellipsoid.

Parameters

cartesian

The Cartesian position to convert to cartographic representation.

result

The object onto which to store the result.

See also