cartographicToCartesian

fun cartographicToCartesian(cartographic: Cartographic, result: Cartesian3? = definedExternally): Cartesian3(source)

Converts the provided cartographic to Cartesian representation.

//Create a Cartographic and determine it's Cartesian representation on a WGS84 ellipsoid.
const position = new Cartographic(Math.toRadians(21), Math.toRadians(78), 5000);
const cartesianPosition = Ellipsoid.WGS84.cartographicToCartesian(position);

Return

The modified result parameter or a new Cartesian3 instance if none was provided.

Parameters

cartographic

The cartographic position.

result

The object onto which to store the result.

See also