Matrix3
Represents a 3x3 matrix.
Row-major and column-major ordering: set takes its arguments in row-major order, so a literal in source reads the way you would write the matrix on paper. The values are stored in elements in column-major order. There is no element constructor; use Matrix3().set(...).
Matrices are mutable and not thread-safe; confine an instance (and any object graph holding it) to a single thread, exactly as in three.js. Most methods mutate this and return it for chaining.
Properties
Functions
Computes and returns the determinant of this matrix.
Extracts the basis of this matrix into the three axis vectors provided.
Computes the normal matrix, which is the inverse transpose of the upper-left 3x3 portion of the given 4x4 matrix matrix4.
Sets this matrix as a 2D rotational transformation (counterclockwise) by the given angle theta (in radians).
Sets this matrix as a 2D translation transform from the translation vector v.
Sets this matrix as a 2D translation transform.
Multiplies every component of the matrix by the given scalar s.
Pre-multiplies this matrix by the given 3x3 matrix m.
Sets this matrix to the upper 3x3 matrix of the given 4x4 matrix m.
Transposes this matrix into the supplied array r, and returns itself unchanged.