removeObj method

bool removeObj(
  1. Object searchBounds,
  2. Object item
)

Removes an item from the tree. (Builds the tree, if necessary.)

Implementation

bool removeObj(Object searchBounds, Object item) {
  build();
  if (getIntersectsOp().intersects(root.getBounds(), searchBounds)) {
    return removeWithNode(searchBounds, root, item);
  }
  return false;
}