There are efficient (compared to O(n2) pairwise testing) algorithms for finding all intersections in a set of line segments, like the Bentley-Ottmann algorithm. However, I want to find all intersections in a set of infinite lines. When the region of interest is something finite like a rectangle, the line-segment intersection algorithms can be applied after clipping the lines. But
- Is there a simpler or more efficient way than just clipping the lines and applying line-segment intersection algorithms?
- Is there an efficient algorithm for all intersections over the entire plane for a set of lines?