About
User guide
API Reference
point_distance_to_line_segment_2d()
Ignoring any z values, returns the xy distance of point p from line segment between l1 and l2.