2 Element vector class. More...
#include <PxVec2.h>
Public Attributes | |
PxReal | x |
PxReal | y |
2 Element vector class.
This is a 2-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 2 scalar parameters.
[in] | nx | Value to initialize X component. |
[in] | ny | Value to initialize Y component. |
|
inline |
Copy ctor.
|
inline |
|
inline |
return a unit vector
References PxRecipSqrt().
|
inline |
returns true if all 2 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 |
returns MAX(x, y);
References PxMax().
|
inline |
|
inline |
returns MIN(x, y);
References PxMin().
|
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.
PxReal PxVec2::x |
Referenced by dot(), maximum(), minimum(), multiply(), operator!=(), operator*(), operator+(), operator+=(), operator-(), operator-=(), operator=(), and operator==().
PxReal PxVec2::y |
Referenced by dot(), maximum(), minimum(), multiply(), operator!=(), operator*(), operator+(), operator+=(), operator-(), operator-=(), operator=(), and operator==().