Skip to content

Commit 1a527b1

Browse files
committed
fix: IntersectionWith() to return a single point when a line tangent to the circle
1 parent 7c5df6a commit 1a527b1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/Spatial/Euclidean/Circle2D.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ private double[] findParameterTs(Line2D line)
175175
var ts = solutions
176176
.Where(z => z.IsReal())
177177
.Select(z => z.Real)
178+
.Distinct()
178179
.ToArray();
179180
return ts;
180181
}

0 commit comments

Comments
 (0)