fromDegreesArray
fun fromDegreesArray(coordinates: ERROR CLASS: Symbol not found for ReadonlyArray<ERROR CLASS: Symbol not found for JsDouble>, ellipsoid: Ellipsoid? = definedExternally, result: ERROR CLASS: Symbol not found for ReadonlyArray<cesium/engine/Cartesian3>?? = definedExternally): ERROR CLASS: Symbol not found for ReadonlyArray<cesium/engine/Cartesian3>(source)
Returns an array of Cartesian3 positions given an array of longitude and latitude values given in degrees.
const positions = Cartesian3.fromDegreesArray([-115.0, 37.0, -107.0, 33.0]);
Content copied to clipboard
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.