clone

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

Duplicates a Matrix2 instance.

Return

The modified result parameter or a new Matrix2 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