Optionalvalues: ArrayLike<number>
16 values in column-major order; identity if omitted
Readonlydimensionnumber of rows (= number of columns)
Readonlyvaluesthe values in column-major order
Set this to translation × rotation × scale.
translation
the rotation as a unit Quaternion, or as Euler angles in radians applied in XYZ order
scale factors per axis
Copy the values of another matrix of the same size into this one
exact element-wise equality
Reset to the identity matrix
Invert in place. A singular matrix becomes the zero matrix.
true if all values are finite (neither NaN nor Infinity)
element-wise equality within a tolerance
tolerance, 1e-6 by default (the values are 32-bit floats)
Overwrite all values.
dimension² values in column-major order
the values as a plain array, column-major
convert to the general-purpose Matrix class
value at a given position
row index starting from 0
column index starting from 0
StaticfromStaticfrustumStaticidentityStaticlookStaticorthoStaticperspectivecreate a perspective projection matrix
vertical field of view in degrees
width / height
distance to the near clipping plane (positive)
distance to the far clipping plane (positive)
StaticrotationStaticrotStaticrotStaticrotStaticscalingcreate scaling matrix
X-scale factor
Y-scale factor
Z-scale factor
Statictranslationcreate translation matrix
translation in X direction
translation in Y direction
translation in Z direction
A 4x4 matrix of 32-bit floats in column-major order, for transforms. All operations work in place and return
this; useclone()first if the original is still needed.