clone

fun clone(quaternion: Quaternion, result: Quaternion? = definedExternally): Quaternion(source)

Duplicates a Quaternion instance.

Return

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

Parameters

quaternion

The quaternion to duplicate.

result

The object onto which to store the result.

See also