Static
Readonly
oneThe identity matrix for multiplication. The matrix is locked (immutable), but may be cloned.
Static
Readonly
zeroThe identity matrix for addition. The matrix is locked (immutable), but may be cloned.
Sets this 3x3 matrix to the matrix required to properly transform normal vectors (pseudo or axial vectors) based upon the 4x4 matrix used to transform polar vectors.
Sets this matrix to the transformation for a
reflection in the plane normal to the unit vector n
.
this ⟼ reflection(n)
Sets all elements of this matrix to the supplied values (provided in row-major order).
An advantage of this method is that the function call resembles the matrix written out.
The parameters are named according to the 1-based row and column.
Computes the homogeneous translation matrix for a 2D translation.
Static
reflectionStatic
rotationStatic
translation
A 3x3 (square) matrix of
number
s.An adapter over a
Float32Array
, enabling it to be used directly with WebGL.The 9 elements are stored in column-major order (the order expected by WebGL):