Top "Line-segment" questions

Shortest distance between a point and a line segment

I need a basic function to find the shortest distance between a point and a line segment. Feel free to …

language-agnostic geometry distance line-segment