clone

fun clone(matrix: Matrix4, result: Matrix4? = definedExternally): Matrix4(source)

Duplicates a Matrix4 instance.

Return

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

Parameters

matrix

The matrix to duplicate.

result

The object onto which to store the result.

See also