Boost logo

Geometry :

Subject: [geometry] Comparable distance from point to segment
From: Oleg Evseev (ev.mipt_at_[hidden])
Date: 2019-02-06 13:53:59


Hi all,

[image: изображение.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.



______________________.png

Geometry list run by mateusz at loskot.net