Logo Search packages:      
Sourcecode: blender version File versions  Download package

#define ADJOINT_3X3 ( a,
 ) 

Value:

{                                               \
   a[0][0] = m[1][1]*m[2][2] - m[1][2]*m[2][1];             \
   a[1][0] = - (m[1][0]*m[2][2] - m[2][0]*m[1][2]);         \
   a[2][0] = m[1][0]*m[2][1] - m[1][1]*m[2][0];             \
   a[0][1] = - (m[0][1]*m[2][2] - m[0][2]*m[2][1]);         \
   a[1][1] = m[0][0]*m[2][2] - m[0][2]*m[2][0];             \
   a[2][1] = - (m[0][0]*m[2][1] - m[0][1]*m[2][0]);         \
   a[0][2] = m[0][1]*m[1][2] - m[0][2]*m[1][1];             \
   a[1][2] = - (m[0][0]*m[1][2] - m[0][2]*m[1][0]);         \
   a[2][2] = m[0][0]*m[1][1] - m[0][1]*m[1][0]);            \
}\
adjoint of matrix

Computes adjoint of matrix m, returning a (Note that adjoint is just the transpose of the cofactor matrix)

Definition at line 1308 of file gim_linear_math.h.


Generated by  Doxygen 1.6.0   Back to index