Boost logo

Geometry :

Subject: Re: [geometry] Comparable distance from point to segment
From: Vissarion Fysikopoulos (vissarion.fysikopoulos_at_[hidden])
Date: 2019-02-08 11:05:14


Hi Oleg,

On 06/02/2019 15:53, Oleg Evseev via Geometry wrote:
> 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)?
>
it is shortest distance to the segment i.e. the length of PA above. Note
also that "comparable" is not exactly that distance but omits some
arithmetic operations for efficiency and aims in comparison of two or
more of "comparable" distances.

Best,

Vissarion

> Thanks in advanced for help!
>
> ---
> With regards, Oleg.
>
> _______________________________________________
> Geometry mailing list
> Geometry_at_[hidden]
> https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.boost.org_mailman_listinfo.cgi_geometry&d=DwICAg&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=qtrJNnpeyFz5vx_r8EJqjiJa9qMbZZPxr5w2ietJHWky4hlin6pJP3gyYv6wTp9L&m=jl02NdpZReEFsb3MlTJKShLuu8qIvoWPxWhCtNpdg8o&s=apEAUW4glyTVSj1LV0xJ-8L6dnU5YtZyfYpBRc6YF04&e=



picture

Geometry list run by mateusz at loskot.net