14 #ifndef PX_FOUNDATION_PX_VEC3_H
15 #define PX_FOUNDATION_PX_VEC3_H
89 return reinterpret_cast<PxReal*
>(
this)[index];
99 return reinterpret_cast<PxReal*
>(
this)[index];
109 return reinterpret_cast<const PxReal*
>(
this)[index];
119 return reinterpret_cast<const PxReal*
>(
this)[index];
149 const float unitTolerance = 1e-4f;
150 return isFinite() &&
PxAbs(magnitude()-1)<unitTolerance;
170 return PxVec3(-x, -y, -z);
194 return PxVec3(x * f, y * f, z * f);
246 return x * v.
x + y * v.
y + z * v.
z;
263 const PxReal m = magnitudeSquared();
272 const PxReal m = magnitude();
284 const PxReal mag = magnitude();
297 const PxReal mag = magnitude();
357 return PxVec3(f * v.
x, f * v.
y, f * v.
z);
365 #endif // PX_FOUNDATION_PX_VEC3_H