remove method

void remove(
  1. T obj,
  2. AABB bounds
)

Implementation

void remove(T obj, AABB bounds) {
  _forEachCell(bounds, (key) {
    final cell = _cells[key];
    if (cell == null) return;
    cell.remove(obj);
    if (cell.isEmpty) _cells.remove(key);
  });
}