Lines Matching refs:MAT
100 _math_matrix_loadf( GLmatrix *mat, const GLfloat *m );
103 _math_matrix_translate( GLmatrix *mat, GLfloat x, GLfloat y, GLfloat z );
110 _math_matrix_scale( GLmatrix *mat, GLfloat x, GLfloat y, GLfloat z );
113 _math_matrix_ortho( GLmatrix *mat,
119 _math_matrix_frustum( GLmatrix *mat,
135 _math_matrix_analyse( GLmatrix *mat );
186 * Transform a normal (row vector) by a matrix: [NX NY NZ] = N * MAT
188 #define TRANSFORM_NORMAL( TO, N, MAT ) \
190 TO[0] = N[0] * MAT[0] + N[1] * MAT[1] + N[2] * MAT[2]; \
191 TO[1] = N[0] * MAT[4] + N[1] * MAT[5] + N[2] * MAT[6]; \
192 TO[2] = N[0] * MAT[8] + N[1] * MAT[9] + N[2] * MAT[10]; \
199 #define TRANSFORM_DIRECTION( TO, DIR, MAT ) \
201 TO[0] = DIR[0] * MAT[0] + DIR[1] * MAT[4] + DIR[2] * MAT[8]; \
202 TO[1] = DIR[0] * MAT[1] + DIR[1] * MAT[5] + DIR[2] * MAT[9]; \
203 TO[2] = DIR[0] * MAT[2] + DIR[1] * MAT[6] + DIR[2] * MAT[10];\