Пример #1
0
        public void IsPointRightOfLineTest()
        {
            var a0 = new Vector(0, 0);
            var a1 = new Vector(0, 7);
            var p  = new Vector(5, 5);

            Assert.AreEqual(true, LevelLine.IsPointRightOfLine(a0, a1, p));

            p = new Vector(-5, 5);
            Assert.AreEqual(false, LevelLine.IsPointRightOfLine(a0, a1, p));
        }
Пример #2
0
        public void IsPointOnLineTest()
        {
            var a0 = new Vector(0, 0);
            var a1 = new Vector(4, 4);
            var p  = new Vector(3, 3);

            Assert.AreEqual(false, LevelLine.IsPointRightOfLine(a0, a1, p));

            a0 = new Vector(0, 0);
            a1 = new Vector(4, 4);
            Assert.AreEqual(false, LevelLine.IsPointRightOfLine(a0, a1, p));
        }