Ejemplo n.º 1
0
        public void IntersectionTest2()
        {
            var l1           = Line2.FromSlopeAndYIntercept(slope: 1, yIntercept: 1);
            var l2           = Line2.FromSlopeAndYIntercept(slope: -1, yIntercept: 1);
            var intersection = Line2.Intersection(l1, l2);

            Assert.Equal(new Vector2(0, 1), intersection);
        }