mat-misc.hpp

Go to the documentation of this file.
00001 //=============================================================================
00002 /*! return its transposed matrix */
00003 inline mat trans(const mat& m)
00004 {
00005   return mat( m.xx, m.yx, m.zx,
00006               m.xy, m.yy, m.zy,
00007               m.xz, m.yz, m.zz );
00008 }
00009 
00010 //=============================================================================
00011 /*! swap two mats */
00012 inline void swap(mat& v1, mat& v2)
00013 {
00014   mat _v1(v1);
00015   v1 = v2;
00016   v2 =_v1;
00017 }

Generated on Tue Mar 15 16:02:38 2005 for QVM by  doxygen 1.4.1