tests/cuda3.2/tests/particles/particles.cpp
void ixform(float *v, float *r, GLfloat *m)
{
  r[0] = v[0]*m[0] + v[1]*m[1] + v[2]*m[2];
  r[1] = v[0]*m[4] + v[1]*m[5] + v[2]*m[6];
  r[2] = v[0]*m[8] + v[1]*m[9] + v[2]*m[10];
}
// transform vector by transpose of matrix
transform vector by transpose of matrix
transform vector by transpose of matrix
void ixform(float *v, float *r, GLfloat *m)
{
  r[0] = v[0]*m[0] + v[1]*m[1] + v[2]*m[2];
  r[1] = v[0]*m[4] + v[1]*m[5] + v[2]*m[6];
  r[2] = v[0]*m[8] + v[1]*m[9] + v[2]*m[10];
}
void ixform ( float * v , float * r , GLfloat * m ) { r [ 0 ] = v [ 0 ] * m [ 0 ] + v [ 1 ] * m [ 1 ] + v [ 2 ] * m [ 2 ] ; r [ 1 ] = v [ 0 ] * m [ 4 ] + v [ 1 ] * m [ 5 ] + v [ 2 ] * m [ 6 ] ; r [ 2 ] = v [ 0 ] * m [ 8 ] + v [ 1 ] * m [ 9 ] + v [ 2 ] * m [ 10 ] ; }
transform vector by transpose of matrix
transform vector by transpose of matrix