succintified two lines in point_in_polygon