Function line_intersection_x