Re: Closest point on a segment to a given point (2D)
We have it in 3D but not in 2D.
What you can do is project the point onto the supporting line,
check whether the point is inside the segment and if not pick
the endpoint of the segment that is the closest to the
Something like this (I did not try to compile it):
> Is there a function that returns the closest point (2D) on a segment
> (2D) to a given point (2D)?
> Thank you in advance,
> */Renato Silveira
> Ph.D. in Computer Science
> Informatics Institute - UFRGS
> Porto Alegre - RS - Brazil