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

Function intersect2D

physx/source/lowlevelaabb/src/BpBroadPhaseABP.cpp:1880–1897  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1878
1879#ifndef ABP_SIMD_OVERLAP
1880static PX_FORCE_INLINE int intersect2D(const SIMD_AABB_YZ4& a, const SIMD_AABB_YZ4& b)
1881{
1882/* if(
1883 b.mMaxY < a.mMinY || a.mMaxY < b.mMinY
1884 ||
1885 b.mMaxZ < a.mMinZ || a.mMaxZ < b.mMinZ
1886 )
1887 return 0;
1888 return 1;*/
1889
1890 const bool b0 = b.mMaxY < a.mMinY;
1891 const bool b1 = a.mMaxY < b.mMinY;
1892 const bool b2 = b.mMaxZ < a.mMinZ;
1893 const bool b3 = a.mMaxZ < b.mMinZ;
1894// const bool b4 = b0 || b1 || b2 || b3;
1895 const bool b4 = b0 | b1 | b2 | b3;
1896 return !b4;
1897}
1898#endif
1899
1900static PX_FORCE_INLINE void outputPair(ABP_PairManager& pairManager, PxU32 index0, PxU32 index1)

Callers 2

boxPruningKernelFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected