PxVec3Padded
Defined in include/foundation/PxVec3.h
-
class PxVec3Padded : public PxVec3T<float>
A padded version of PxVec3, to safely load its data using SIMD.
Public Functions
-
inline PxVec3Padded()
-
inline ~PxVec3Padded()
-
inline PxVec3Padded(float f)
-
inline PxVec3Padded &operator=(const PxVec3Padded &p)
Assignment operator.
To fix this: error: definition of implicit copy assignment operator for ‘PxVec3Padded’ is deprecated because it has a user-declared destructor [-Werror,-Wdeprecated]
-
inline float &operator[](unsigned int index)
element access
-
inline const float &operator[](unsigned int index) const
element access
-
inline bool operator!=(const PxVec3T &v) const
returns true if the two vectors are not exactly equal.
-
inline bool isZero() const
tests for exact zero vector
-
inline bool isFinite() const
returns true if all 3 elems of the vector are finite (not NAN or INF, etc.)
-
inline bool isNormalized() const
is normalized - used by API parameter validation
-
inline float magnitudeSquared() const
returns the squared magnitude
Avoids calling PxSqrt()!
-
inline float magnitude() const
returns the magnitude
-
inline float normalize()
normalizes the vector in place
-
inline float normalizeSafe()
normalizes the vector in place.
Does nothing if vector magnitude is under PX_NORMALIZATION_EPSILON. Returns vector magnitude if >= PX_NORMALIZATION_EPSILON and 0.0f otherwise.
-
inline float normalizeFast()
normalizes the vector in place.
Asserts if vector magnitude is under PX_NORMALIZATION_EPSILON. returns vector magnitude.
-
inline float minElement() const
returns MIN(x, y, z);
-
inline float maxElement() const
returns MAX(x, y, z);
-
inline PxVec3Padded()