Hi all,

изображение.png
Could someone explain to me how comparable distance works for point (P) and segment (AB), is it always shorten distance to line (length of red perpendicular from P on the pic above) or really to "limited" segment - nearest point _ON_ it (length of PA for the pic above)?

Thanks in advanced for help!

---
With regards, Oleg.