예제 #1
0
        public void Subtraction()
        {
            Matrix22F m1     = new Matrix22F(columnMajor, MatrixOrder.ColumnMajor);
            Matrix22F m2     = Matrix22F.One;
            Matrix22F result = Matrix22F.Subtract(m1, m2);

            for (int i = 0; i < 4; i++)
            {
                Assert.AreEqual(rowMajor[i] - 1.0f, result[i]);
            }
        }