|
RavEngine
|
A padded version of PxVec3, to safely load its data using SIMD. More...
#include <PxVec3.h>
Public Member Functions | |
| PX_FORCE_INLINE | PxVec3Padded (const PxVec3 &p) |
| PX_FORCE_INLINE | PxVec3Padded (float f) |
| PX_CUDA_CALLABLE PX_FORCE_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]. | |
Public Member Functions inherited from physx::PxVec3 | |
| PX_CUDA_CALLABLE PX_FORCE_INLINE | PxVec3 () |
| default constructor leaves data uninitialized. | |
| PX_CUDA_CALLABLE PX_FORCE_INLINE | PxVec3 (PxZERO r) |
| zero constructor. | |
| PX_CUDA_CALLABLE PX_FORCE_INLINE | PxVec3 (float a) |
| Assigns scalar parameter to all elements. | |
| PX_CUDA_CALLABLE PX_FORCE_INLINE | PxVec3 (float nx, float ny, float nz) |
| Initializes from 3 scalar parameters. | |
| PX_CUDA_CALLABLE PX_FORCE_INLINE | PxVec3 (const PxVec3 &v) |
| Copy ctor. | |
| PX_CUDA_CALLABLE PX_FORCE_INLINE PxVec3 & | operator= (const PxVec3 &p) |
| Assignment operator. | |
| PX_CUDA_CALLABLE PX_FORCE_INLINE float & | operator[] (unsigned int index) |
| element access | |
| PX_CUDA_CALLABLE PX_FORCE_INLINE const float & | operator[] (unsigned int index) const |
| element access | |
| PX_CUDA_CALLABLE PX_FORCE_INLINE bool | operator== (const PxVec3 &v) const |
| returns true if the two vectors are exactly equal. | |
| PX_CUDA_CALLABLE PX_FORCE_INLINE bool | operator!= (const PxVec3 &v) const |
| returns true if the two vectors are not exactly equal. | |
| PX_CUDA_CALLABLE PX_FORCE_INLINE bool | isZero () const |
| tests for exact zero vector | |
| PX_CUDA_CALLABLE PX_INLINE bool | isFinite () const |
| returns true if all 3 elems of the vector are finite (not NAN or INF, etc.) | |
| PX_CUDA_CALLABLE PX_FORCE_INLINE bool | isNormalized () const |
| is normalized - used by API parameter validation | |
| PX_CUDA_CALLABLE PX_FORCE_INLINE float | magnitudeSquared () const |
| returns the squared magnitude | |
| PX_CUDA_CALLABLE PX_FORCE_INLINE float | magnitude () const |
| returns the magnitude | |
| PX_CUDA_CALLABLE PX_FORCE_INLINE PxVec3 | operator- () const |
| negation | |
| PX_CUDA_CALLABLE PX_FORCE_INLINE PxVec3 | operator+ (const PxVec3 &v) const |
| vector addition | |
| PX_CUDA_CALLABLE PX_FORCE_INLINE PxVec3 | operator- (const PxVec3 &v) const |
| vector difference | |
| PX_CUDA_CALLABLE PX_FORCE_INLINE PxVec3 | operator* (float f) const |
| scalar post-multiplication | |
| PX_CUDA_CALLABLE PX_FORCE_INLINE PxVec3 | operator/ (float f) const |
| scalar division | |
| PX_CUDA_CALLABLE PX_FORCE_INLINE PxVec3 & | operator+= (const PxVec3 &v) |
| vector addition | |
| PX_CUDA_CALLABLE PX_FORCE_INLINE PxVec3 & | operator-= (const PxVec3 &v) |
| vector difference | |
| PX_CUDA_CALLABLE PX_FORCE_INLINE PxVec3 & | operator*= (float f) |
| scalar multiplication | |
| PX_CUDA_CALLABLE PX_FORCE_INLINE PxVec3 & | operator/= (float f) |
| scalar division | |
| PX_CUDA_CALLABLE PX_FORCE_INLINE float | dot (const PxVec3 &v) const |
| returns the scalar product of this and other. | |
| PX_CUDA_CALLABLE PX_FORCE_INLINE PxVec3 | cross (const PxVec3 &v) const |
| cross product | |
| PX_CUDA_CALLABLE PX_FORCE_INLINE PxVec3 | getNormalized () const |
| PX_CUDA_CALLABLE PX_FORCE_INLINE float | normalize () |
| normalizes the vector in place | |
| PX_CUDA_CALLABLE PX_FORCE_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. | |
| PX_CUDA_CALLABLE PX_FORCE_INLINE float | normalizeFast () |
| normalizes the vector in place. Asserts if vector magnitude is under PX_NORMALIZATION_EPSILON. returns vector magnitude. | |
| PX_CUDA_CALLABLE PX_FORCE_INLINE PxVec3 | multiply (const PxVec3 &a) const |
| a[i] * b[i], for all i. | |
| PX_CUDA_CALLABLE PX_FORCE_INLINE PxVec3 | minimum (const PxVec3 &v) const |
| element-wise minimum | |
| PX_CUDA_CALLABLE PX_FORCE_INLINE float | minElement () const |
| returns MIN(x, y, z); | |
| PX_CUDA_CALLABLE PX_FORCE_INLINE PxVec3 | maximum (const PxVec3 &v) const |
| element-wise maximum | |
| PX_CUDA_CALLABLE PX_FORCE_INLINE float | maxElement () const |
| returns MAX(x, y, z); | |
| PX_CUDA_CALLABLE PX_FORCE_INLINE PxVec3 | abs () const |
| returns absolute values of components; | |
Public Attributes | |
| PxU32 | padding |
Public Attributes inherited from physx::PxVec3 | |
| float | x |
| float | y |
| float | z |
A padded version of PxVec3, to safely load its data using SIMD.