projectPointsOntoPlane

fun projectPointsOntoPlane(cartesians: ERROR CLASS: Symbol not found for ReadonlyArray<cesium/engine/Cartesian3>, result: ERROR CLASS: Symbol not found for ReadonlyArray<cesium/engine/Cartesian2>?? = definedExternally): ERROR CLASS: Symbol not found for ReadonlyArray<cesium/engine/Cartesian2>(source)

Computes the projection of the provided 3D positions onto the 2D plane (where possible), radially outward from the global origin. The resulting array may be shorter than the input array - if a single projection is impossible it will not be included.

Return

The modified result parameter or a new array of Cartesian2 instances if none was provided.

Parameters

cartesians

The array of points to project.

result

The array of Cartesian2 instances onto which to store results.

See also