Matrix3
class Matrix3(val m00: Float, val m01: Float, val m02: Float, val m10: Float, val m11: Float, val m12: Float, val m20: Float, val m21: Float, val m22: Float)
Represents a 3x3 matrix.
Note: Matrix3 is implemented in row-major order.
The Matrix3 follows basic calculation principles:
Associativity: (m1 * m2) * m3 = m1 * (m2 * m3).
Distributivity: (m1 + m2) * m3 = (m1 * m3) + (m2 * m3).
Constructors
Functions
Link copied to clipboard
Calculates the determinant of this 3x3 matrix.
Link copied to clipboard
Overloads the * operator to perform matrix multiplication of this matrix by another Matrix3 (this * other).
Overloads the * operator to transform a 3D 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 Matrix3 to a float array.
Link copied to clipboard
Overloads the unary minus operator (-) to perform element-wise negation of this matrix.