| 89 | } |
| 90 | |
| 91 | static 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 |
| 99 | static void computeScaledMatrix(PxMat33Padded& rot, const PxMeshScale& scale) |
no outgoing calls
no test coverage detected