We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b27fdb1 commit dc7ea85Copy full SHA for dc7ea85
1 file changed
src/Spatial.Tests/Euclidean/Circle2DTests.cs
@@ -73,6 +73,9 @@ public void CircleIntersectWithLine2D_NumberOfIntersections(string sc, double ra
73
var actual = circle.IntersectWith(line);
74
75
Assert.That(actual.Count(), Is.EqualTo(expectedNumberOfIntersections));
76
+ //TODO: the intersection should be on the circle
77
+ Assert.That(actual.All(p => Math.Abs(circle.Center.DistanceTo(p) - circle.Radius) < 1e-6), Is.EqualTo(true), "distance between center and intersection");
78
+ //TODO: the intersection should be on the line
79
}
80
81
//segment contains the all intersections(same to the cases of circle and line)
0 commit comments