Generic non-resizeable matrix with R rows and C columns.
Intended for 3D use (size 3x3 and 4x4).
T | type of elements |
R | number of rows |
C | number of columns |
Construct a matrix from columns.
Construct a matrix from rows.
Construct matrix with a scalar.
Assign with a samey matrice.
Assign from other small matrices (same size, compatible type).
Assign with a static array of size R * C.
Assign with a dynamic array of size R * C.
Return a pointer to content.
Covnerts to pretty string.
Matrix * vector multiplication.
Matrix * matrix multiplication.
Matrix add and substraction.
Assignment operator with another samey matrix.
Assignment operator with another samey matrix.
Cast to other matrix types.
If the size are different, the resulting matrix is truncated
and/or filled with identity coefficients.
Convert 3x3 rotation matrix to quaternion.
Converts a 4x4 rotation matrix to quaternion.
In-place translate by (v, 1)
Make a translation matrix.
In-place matrix scaling.
Make a scaling matrix.
Similar to the glRotate matrix, however the angle is expressed in radians
Extract frustum from a 4x4 matrice.