remove method
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);
});
}
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);
});
}