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

Function computeRayLimits

physx/source/scenequery/src/SqBucketPruner.cpp:371–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

369}
370
371static PX_FORCE_INLINE void computeRayLimits(float& rayMin, float& rayMax, const PxVec3& rayOrig, const PxVec3& rayDir, float maxDist, PxU32 sortAxis)
372{
373 const float rayOrigValue = rayOrig[sortAxis];
374 const float rayDirValue = rayDir[sortAxis] * maxDist;
375 rayMin = PxMin(rayOrigValue, rayOrigValue + rayDirValue);
376 rayMax = PxMax(rayOrigValue, rayOrigValue + rayDirValue);
377}
378
379static PX_FORCE_INLINE void computeRayLimits(float& rayMin, float& rayMax, const PxVec3& rayOrig, const PxVec3& rayDir, float maxDist, const PxVec3& inflate, PxU32 sortAxis)
380{

Callers 2

processBucketFunction · 0.85
SqBucketPruner.cppFile · 0.85

Calls 2

PxMinFunction · 0.85
PxMaxFunction · 0.85

Tested by

no test coverage detected