The identity matrix.
The identity matrix. When any matrix M is right- or left-multiplied by the identity, M is returned.
The matrix composed of all zero values.
The matrix composed of all zero values. When any matrix M is right- or left-multiplied by the zero matrix, the zero matrix is returned.
Generates a matrix for the rotation caused by looking towards the specified direction from the origin.
Generates a matrix for the rotation caused by looking towards the specified direction from the origin.
See this Wikipedia article for the source of the equations.
the direction to look at
the rotation matrix
Generates a matrix for an Euler rotation along the X, Y, then Z-axes, in that order.
Generates a matrix for an Euler rotation along the X, Y, then Z-axes, in that order.
a vector containing the rotation orders
the rotation matrix
Performs a counter-clockwise rotation on the positive x-axis, i.
Performs a counter-clockwise rotation on the positive x-axis, i.e. the rotation would appear to be counter-clockwise if looking in the direction of the negative x-axis.
the angle to rotate
the rotation matrix
Performs a counter-clockwise rotation on the positive y-axis, i.
Performs a counter-clockwise rotation on the positive y-axis, i.e. the rotation would appear to be counter-clockwise if looking in the direction of the negative y-axis.
the angle to rotate
the rotation matrix
Performs a counter-clockwise rotation on the positive z-axis, i.
Performs a counter-clockwise rotation on the positive z-axis, i.e. the rotation would appear to be counter-clockwise if looking in the direction of the negative z-axis.
the angle to rotate
the rotation matrix
Generates a matrix for scaling with the specified factors.
Generates a matrix for scaling with the specified factors.
the factor to scale by along each axis
the scaling matrix
Generates a matrix for translation in the specified distances.
Generates a matrix for translation in the specified distances.
the amount to translate along each axis
the translation matrix