Beispiel #1
0
        public void Matrix_World1()
        {
            var point = World1.Transform(TestPoint);

            AssertDouble(0.5, point.X, "X failed");
            AssertDouble(0, point.Y, "Y failed");
        }
Beispiel #2
0
        public void World1_NomalizesAxes()
        {
            var point = World1.Transform(W1UL);

            AssertDouble(0, point.X, "UL.X1 failed");
            AssertDouble(0, point.Y, "UL.Y failed");
            point = World1.Transform(W1LR);
            AssertDouble(1, point.X, "LR.X1 failed");
            AssertDouble(1, point.Y, "LR.Y failed");
            point = World1.Transform(new Point(X_MIN1 + (X_MAX1 - X_MIN1) / 2, Y_MIN + (Y_MAX - Y_MIN) / 2));
            AssertDouble(.5, point.X, "mid.X failed");
            AssertDouble(.5, point.Y, "mid.Y failed");
        }