Function line_intersection