The Point2d class in djutils-draw has a method intersectionOfLines. The method (lines 252-288) defines the lines (or line segments) with two points each. It looks at situations where segments cross at the outer ends of these segments, but it seems to only look at 3 out of 4 situations, and seems to omit the uA == 0.0 situation. This has to be researched and a unit test corresponding to this situation has to be added.
The
Point2d
class in djutils-draw has a methodintersectionOfLines
. The method (lines 252-288) defines the lines (or line segments) with two points each. It looks at situations where segments cross at the outer ends of these segments, but it seems to only look at 3 out of 4 situations, and seems to omit theuA == 0.0
situation. This has to be researched and a unit test corresponding to this situation has to be added.