Ejemplo n.º 1
0
    public void ToMatrixD()
    {
      Matrix33D m33 = new Matrix33D(1, 2, 3, 4, 5, 6, 7, 8, 9);

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

      m = m33;
      for (int i = 0; i < 3; i++)
        for (int j = 0; j < 3; j++)
          Assert.AreEqual(i * 3 + j + 1, m[i, j]);
    }
Ejemplo n.º 2
0
        public void ToMatrixD()
        {
            Matrix33D m33 = new Matrix33D(1, 2, 3, 4, 5, 6, 7, 8, 9);

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

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