ptlined
float ptlined(vector P0, vector P1, vector Q)
This function returns the closest distance between the point Q and a finite line segment between points P0 and P1.
float ptlined(vector P0, vector P1, vector Q)
This function returns the closest distance between the point Q and a finite line segment between points P0 and P1.