clone

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

Duplicates a Cartesian2 instance.

Return

The modified result parameter or a new Cartesian2 instance if one was not provided. (Returns undefined if cartesian is undefined)

Parameters

cartesian

The Cartesian to duplicate.

result

The object onto which to store the result.

See also