vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
gmVector4 Class Reference

#include <gm_vec4.h>

Public Member Functions

 gmVector4 ()
 
 gmVector4 (const gmVector4 &)
 
 gmVector4 (double, double, double, double)
 
double & operator[] (int)
 
const double & operator[] (int) const
 
gmVector4assign (double, double, double, double)
 
gmVector4operator= (const gmVector4 &)
 
gmVector4operator+= (const gmVector4 &)
 
gmVector4operator-= (const gmVector4 &)
 
gmVector4operator*= (double)
 
gmVector4operator/= (double)
 
gmVector4 operator+ (const gmVector4 &) const
 
gmVector4 operator- (const gmVector4 &) const
 
gmVector4 operator- () const
 
gmVector4 operator* (double) const
 
gmVector4 operator/ (double) const
 
bool operator== (const gmVector4 &) const
 
bool operator!= (const gmVector4 &) const
 
gmVector4clamp (double, double)
 
double length () const
 
double lengthSquared () const
 
gmVector4normalize ()
 
void copyTo (float[4]) const
 
void copyTo (double[4]) const
 

Protected Attributes

double v_ [4]
 

Friends

gmVector4 operator* (double, const gmVector4 &)
 
double distance (const gmVector4 &, const gmVector4 &)
 
double distanceSquared (const gmVector4 &, const gmVector4 &)
 
double dot (const gmVector4 &, const gmVector4 &)
 
gmVector4 lerp (double, const gmVector4 &, const gmVector4 &)
 
ostream & operator<< (ostream &, const gmVector4 &)
 

Constructor & Destructor Documentation

gmVector4::gmVector4 ( )
inline
gmVector4::gmVector4 ( const gmVector4 v)
inline
gmVector4::gmVector4 ( double  x,
double  y,
double  z,
double  a 
)
inline

Member Function Documentation

gmVector4 & gmVector4::assign ( double  x,
double  y,
double  z,
double  a 
)
inline
gmVector4 & gmVector4::clamp ( double  lo,
double  hi 
)
inline
void gmVector4::copyTo ( float  f[4]) const
inline
void gmVector4::copyTo ( double  f[4]) const
inline
double gmVector4::length ( ) const
inline
double gmVector4::lengthSquared ( ) const
inline
gmVector4 & gmVector4::normalize ( )
inline
bool gmVector4::operator!= ( const gmVector4 v) const
inline
gmVector4 gmVector4::operator* ( double  c) const
inline
gmVector4 & gmVector4::operator*= ( double  c)
inline
gmVector4 gmVector4::operator+ ( const gmVector4 v) const
inline
gmVector4 & gmVector4::operator+= ( const gmVector4 v)
inline
gmVector4 gmVector4::operator- ( const gmVector4 v) const
inline
gmVector4 gmVector4::operator- ( ) const
inline
gmVector4 & gmVector4::operator-= ( const gmVector4 v)
inline
gmVector4 gmVector4::operator/ ( double  c) const
inline
gmVector4 & gmVector4::operator/= ( double  c)
inline
gmVector4 & gmVector4::operator= ( const gmVector4 v)
inline
bool gmVector4::operator== ( const gmVector4 v) const
inline
double & gmVector4::operator[] ( int  i)
inline
const double & gmVector4::operator[] ( int  i) const
inline

Friends And Related Function Documentation

double distance ( const gmVector4 v1,
const gmVector4 v2 
)
friend
double distanceSquared ( const gmVector4 v1,
const gmVector4 v2 
)
friend
double dot ( const gmVector4 v1,
const gmVector4 v2 
)
friend
gmVector4 lerp ( double  f,
const gmVector4 v1,
const gmVector4 v2 
)
friend
gmVector4 operator* ( double  c,
const gmVector4 v 
)
friend
ostream& operator<< ( ostream &  os,
const gmVector4 v 
)
friend

Member Data Documentation

double gmVector4::v_[4]
protected

The documentation for this class was generated from the following file: