mat_mul |
void mat_mul( s_matp mat1, s_matp mat2, s_matp mdest );
Multiplies two 3x3 matrices.
- mat1
- First matrix
- mat2
- Second matrix
- mdest
- Matrix where result will be stored
mat_rotate |
void mat_rotate( s_matp mat, float rads, s_matp mdest );
Applies a rotation to a matrix.
- rads
- Rotation angle in radians
- mdest
- Matrix where result will be stored
mat_shear |
void mat_shear( s_matp mat, svec2 disp, s_matp mdest );
Applies a shear to a matrix.
- disp
- 2D displacement vector
- mdest
- Matrix where result will be stored
mat_xlate |
void mat_xlate( s_matp mat, svec2 disp, s_matp mdest );
Applies a translation to a matrix.
- disp
- 2D displacement vector
- mdest
- Matrix where result will be stored
s_mat3 |
typedef float s_mat3 [ 9 ];
Matrix of 3x3 floats.
s_matp |
typedef float *s_matp;
Pointer to matrix of floats.
© 2005 Jeffrey T. Read (Last Updated 7/27/2005)