Matrix4
class Matrix4(val m00: Float, val m01: Float, val m02: Float, val m03: Float, val m10: Float, val m11: Float, val m12: Float, val m13: Float, val m20: Float, val m21: Float, val m22: Float, val m23: Float, val m30: Float, val m31: Float, val m32: Float, val m33: Float)
Represents a 4x4 matrix.
The Matrix4 is implemented in row-major order and follows basic calculation principles:
Associativity: (m1 * m2) * m3 = m1 * (m2 * m3).
Distributivity: (m1 + m2) * m3 = (m1 * m3) + (m2 * m3).
Properties
Functions
Link copied to clipboard
Calculates the determinant of this 4x4 matrix.
Link copied to clipboard
Times two Matrix4 instances.
Overloads the * operator to transform a 4D vector by this matrix.
Overloads the * operator to perform element-wise multiplication of this matrix by a scalar value.
Link copied to clipboard
Converts the Matrix4 instance to a float array.
Link copied to clipboard
Link copied to clipboard
Negates matrix data.