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

Bounds-based QuadTrees appear to be broken? #2

Open
olsonjeffery opened this issue Jul 14, 2011 · 2 comments
Open

Bounds-based QuadTrees appear to be broken? #2

olsonjeffery opened this issue Jul 14, 2011 · 2 comments

Comments

@olsonjeffery
Copy link

Here's a jsfiddle test case for a QuadTree that is supposed to include bounds..
http://jsfiddle.net/zYMpN/2/

Notice the weird behavior (duplicates.. not really meeting described behavior) in the results.. not even sure where to being with this.

This point quad testcase, OTOH, seems to work fine:
http://jsfiddle.net/zYMpN/6/

Any thoughts/feedback would be appreciated.

Thanks

@Glidias
Copy link

Glidias commented Dec 22, 2011

Well, from the source code browsing, I knew something was fishy since the only referenees to "item.width/item.height" occurs during insertion methods, but not under retrieve methods. Retrieve methods should also take into consideration item.width/item.height, but i dont see any of those.

@canonex
Copy link

canonex commented Mar 27, 2013

I confirm that duplicates items are retrieved using bounds.
Evidence in the image attached.

16ItemsInsteadOf13

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

No branches or pull requests

3 participants