VECTOR Class Reference

#include <Vector.h>

List of all members.

Public Member Functions

 VECTOR (GLfloat sx=0, GLfloat sy=0, GLfloat sz=0)
 ~VECTOR ()
GLfloat GetMagnitude ()
GLvoid Normalize ()
GLvoid Reset ()
GLvoid Set (GLfloat sx, GLfloat sy, GLfloat sz)
GLvoid CrossVector (VECTOR vect)
GLfloat DotProduct (VECTOR vect)
const bool nearlyEquals (const VECTOR &v, const SCALAR e) const
const VECTOR cross (const VECTOR &v) const
const SCALAR dot (const VECTOR &v) const
const SCALAR length () const
const VECTOR unit () const
void normalize ()
SCALARoperator[] (const long i)
const bool operator== (const VECTOR &v) const
const bool operator!= (const VECTOR &v) const
const VECTOR operator- () const
const VECTORoperator= (const VECTOR &v)
const VECTORoperator+= (const VECTOR &v)
const VECTORoperator-= (const VECTOR &v)
const VECTORoperator *= (const SCALAR &s)
const VECTORoperator/= (const SCALAR &s)
const VECTOR operator+ (const VECTOR &v) const
const VECTOR operator- (const VECTOR &v) const
const VECTOR operator * (const SCALAR &s) const
const VECTOR operator/ (SCALAR s) const

Public Attributes

GLfloat x
GLfloat y
GLfloat z

Friends

const VECTOR operator * (const SCALAR &s, const VECTOR &v)


Constructor & Destructor Documentation

VECTOR::VECTOR GLfloat  sx = 0,
GLfloat  sy = 0,
GLfloat  sz = 0
 

VECTOR::~VECTOR  ) 
 


Member Function Documentation

const VECTOR VECTOR::cross const VECTOR v  )  const [inline]
 

GLvoid VECTOR::CrossVector VECTOR  vect  ) 
 

const SCALAR VECTOR::dot const VECTOR v  )  const [inline]
 

GLfloat VECTOR::DotProduct VECTOR  vect  ) 
 

GLfloat VECTOR::GetMagnitude  ) 
 

const SCALAR VECTOR::length  )  const [inline]
 

const bool VECTOR::nearlyEquals const VECTOR v,
const SCALAR  e
const [inline]
 

void VECTOR::normalize  )  [inline]
 

GLvoid VECTOR::Normalize  ) 
 

const VECTOR VECTOR::operator * const SCALAR s  )  const [inline]
 

const VECTOR& VECTOR::operator *= const SCALAR s  )  [inline]
 

const bool VECTOR::operator!= const VECTOR v  )  const [inline]
 

const VECTOR VECTOR::operator+ const VECTOR v  )  const [inline]
 

const VECTOR& VECTOR::operator+= const VECTOR v  )  [inline]
 

const VECTOR VECTOR::operator- const VECTOR v  )  const [inline]
 

const VECTOR VECTOR::operator-  )  const [inline]
 

const VECTOR& VECTOR::operator-= const VECTOR v  )  [inline]
 

const VECTOR VECTOR::operator/ SCALAR  s  )  const [inline]
 

const VECTOR& VECTOR::operator/= const SCALAR s  )  [inline]
 

const VECTOR& VECTOR::operator= const VECTOR v  )  [inline]
 

const bool VECTOR::operator== const VECTOR v  )  const [inline]
 

SCALAR& VECTOR::operator[] const long  i  )  [inline]
 

GLvoid VECTOR::Reset  ) 
 

GLvoid VECTOR::Set GLfloat  sx,
GLfloat  sy,
GLfloat  sz
[inline]
 

const VECTOR VECTOR::unit  )  const [inline]
 


Friends And Related Function Documentation

const VECTOR operator * const SCALAR s,
const VECTOR v
[friend]
 


Member Data Documentation

GLfloat VECTOR::x
 

GLfloat VECTOR::y
 

GLfloat VECTOR::z
 


The documentation for this class was generated from the following files:
Generated on Sun Jan 22 16:23:52 2006 for Inside Time by  doxygen 1.4.5