cartographicArrayToCartesianArray

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

//Convert an array of Cartographics and determine their Cartesian representation on a WGS84 ellipsoid.
const positions = [new Cartographic(Math.toRadians(21), Math.toRadians(78), 0),
new Cartographic(Math.toRadians(21.321), Math.toRadians(78.123), 100),
new Cartographic(Math.toRadians(21.645), Math.toRadians(78.456), 250)];
const cartesianPositions = Ellipsoid.WGS84.cartographicArrayToCartesianArray(positions);

Return

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

Parameters

cartographics

An array of cartographic positions.

result

The object onto which to store the result.

See also