I would like to find all intersections between straight line (infinite). I'm trying change the Bentley-Ottmann algorithm which works for set of line segments, but I have no idea how to represent infinite straight line properly. The first idea was to determine boundary points which would simulate start and end each of lines, but I suppose it's incorrect solution (how to find "infinite" points?). The next idea is to use equations to represent the straight lines, but I don't know if I can use Bentley-Ottmann algorithm (how to order lines and to add events to schedule?). What's more I probably need to use division to detect intersection of two lines (while solving a set of equations). I would like to avoid it.
Can you give me some advice?
Thanks a lot