Closest Euclidean distance from (px, py) to the boundary of path. Pure stroke distance — does not consult fill rule or interior. For closed-region pick distance ("0 inside, stroke-distance outside"), combine with pathContainsPoint at the call site.
path
pathContainsPoint
Closest Euclidean distance from (px, py) to the boundary of
path. Pure stroke distance — does not consult fill rule or interior. For closed-region pick distance ("0 inside, stroke-distance outside"), combine withpathContainsPointat the call site.