-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What does nearest neighbor to a point mean in the docs? #118
Comments
It's the distance to the closest point of the box. If the point is inside the box, it has a distance of 0; otherwise some point on the exterior of the box is used. This is the function used to find the nearest corner or edge of the box: Lines 295 to 306 in 9ca258b
(I'm not sure the ordering for nearest boxes when multiple have a distance of 0, maybe it's undefined) |
Thanks for the swift reply. |
We can keep this open to add this explanation to the docs. |
What is the definition of nearest (or distance in general) between bounding boxes (rectangles) and a point here?
The text was updated successfully, but these errors were encountered: