Example #1
0
    public void Invert()
    {
      Assert.AreEqual(Matrix33D.Identity, Matrix33D.Identity.Inverse);

      Matrix33D m = new Matrix33D(1, 2, 3,
                                  2, 5, 8,
                                  7, 6, -1);
      Vector3D v = Vector3D.One;
      Vector3D w = m * v;
      Matrix33D im = m;
      im.Invert();
      Assert.IsTrue(Vector3D.AreNumericallyEqual(v, im * w));
      Assert.IsTrue(Matrix33D.AreNumericallyEqual(Matrix33D.Identity, m * im));
    }
Example #2
0
 public void InvertException()
 {
   Matrix33D m = new Matrix33D(columnMajor, MatrixOrder.ColumnMajor);
   m.Invert();
 }
Example #3
0
 public void InvertException()
 {
     Matrix33D m = new Matrix33D(columnMajor, MatrixOrder.ColumnMajor);
       m.Invert();
 }