#include
List of all members.
Public Member Functions |
|
pVec (float ax, float ay, float az) | |
pVec (float a) | |
const float & | x () const |
const float & | y () const |
const float & | z () const |
float & | x () |
float & | y () |
float & | z () |
float | length () const |
float | length2 () const |
float | normalize () |
pVec | operator* (const float s) const |
pVec | operator/ (const float s) const |
pVec | operator+ (const pVec &a) const |
pVec | operator- (const pVec &a) const |
bool | operator== (const pVec &a) const |
pVec | operator- () |
pVec & | operator+= (const pVec &a) |
pVec & | operator-= (const pVec &a) |
pVec & | operator*= (const float a) |
pVec & | operator/= (const float a) |
pVec & | operator= (const pVec &a) |
Friends |
|
float | dot (const pVec &a, const pVec &b) |
pVec | Abs (const pVec &a) |
pVec | CompMult (const pVec &a, const pVec &b) |
pVec | Cross (const pVec &a, const pVec &b) |
std::ostream & | operator<< (std::ostream &os, const pVec &v) |
This class is used for packaging three floats for the application to pass into the API.
This is also the class used internally to do vector math.