fromCartesian4

fun fromCartesian4(cartesian: Cartesian4, result: Cartesian3? = definedExternally): Cartesian3(source)

Creates a Cartesian3 instance from an existing Cartesian4. This simply takes the x, y, and z properties of the Cartesian4 and drops w.

Return

The modified result parameter or a new Cartesian3 instance if one was not provided.

Parameters

cartesian

The Cartesian4 instance to create a Cartesian3 instance from.

result

The object onto which to store the result.

See also