This pull-request is asking for help to solve #178.
The problem is that LineSegment2D.TryIntersect() always passes by reference Point2D of intersection, regardless of whether the two LineSegment2D actually have a valid intersection or not.
In my fix, LineSegment2D.TryIntersect() passes by ref Point2D?, which can indicate that there is no intersection.
My fix used #111 as reference.
I'm not sure that this breaking change is acceptable or not.
If there is another way to solve this, I'm happy to learn it.
This pull-request is asking for help to solve #178.
The problem is that
LineSegment2D.TryIntersect()
always passes by referencePoint2D
of intersection, regardless of whether the twoLineSegment2D
actually have a valid intersection or not.In my fix,
LineSegment2D.TryIntersect()
passes by refPoint2D?
, which can indicate that there is no intersection. My fix used #111 as reference.I'm not sure that this breaking change is acceptable or not. If there is another way to solve this, I'm happy to learn it.
I considered these fix-plans: