| 24 | } |
| 25 | |
| 26 | std::set<int> SpatialHash::GetBoundedObjectIds() const |
| 27 | { |
| 28 | auto objectIds = std::set<int>{}; |
| 29 | |
| 30 | // Collect object IDs from all cells. |
| 31 | for (const auto& [key, cell] : _cellMap) |
| 32 | objectIds.insert(cell.ObjectIds.begin(), cell.ObjectIds.end()); |
| 33 | |
| 34 | return objectIds; |
| 35 | } |
| 36 | |
| 37 | std::set<int> SpatialHash::GetBoundedObjectIds(const Vector3& pos) const |
| 38 | { |
no test coverage detected