#include <graphics/matrix4.h>
Matrix structure
Copies a matrix
dst – Destination matrix
m – Matrix to copy
Sets an identity matrix
dst – Destination matrix
Converts a quaternion to a matrix
dst – Destination matrix
q – Quaternion to convert
Converts an axis angle to a matrix
dst – Destination matrix
aa – Axis angle to convert
Multiples two matrices
dst – Destination matrix
m1 – Matrix 1
m2 – Matrix 2
Gets the determinant value of a matrix
m – Matrix
Determinant
Translates the matrix by a 3-component vector
dst – Destination matrix
m – Matrix to translate
v – Translation vector
Translates the matrix by a 4-component vector
dst – Destination matrix
m – Matrix to translate
v – Translation vector
Rotates a matrix by a quaternion
dst – Destination matrix
m – Matrix to rotate
q – Rotation quaternion
Rotates a matrix by an axis angle
dst – Destination matrix
m – Matrix to rotate
aa – Rotation anxis angle
Scales each matrix component by the components of a 3-component vector
dst – Destination matrix
m – Matrix to scale
v – Scale vector
Inverts a matrix
dst – Destination matrix
m – Matrix to invert