MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / GetBoundedObjectIds

Method GetBoundedObjectIds

TombEngine/Specific/Structures/SpatialHash.cpp:26–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 3

GetIdsMethod · 0.45
GetBoundedIdsMethod · 0.45
GetCollisionMethod · 0.45

Calls 5

insertMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
emptyMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected