MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / resetOrClear

Function resetOrClear

physx/source/lowlevelaabb/src/BpAABBManager.cpp:94–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92// PT: TODO: refactor with CCT version
93template <class T>
94static void resetOrClear(T& a)
95{
96 const PxU32 c = a.capacity();
97 const PxU32 s = a.size();
98 if(s>=c/2)
99 a.clear();
100 else
101 a.reset();
102}
103
104///
105

Callers 3

updateAABBsAndBPMethod · 0.70
postBroadPhaseMethod · 0.70
postBpStage3Method · 0.70

Calls 4

capacityMethod · 0.45
sizeMethod · 0.45
clearMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected