Ejemplo n.º 1
0
        public void OppositeTest2()
        {
            var point    = new Point(6, 4);
            var rect     = new Rect(2, 1, 3, 3);
            var opposite = Geometrics.GetOpposite(point, rect);

            Assert.AreEqual(new Point(1, 1), opposite);
        }
Ejemplo n.º 2
0
        public void OppositeTest5()
        {
            var point    = new Point(0, 5);
            var rect     = new Rect(0, 0, 5, 5);
            var opposite = Geometrics.GetOpposite(point, rect);

            Assert.AreEqual(new Point(5, 0), opposite);
        }
Ejemplo n.º 3
0
        public void OppositeTest1()
        {
            var point    = new Point(1, 0);
            var rect     = new Rect(2, 0, 4, 5);
            var opposite = Geometrics.GetOpposite(point, rect);

            Assert.AreEqual(new Point(7, 5), opposite);
        }