Class: Mat3

og/math/Mat3.Mat3

Class represents a 3x3 matrix.

new module:og/math/Mat3.Mat3()

Members

_mArray.<number>

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

Methods

clone(){Mat3}

Duplicates a Mat3 instance.
Returns:
Type Description
Mat3

copy(a){Mat3}

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

mulVec(){Vec3}

Multiply to 3d vector.
Returns:
Type Description
Vec3

set(m){Mat3}

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

setIdentity(){Mat3}

Sets matrix to identity.
Returns:
Type Description
Mat3

toMatrix4(){Mat4}

Converts to 4x4 matrix.
Returns:
Type Description
Mat4

transposeTo(){Mat3}

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