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

Function GetAabb

TombEngine/Math/Geometry.cpp:159–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157 }
158
159 BoundingBox GetAabb(const BoundingOrientedBox& box)
160 {
161 // Get corners.
162 auto corners = std::array<Vector3, BoundingOrientedBox::CORNER_COUNT>{};
163 box.GetCorners(corners.data());
164
165 // Transfer corners to vector.
166 auto cornersVector = std::vector<Vector3>{};
167 cornersVector.insert(cornersVector.end(), corners.begin(), corners.end());
168
169 // Return bounding box.
170 return Geometry::GetAabb(cornersVector);
171 }
172
173 BoundingBox GetAabb(const std::vector<Vector3>& points)
174 {

Callers 3

GetCellKeysMethod · 0.85
GetAabbMethod · 0.85
GetAabbMethod · 0.85

Calls 5

Vector3Function · 0.50
dataMethod · 0.45
insertMethod · 0.45
endMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected