Constructs a new Matrix4 instance.
Optionalvalue: [Optional initial matrix values. If not provided, identity matrix is created.
Creates a new Matrix4 with the same values as this matrix.
A new Matrix4 instance with the same values.
Copies the values from another matrix into this matrix.
The matrix to copy values from.
This matrix for chaining.
Decomposes this matrix into its position, Euler rotation, and scale components.
This matrix for chaining.
Computes the determinant of this matrix. Reference: http://www.euclideanspace.com/maths/algebra/matrix/functions/inverse/fourD/index.htm
The determinant of this matrix.
Applies a drop shadow effect by multiplying with a shadow projection matrix.
The plane equation representing the surface where the shadow is cast.
The light position/direction as a homogeneous vector.
This matrix for chaining.
Checks if this matrix is equal to another matrix.
The matrix to compare with this matrix.
True if the matrices are equal, false otherwise.
Sets this matrix to a frustum projection matrix.
The coordinate for the left clipping plane.
The coordinate for the right clipping plane.
The coordinate for the bottom clipping plane.
The coordinate for the top clipping plane.
The distance to the near clipping plane.
The distance to the far clipping plane.
This matrix for chaining.
Sets this matrix to the identity matrix.
This matrix for chaining.
Computes the inverse of this matrix and replaces this matrix with the result. If the matrix is singular (not invertible), it remains unchanged.
This matrix for chaining.
Multiplies this matrix by another matrix (this = this * other).
The matrix to multiply with this matrix.
This matrix for chaining.
Sets this matrix to an orthographic projection matrix.
The coordinate for the left clipping plane.
The coordinate for the right clipping plane.
The coordinate for the bottom clipping plane.
The coordinate for the top clipping plane.
The distance to the near clipping plane.
The distance to the far clipping plane.
This matrix for chaining.
Sets this matrix to a perspective projection matrix.
Field of view in degrees.
Aspect ratio (width / height).
Distance to the near clipping plane.
Distance to the far clipping plane.
This matrix for chaining.
Premultiplies this matrix by another matrix (this = other * this).
The matrix to premultiply with this matrix.
This matrix for chaining.
Rotates this matrix around the specified axis by the given angle.
Rotation angle in radians (positive for counter-clockwise).
Rotation axis.
This matrix for chaining.
Sets this matrix to a rotation matrix derived from Euler angles.
Euler angles representing the rotation.
This matrix for chaining.
Scales this matrix by the given factors.
Scale factor along the X axis.
Scale factor along the Y axis.
Scale factor along the Z axis.
This matrix for chaining.
Returns the matrix values as an array.
The 16-element array representing this matrix.
Translates this matrix by the given offset.
Translation along the X axis.
Translation along the Y axis.
Translation along the Z axis.
This matrix for chaining.
Transposes this matrix in place.
This matrix for chaining.
Represents a 4x4 transformation matrix used for 3D transformations. This class provides methods for matrix composition, decomposition, multiplication, inversion, and various transformation operations like translation, rotation, and scaling.