Пример #1
0
        public void ContainsPointTest()
        {
            var line = new Line2(1, -1, 0); // y = x

            Assert.True(line.ContainsPoint(new Vector2(0, 0)));
            Assert.True(line.ContainsPoint(new Vector2(1, 1)));
            Assert.True(line.ContainsPoint(new Vector2(-2, -2)));
        }