Example #1
0
 public void CanGetLineIntersectionsInf()
 {
     var line1 = new Curve(new Point(0, 0), new Point(1, 1));
     var line2 = new Curve(new Point(4, 0), new Point(3, 1));
     var intersection = (Point)line1.FindIntersectionInf(line2);
     Assert.That(intersection.X, Is.EqualTo(2));
     Assert.That(intersection.Y, Is.EqualTo(2));
 }