fromRadiansArray

fun fromRadiansArray(coordinates: ReadonlyArray<Double>, ellipsoid: Ellipsoid? = definedExternally, result: ReadonlyArray<Cartesian3>? = definedExternally): ReadonlyArray<Cartesian3>(source)

Returns an array of Cartesian3 positions given an array of longitude and latitude values given in radians.

const positions = Cartesian3.fromRadiansArray([-2.007, 0.645, -1.867, .575]);

Return

The array of positions.

Parameters

coordinates

A list of longitude and latitude values. Values alternate longitude, latitude, longitude, latitude....

ellipsoid

The ellipsoid on which the coordinates lie. Default value - Ellipsoid.default

result

An array of Cartesian3 objects to store the result.

See also