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

Method GetCenter

TombEngine/Math/Objects/GameBoundingBox.cpp:78–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76 }
77
78 Vector3 GameBoundingBox::GetCenter() const
79 {
80 return ((Vector3(X1, Y1, Z1) + Vector3(X2, Y2, Z2)) / 2);
81 }
82
83 Vector3 GameBoundingBox::GetExtents() const
84 {

Callers 6

RenderBlobShadowsMethod · 0.80
ScaleAabbMethod · 0.80
UpdateItemRoomFunction · 0.80
HandleProjectileFunction · 0.80
GetWaterProbeOffsetMethod · 0.80
DropPickupsFunction · 0.80

Calls 1

Vector3Function · 0.50

Tested by

no test coverage detected