4 Element vector class. More...
#include <PxVec4.h>
Public Attributes | |
PxReal | x |
PxReal | y |
PxReal | z |
PxReal | w |
4 Element vector class.
This is a 4-dimensional vector class with public data members.
|
inline |
default constructor leaves data uninitialized.
|
inline |
zero constructor.
References PX_UNUSED().
|
inlineexplicit |
Assigns scalar parameter to all elements.
Useful to initialize to zero or one.
[in] | a | Value to assign to elements. |
Initializes from 3 scalar parameters.
[in] | nx | Value to initialize X component. |
[in] | ny | Value to initialize Y component. |
[in] | nz | Value to initialize Z component. |
[in] | nw | Value to initialize W component. |
|
inline |
Initializes from 3 scalar parameters.
[in] | v | Value to initialize the X, Y, and Z components. |
[in] | nw | Value to initialize W component. |
|
inlineexplicit |
Initializes from an array of scalar parameters.
[in] | v | Value to initialize with. |
|
inline |
Copy ctor.
|
inline |
|
inline |
return a unit vector
References PxRecipSqrt().
|
inline |
|
inline |
returns true if all 3 elems of the vector are finite (not NAN or INF, etc.)
References PxIsFinite().
|
inline |
is normalized - used by API parameter validation
References PxAbs().
|
inline |
tests for exact zero vector
|
inline |
returns the magnitude
References PxSqrt().
|
inline |
returns the squared magnitude
Avoids calling PxSqrt()!
|
inline |
|
inline |
|
inline |
|
inline |
normalizes the vector in place
|
inline |
|
inline |
scalar post-multiplication
|
inline |
scalar multiplication
|
inline |
|
inline |
|
inline |
negation
|
inline |
|
inline |
|
inline |
scalar division
|
inline |
scalar division
|
inline |
|
inline |
|
inline |
element access
References PX_ASSERT.
|
inline |
element access
References PX_ASSERT.
|
inline |
element access
References PX_ASSERT.
|
inline |
element access
References PX_ASSERT.
|
inline |
set vector elements to zero
PxReal PxVec4::w |
Referenced by dot(), maximum(), minimum(), multiply(), operator!=(), operator*(), operator+(), operator+=(), operator-(), operator-=(), operator=(), operator==(), PxMat44::scale(), and PxMat44::transform().
PxReal PxVec4::x |
PxReal PxVec4::y |
PxReal PxVec4::z |