3 Element vector class. More...
#include <PxVec3.h>
Public Attributes | |
PxReal | x |
PxReal | y |
PxReal | z |
3 Element vector class.
This is a 3-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. |
|
inline |
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. |
|
inline |
Copy ctor.
|
inline |
returns absolute values of components;
References PxAbs().
|
inline |
|
inline |
returns the scalar product of this and other.
Referenced by PxPlane::distance(), and PxPlane::PxPlane().
|
inline |
return a unit vector
References PxRecipSqrt().
|
inline |
returns true if all 3 elems of the vector are finite (not NAN or INF, etc.)
References PxIsFinite().
Referenced by PxBounds3::isFinite().
|
inline |
is normalized - used by API parameter validation
References PxAbs().
|
inline |
tests for exact zero vector
|
inline |
|
inline |
returns the squared magnitude
Avoids calling PxSqrt()!
|
inline |
returns MAX(x, y, z);
References PxMax().
|
inline |
element-wise maximum
References PxMax(), x, y, and z.
Referenced by PxBounds3::boundsOfPoints(), and PxBounds3::include().
|
inline |
returns MIN(x, y, z);
References PxMin().
|
inline |
element-wise minimum
References PxMin(), x, y, and z.
Referenced by PxBounds3::boundsOfPoints(), and PxBounds3::include().
|
inline |
|
inline |
normalizes the vector in place
Referenced by PxTriangle::normal().
|
inline |
normalizes the vector in place. Asserts if vector magnitude is under PX_NORMALIZATION_EPSILON. returns vector magnitude.
References PX_ASSERT, and PX_NORMALIZATION_EPSILON.
|
inline |
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.
References PX_NORMALIZATION_EPSILON.
|
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.
PxReal PxVec3::x |
Referenced by PxBounds3::basisExtent(), PxBounds3::contains(), PxMat33::createDiagonal(), PxExtendedVec3::cross(), cross(), PxExtendedVec3::dot(), dot(), PxBounds3::fattenFast(), PxBounds3::intersects(), PxBounds3::isEmpty(), PxBounds3::isInside(), PxBounds3::isValid(), maximum(), minimum(), multiply(), operator!=(), operator*(), operator+(), PxExtendedVec3::operator+=(), operator+=(), operator-(), PxExtendedVec3::operator-=(), operator-=(), operator=(), operator==(), PxQuat::PxQuat(), PxQuat::rotate(), PxQuat::rotateInv(), PxMat44::setPosition(), and PxMat33::transform().
PxReal PxVec3::y |
Referenced by PxBounds3::basisExtent(), PxBounds3::contains(), PxMat33::createDiagonal(), PxExtendedVec3::cross(), cross(), PxExtendedVec3::dot(), dot(), PxBounds3::fattenFast(), PxBounds3::intersects(), PxBounds3::isInside(), PxBounds3::isValid(), maximum(), minimum(), multiply(), operator!=(), operator*(), operator+(), PxExtendedVec3::operator+=(), operator+=(), operator-(), PxExtendedVec3::operator-=(), operator-=(), operator=(), operator==(), PxQuat::PxQuat(), PxQuat::rotate(), PxQuat::rotateInv(), PxMat44::setPosition(), and PxMat33::transform().
PxReal PxVec3::z |
Referenced by PxBounds3::basisExtent(), PxBounds3::contains(), PxMat33::createDiagonal(), PxExtendedVec3::cross(), cross(), PxExtendedVec3::dot(), dot(), PxBounds3::fattenFast(), PxBounds3::intersects(), PxMat44::inverseRT(), PxBounds3::isInside(), PxBounds3::isValid(), maximum(), minimum(), multiply(), operator!=(), operator*(), operator+(), PxExtendedVec3::operator+=(), operator+=(), operator-(), PxExtendedVec3::operator-=(), operator-=(), operator=(), operator==(), PxQuat::PxQuat(), PxQuat::rotate(), PxQuat::rotateInv(), PxMat44::setPosition(), and PxMat33::transform().