From: Eric M. <ema...@um...> - 2003-09-22 16:15:23
|
How this is the right list: What is the recommended method for grabbing an entire column? Can't seem to find a general GetColumn() routine in the Matrix definition. I can't seem to even grab the components and throw them in a vector when the Matrix44f is a pointer. Matrix44f* mat = entity->GetTransform(); // GetTransform() returns Matrix44f* Vec3f out_vec(mat[2][0],mat[2][1],mat[2][2]); yields: error C2664: 'gmtl::Vec<DATA_TYPE,SIZE>::Vec(const DATA_TYPE &,const DATA_TYPE &,const DATA_TYPE &)' : cannot convert parameter 1 from 'gmtl::Matrix<DATA_TYPE,ROWS,COLS>::RowAccessor *' to 'const float &' Any help would be greatly appreciated. cheers E. |