結果 : check if two line segments intersect python