You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but now that you're pointing at this, is this sentence correct?
“x0 and y0 are the inclusive lower bounds and x1 and y1 are the inclusive upper bounds” https://github.com/d3/d3-quadtree#quadtree_extent ; shouldn't it be "exclusive" for the upper bounds?
That's what I assumed, but isn't it count-intuitive for tree.extent( tree.extent() ) to return a different result?
The main problem is that it makes serializing/unserializing the quadtree very awkward, because there's no other way to set the extent that doesn't reach into private properties (e.g. _x0, _y0)
If a tree has the extent
[[1,1],[5,5]]
, callingtree.extent( tree.extent() )
returns a tree with the extent[[1,1], [9,9]]
The text was updated successfully, but these errors were encountered: