Class: Matrix3

Matrix3()

A 3x3 matrix. Its elements are stored in column-major order.

Constructor

new Matrix3()

Creates a new identity Matrix3.
Source:

Members

(static) identity

An identity Matrix3.
Source:

(static) zero

A Matrix3 with all elements equal to zero.
Source:

Methods

clone() → {Matrix3}

Creates a clone of the matrix.
Source:
Returns:
The cloned matrix.
Type
Matrix3

copy(matrix) → {Matrix3}

Copies the elements from another matrix.
Parameters:
Name Type Description
matrix Matrix3 The matrix to copy the elements from.
Source:
Returns:
The matrix.
Type
Matrix3

equals(matrix) → {Boolean}

Compares if the elements of the matrix are equal to the elements of another matrix.
Parameters:
Name Type Description
matrix Matrix3 The matrix to compare the components to.
Source:
Returns:
A value indicating whether all the elements are equal.
Type
Boolean

set(a00, a01, a02, a10, a11, a12, a20, a21, a22) → {Matrix3}

Sets the elements of the matrix.
Parameters:
Name Type Description
a00 Number The element at row 0 and column 0.
a01 Number The element at row 0 and column 1.
a02 Number The element at row 0 and column 2.
a10 Number The element at row 1 and column 0.
a11 Number The element at row 1 and column 1.
a12 Number The element at row 1 and column 2.
a20 Number The element at row 2 and column 0.
a21 Number The element at row 2 and column 1.
a22 Number The element at row 2 and column 2.
Source:
Returns:
The matrix.
Type
Matrix3

setIdentity() → {Matrix3}

Sets the elements of the matrix to the identity.
Source:
Returns:
The matrix.
Type
Matrix3

transpose() → {Matrix3}

Transposes the matrix.
Source:
Returns:
The matrix.
Type
Matrix3

(static) fromValues(a00, a01, a02, a10, a11, a12, a20, a21, a22) → {Matrix3}

Creates a new Matrix3 from the values of each element.
Parameters:
Name Type Description
a00 Number The element at row 0 and column 0.
a01 Number The element at row 0 and column 1.
a02 Number The element at row 0 and column 2.
a10 Number The element at row 1 and column 0.
a11 Number The element at row 1 and column 1.
a12 Number The element at row 1 and column 2.
a20 Number The element at row 2 and column 0.
a21 Number The element at row 2 and column 1.
a22 Number The element at row 2 and column 2.
Source:
Returns:
The created matrix.
Type
Matrix3