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

            Matrix22F m  = new Matrix22F(1, 2, 3, 4);
            Vector2F  v  = Vector2F.One;
            Vector2F  w  = m * v;
            Matrix22F im = m;

            im.Invert();
            Assert.IsTrue(Vector2F.AreNumericallyEqual(v, im * w));
            Assert.IsTrue(Matrix22F.AreNumericallyEqual(Matrix22F.Identity, m * im));
        }
Exemple #2
0
        public void InvertException()
        {
            Matrix22F m = new Matrix22F(1, 2, 4, 8);

            m.Invert();
        }
Exemple #3
0
 public void InvertException()
 {
     Matrix22F m = new Matrix22F(1, 2, 4, 8);
       m.Invert();
 }