QuadTree icon indicating copy to clipboard operation
QuadTree copied to clipboard

Add deleteInRange, clear, filter

Open crhallberg opened this issue 3 years ago • 0 comments

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 avatar Oct 25 '21 23:10 crhallberg