d3-quadtree icon indicating copy to clipboard operation
d3-quadtree copied to clipboard

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

Open pallosp opened this issue 5 years ago • 1 comments

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

pallosp avatar Mar 16 '21 20:03 pallosp

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"?

Fil avatar Mar 16 '21 22:03 Fil