Exemplo n.º 1
0
        public void Inverse()
        {
            Matrix2x2d m = new Matrix2x2d((double)5, (double)2,
                                          1.0, (double)3);

            m = m / m;
            Assert.IsTrue(Matrix2x2d.NearEqual(m, Matrix2x2d.Identity));
        }
Exemplo n.º 2
0
        public void Mul()
        {
            Matrix2x2d m = new Matrix2x2d((double)2.0, (double)3.0,
                                          -1.0, (double)2.0);

            m = m * m;
            Assert.IsTrue(Matrix2x2d.NearEqual(m,
                                               new Matrix2x2d(1.0, (double)12, (double)-4, (double)1)));
        }