pVec Class Reference

A single-precision floating point three-vector. More...

#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)

Detailed Description

A single-precision floating point three-vector.

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.


Generated on Tue Dec 30 11:28:40 2008 for ParticleAPI by  doxygen 1.5.8