I can find the distance between a point MyPoint
and a polygon MyPolygon
with
double dist = boost::geometry::distance(MyPoint, MyPolygon)
obviously the actual closest point on MyPolygon
has to be computed somewhere. Is there an easy way to get that closest point? I can't find anything in the Boost Documentation and I'm sure others had that problem too.
return_type dist = geometry::distance(geometry, *it);
indistance_single_to_multi
tests more than just the endpoints of the segments of the polygonboundary and the comparable_distance example does check just the endpoints. But in any case that means I have to write my own solution right? – Accomplishment