fromCartesian4

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

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

Return

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

Parameters

cartesian

The Cartesian4 instance to create a Cartesian2 instance from.

result

The object onto which to store the result.

See also