Skip to content
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

quadtree.find(x, y, 0) should return [x, y] if it's present in the tree #39

Open
pallosp opened this issue Mar 16, 2021 · 1 comment
Open

Comments

@pallosp
Copy link

pallosp commented Mar 16, 2021

d3.quadtree().add([1, 2]).find(1, 2, 0) returns undefined, while I'd expect it to return [1, 2].

@Fil
Copy link
Member

Fil commented Mar 16, 2021

the test is for a distance strictly inferior to the radius, so it doesn't pass. It should probably be documented as "strictly within the radius"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants