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

Function PxSAH

physx/source/physxcooking/src/mesh/RTreeCooking.cpp:336–339  ·  view source on GitHub ↗

SAH function - returns surface area for given AABB extents

Source from the content-addressed store, hash-verified

334
335// SAH function - returns surface area for given AABB extents
336static PX_FORCE_INLINE void PxSAH(const Vec3VArg v, PxF32& sah)
337{
338 FStore(V3Dot(v, V3PermZXY(v)), &sah); // v.x*v.y + v.y*v.z + v.x*v.z;
339}
340
341struct SubSortSAH
342{

Callers 3

splitMethod · 0.85
computeSAMethod · 0.85
sort4Method · 0.85

Calls 3

FStoreFunction · 0.50
V3DotFunction · 0.50
V3PermZXYFunction · 0.50

Tested by

no test coverage detected