PxVec4T#
Defined in include/foundation/PxVec4.h
-
template<class Type>
class PxVec4T# 4 Element vector class.
This is a 4-dimensional vector class with public data members.
Public Functions
-
inline PxVec4T()#
default constructor leaves data uninitialized.
-
inline PxVec4T(PxZERO)#
zero constructor.
-
inline explicit PxVec4T(Type a)#
Assigns scalar parameter to all elements.
Useful to initialize to zero or one.
- Parameters:
a – [in] Value to assign to elements.
-
inline PxVec4T(Type nx, Type ny, Type nz, Type nw)#
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.
nw – [in] Value to initialize W component.
-
inline PxVec4T(const PxVec3T<Type> &v, Type nw)#
Initializes from 3 scalar parameters.
- Parameters:
v – [in] Value to initialize the X, Y, and Z components.
nw – [in] Value to initialize W component.
-
inline explicit PxVec4T(const Type v[])#
Initializes from an array of scalar parameters.
- Parameters:
v – [in] Value to initialize with.
-
inline bool operator!=(const PxVec4T &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 PxVec4T()#