PxVec3T
Defined in include/foundation/PxVec3.h
- 
template<class Type>
 class PxVec3T
- 3 Element vector class. - This is a 3-dimensional vector class with public data members. - Public Functions - 
inline PxVec3T()
- default constructor leaves data uninitialized. 
 - 
inline explicit PxVec3T(Type a)
- Assigns scalar parameter to all elements. - Useful to initialize to zero or one. - Parameters
- a – [in] Value to assign to elements. 
 
 - 
inline PxVec3T(Type nx, Type ny, Type nz)
- Initializes from 3 scalar parameters. - Parameters
- nx – [in] Value to initialize X component. 
- ny – [in] Value to initialize Y component. 
- nz – [in] Value to initialize Z component. 
 
 
 - 
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 Type 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 PxVec3T()