Matrix3
A 3x3 matrix.
Constructor
Matrix3()
Creates and initializes the 3x3 matrix to the identity matrix.
Properties
A column-major list of matrix values.
Methods
Sets the 3x3 matrix values to the given row-major sequence of values.
Copies the values of matrix m into this matrix.
array --
Array The array to read the elements from.
Sets the elements of this matrix based on an array in column-major format.
Transposes this matrix in place.
Transposes this matrix into the supplied array, and returns itself unchanged.
Computes and returns the determinant of this matrix.
Multiplies every component of the matrix by the scalar value s.
array -- An array in the form [vector1x, vector1y, vector1z, vector2x, vector2y, vector2z, ...]
Multiplies (applies) this matrix to every vector3 in the array.
Sets this matrix as the normal matrix (upper left 3x3)of the passed
matrix4. The normal matrix is the inverse transpose of the matrix
m.
m --
Matrix4
throwOnDegenerate --
Boolean If true, throw an error if the matrix is degenerate (not invertible).
Set this matrix to the inverse of the passed matrix.
Resets this matrix to identity.
1, 0, 0
0, 1, 0
0, 0, 1
Creates a copy of this matrix.
array --
Array optional array to store the vector
offset --
Integer optional offset into the array
Writes the elements of this matrix to an array in column-major format.
Source
src/math/Matrix3.js
Edit