CMatrix
A 4x3 matrix used for 3D transformations, including position and rotation.
Properties
The first row of the matrix.
The second row of the matrix.
The third row of the matrix.
The fourth row of the matrix, representing the position.
The position component of the matrix.
The rotation component of the matrix as a quaternion.
The forward direction vector of the matrix.
The up direction vector of the matrix.
The right direction vector of the matrix.
Functions
Creates a look-at matrix from this CMatrix's origin that orients an object to face a target point with a specified up direction.
- target
- The target point to look at.
- up
- The up direction vector.
Returns: A CMatrix representing the look-at transformation.
Linearly interpolates the position component and spherically interpolates the rotation component between two CMatrix instances.
- a
- The starting matrix.
- b
- The ending matrix.
- t
- The interpolation factor (0.0 to 1.0).
Returns: The interpolated CMatrix.
Multiplies this CMatrix by another CMatrix, combining their transformations.
- other
- The other matrix representing the transformation to apply.
Returns: >The resulting matrix after multiplication.
Computes the inverse of the matrix, which reverses the transformation it represents.
Returns: >The inverse of the matrix.
Transforms a point by this matrix.
- point
- The point to transform.
Returns: The transformed point.