averbraeck / djutils

Delft Java Utilities for statistics, stochastics, data analysis and serialization
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Check completeness of Point2d.intersectionOfLines(...) #21

Open averbraeck opened 1 year ago

averbraeck commented 1 year ago

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.