Construct a new Mat4 object. It safely wraps a WasmMatrix4d object.
Optional
theMatrix: WasmMatrix4dThe matrix to wrap.
Get the matrix.
Get quaternion.
Get translation.
Set translation.
Add a matrix to this matrix.
Get Euler angles.
Multiply this matrix by another matrix.
Multiply Point.
Get relative transform
Rotate around axis
the location
the axis
the angle
the rotated matrix
Apply rotation matrix around rotation center
the rotation matrix to apply
the center of rotation
Subtract a matrix from this matrix.
To Object Axes.
Transform the axes.
translate the matrix.
Static
buildBuild a matrix from rotation angles.
Static
extractExtract a matrix from a Mat4 or WasmMatrix4d object.
Static
fromFrom Object Axes.
Static
fromFrom Euler angles.
Static
fromFrom quaternion.
Static
fromFrom relative axes.
A 4x4 matrix wrapper around Mat4Tools.