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

Add deleteInRange, clear, filter #62

Merged
merged 9 commits into from
Oct 7, 2022

Conversation

crhallberg
Copy link
Collaborator

@crhallberg crhallberg commented Oct 25, 2021

This work updates #42 (with many thanks to @AndreAzevedoCoder) with bits from #12 (many thanks to @edenkl8 and @Dezzles)!

  • deleteInRange(range) - delete all points inside of range.
  • filter(fn) - works like Array.filter(): returns a new QuadTree with only the points that return true.
  • clear() - removes all points and children from a QuadTree.

Closes #9, #41.

@crhallberg crhallberg mentioned this pull request Oct 25, 2021
8 tasks
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

Successfully merging this pull request may close these issues.

Function to clear QuadTree
2 participants