boost geometry polygon distance for inside point
问题 I am using boost::geometry to handle some geometrical tasks. I have two requirements that I need to cover: Handle point -> polygon intersection (inside or not). This works great with boost::geometry::within so thats good Get the distance of an arbitrary point to the closest edge of the polygon. While points outside of the polygon are handled correctly by boost::geometry::distance , however it seems that it considers polygons solid. So every point inside the polygon obviously has a distance of