| 369 | } |
| 370 | |
| 371 | static 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 | |
| 379 | static PX_FORCE_INLINE void computeRayLimits(float& rayMin, float& rayMax, const PxVec3& rayOrig, const PxVec3& rayDir, float maxDist, const PxVec3& inflate, PxU32 sortAxis) |
| 380 | { |
no test coverage detected