Class: Mat3

og/math/Mat3~Mat3

new Mat3()

Class represents a 3x3 matrix.

Members

_mArray.<number>

A 3x3 matrix, indexable as a column-major order array.

Methods

clone(){og.Mat3}

Duplicates a Mat3 instance.
Returns:
Type Description
og.Mat3

copy(a){og.Mat3}

Copy matrix.
Name Type Description
a og.Mat3 Matrix to copy.
Returns:
Type Description
og.Mat3

mulVec(){og.Vec3}

Multiply to 3d vector.
Returns:
Type Description
og.Vec3

set(m){og.Mat3}

Sets column-major order array matrix.
Name Type Description
m Array.<number> Matrix array.
Returns:
Type Description
og.Mat3

setIdentity(){og.Mat3}

Sets matrix to identity.
Returns:
Type Description
og.Mat3

toMatrix4(){og.Mat4}

Converts to 4x4 matrix.
Returns:
Type Description
og.Mat4

transposeTo(){og.Mat3}

Creates trasposed matrix from the current.
Returns:
Type Description
og.Mat3