예제 #1
0
        public void ToMatrixD()
        {
            Matrix44D m44 = new Matrix44D(1, 2, 3, 4,
                                    5, 6, 7, 8,
                                    9, 10, 11, 12,
                                    13, 14, 15, 16);

              MatrixD m = m44.ToMatrixD();
              for (int i = 0; i < 4; i++)
            for (int j = 0; j < 4; j++)
              Assert.AreEqual(i * 4 + j + 1, m[i, j]);

              m = m44;
              for (int i = 0; i < 4; i++)
            for (int j = 0; j < 4; j++)
              Assert.AreEqual(i * 4 + j + 1, m[i, j]);
        }