add Quadtree.remove (#227)

Co-authored-by: Jonathan Ellis <jbellis@gmail.com>
This commit is contained in:
Jonathan Ellis
2022-02-28 12:02:07 -08:00
committed by GitHub
parent 6e29423448
commit b9779bb821
3 changed files with 25 additions and 0 deletions

View File

@@ -35,6 +35,14 @@ interface IQuadtree<T> {
*/
fun insert(element: T): Boolean
/**
* Remove the given element
*
* @param element
* @return true if the element was present
*/
fun remove(element: T): Boolean
/**
* Finds which node the element is within (but not necessarily belonging to)
*