Exemple #1
0
        public void ConstructorFromPoint()
        {
            var m = new DoublePointMatrix(new IntPoint(4, 5));

            Assert.AreEqual(4, m.Width);
            Assert.AreEqual(5, m.Height);
        }
Exemple #2
0
 public void SetUp()
 {
     M = new DoublePointMatrix(4, 5);
     for (int x = 0; x < M.Width; ++x)
     {
         for (int y = 0; y < M.Height; ++y)
         {
             M[x, y] = new DoublePoint(10 * x, 10 * y);
         }
     }
 }