Bently-Ottmann algorithm (works except for complex intersections).