Optionalvalues: ArrayLike<number>
9 values in column-major order; identity if omitted
Readonlydimensionnumber of rows (= number of columns)
Readonlyvaluesthe values in column-major order
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
Set this to the normal matrix of a model(-view) matrix: the inverse transpose of its upper-left 3x3 part. Transforms normals correctly even when the model matrix contains non-uniform scaling.
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
StaticfromStaticfromStaticidentityStaticrotStaticrotStaticrotStaticscalingcreate scaling matrix
scale X factor
scale Y factor
scale Z factor
Statictranslationcreate 2D translation matrix
translation in x-direction
translation in y-direction
A 3x3 matrix of 32-bit floats in column-major order. All operations work in place and return
this.