A 3x3 matrix. Authored by schteppe
Optional
A vector of length 9, containing all matrix elements.
Copy another matrix into this matrix object.
Get an element in the matrix by index. Index starts at 0, not 1!!!
Gets the matrix diagonal elements
Sets the matrix to identity
Should perhaps be renamed to setIdentity() to be more clear.
setIdentity()
Create another function that immediately creates an identity matrix eg. eye()
eye()
Matrix multiplication
Matrix to multiply with from left side.
reverse the matrix
Target matrix to save in.
The solution x
Scale each column of the matrix
Set the matrix from a quaterion
Sets the matrix diagonal elements from a Vec3
Set all elements to zero
Matrix-scalar multiplication
Solve Ax=b
The right hand side
Optional. Target vector to save in.
should reuse arrays
Returns a string representation of the matrix.
Transpose the matrix
Optional. Where to store the result.
The target Mat3, or a new Mat3 if target was omitted.
Matrix-Vector multiplication
The vector to multiply with
Optional, target to save the result in.
A 3x3 matrix. Authored by schteppe