Example #1
0
 public static bool FEql <T, U>(m6x8 <T, U> lhs, m6x8 <T, U> rhs) where T : IVectorSpace where U : IVectorSpace
 {
     return
         (FEql(lhs.m00, rhs.m00) &&
          FEql(lhs.m01, rhs.m01) &&
          FEql(lhs.m10, rhs.m10) &&
          FEql(lhs.m11, rhs.m11));
 }
Example #2
0
 /// <summary>Return the transpose of a spatial matrix</summary>
 public static void Transpose <T, U>(ref m6x8 <T, U> m) where T : IVectorSpace where U : IVectorSpace
 {
     Transpose(ref m.m00);
     Transpose(ref m.m01);
     Transpose(ref m.m10);
     Transpose(ref m.m11);
     Swap(ref m.m01, ref m.m10);
 }
Example #3
0
 public static bool FEqlRelative <T, U>(m6x8 <T, U> lhs, m6x8 <T, U> rhs, float tol) where T : IVectorSpace where U : IVectorSpace
 {
     return
         (FEqlRelative(lhs.m00, rhs.m00, tol) &&
          FEqlRelative(lhs.m01, rhs.m01, tol) &&
          FEqlRelative(lhs.m10, rhs.m10, tol) &&
          FEqlRelative(lhs.m11, rhs.m11, tol));
 }
Example #4
0
 public static m6x8 <T, U> Transpose <T, U>(m6x8 <T, U> m) where T : IVectorSpace where U : IVectorSpace
 {
     Transpose(ref m);
     return(m);
 }