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

Function isNonIdentity

physx/source/geomutils/src/GuBounds.cpp:91–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91static PX_FORCE_INLINE PxU32 isNonIdentity(const PxVec3& scale)
92{
93 #define IEEE_1_0 0x3f800000 //!< integer representation of 1.0
94 const PxU32* binary = reinterpret_cast<const PxU32*>(&scale.x);
95 return (binary[0] - IEEE_1_0)|(binary[1] - IEEE_1_0)|(binary[2] - IEEE_1_0);
96}
97
98// PT: please don't inline this one - 300+ lines of rarely used code
99static void computeScaledMatrix(PxMat33Padded& rot, const PxMeshScale& scale)

Callers 2

transformNoEmptyTestFunction · 0.85
computeBoundsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected