Distance between a point and a line segment.
The Euclidean distance from p to the closest point on segment v-w.
The query point.
The start of the line segment.
The end of the line segment.