cartesianArrayToCartographicArray

Converts the provided array of cartesians to an array of cartographics.

//Create an array of Cartesians and determine their Cartographic representation on a WGS84 ellipsoid.
const positions = [new Cartesian3(17832.12, 83234.52, 952313.73),
new Cartesian3(17832.13, 83234.53, 952313.73),
new Cartesian3(17832.14, 83234.54, 952313.73)]
const cartographicPositions = Ellipsoid.WGS84.cartesianArrayToCartographicArray(positions);

Return

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

Parameters

cartesians

An array of Cartesian positions.

result

The object onto which to store the result.

See also