resqpy.olio.intersection.point_snapped_to_line_segment_2d

resqpy.olio.intersection.point_snapped_to_line_segment_2d(p, l1, l2)[source]

Returns the point on the bounded line segment l1, l2 which is closest to point p, in xy plane.