14 #ifndef PX_FOUNDATION_PX_VEC4_H
15 #define PX_FOUNDATION_PX_VEC4_H
106 return reinterpret_cast<PxReal*
>(
this)[index];
116 return reinterpret_cast<PxReal*
>(
this)[index];
126 return reinterpret_cast<const PxReal*
>(
this)[index];
136 return reinterpret_cast<const PxReal*
>(
this)[index];
167 const float unitTolerance = 1e-4f;
168 return isFinite() &&
PxAbs(magnitude()-1)<unitTolerance;
189 return PxVec4(-x, -y, -z, -w);
214 return PxVec4(x * f, y * f, z * f, w * f);
270 return x * v.
x + y * v.
y + z * v.
z + w * v.
w;
277 PxReal m = magnitudeSquared();
333 return PxVec4(f * v.
x, f * v.
y, f * v.
z, f * v.
w);
341 #endif // PX_FOUNDATION_PX_VEC4_H