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

Function GetAabbArea

TombEngine/Math/Geometry.cpp:198–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196 }
197
198 float GetAabbArea(const BoundingBox& box)
199 {
200 float width = box.Extents.x * 2;
201 float height = box.Extents.y * 2;
202 float depth = box.Extents.z * 2;
203
204 return (((width * height) + (width * depth) + (height * depth)) * 2);
205 }
206
207 float GetDistanceToLine(const Vector3& origin, const Vector3& linePoint0, const Vector3& linePoint1)
208 {

Callers 2

GetBestSiblingLeafIdMethod · 0.85
BuildMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected