Exemplo n.º 1
0
 public void CanGetLineIntersections()
 {
     var line1 = new Curve(new Point(0, 0), new Point(4, 4));
     var line2 = new Curve(new Point(4, 0), new Point(0, 4));
     var intersection = (Point)line1.FindIntersection(line2);
     Assert.That(intersection.X, Is.EqualTo(2));
     Assert.That(intersection.Y, Is.EqualTo(2));
 }