Beispiel #1
0
 /// <summary>
 /// Transposes the matrix
 /// </summary>
 public void Transpose()
 {
     SLUtils.Swap(ref m[1], ref m[4]);
     SLUtils.Swap(ref m[2], ref m[8]);
     SLUtils.Swap(ref m[6], ref m[9]);
     SLUtils.Swap(ref m[3], ref m[12]);
     SLUtils.Swap(ref m[7], ref m[13]);
     SLUtils.Swap(ref m[11], ref m[14]);
 }
Beispiel #2
0
 /// <summary>
 /// Transposes the matrix
 /// </summary>
 public void Transpose()
 {
     SLUtils.Swap(ref m[1], ref m[3]);
     SLUtils.Swap(ref m[2], ref m[6]);
     SLUtils.Swap(ref m[5], ref m[7]);
 }