public static void transposeM ( float [ ] mTrans , int mTransOffset , float [ ] m , int mOffset ) { for ( int i = 0 ; i < 4 ; i ++ ) { int mBase = i * 4 + mOffset ; mTrans [ i + mTransOffset ] = m [ mBase ] ; mTrans [ i + 4 + mTransOffset ] = m [ mBase + 1 ] ; mTrans [ i + 8 + mTransOffset ] = m [ mBase + 2 ] ; mTrans [ i + 12 + mTransOffset ] = m [ mBase + 3 ] ; } }
Transposes a 4 x 4 matrix .