Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

Vec3 Class Reference

#include <Vector.h>

List of all members.

Public Member Functions

 Vec3 ()
 Vec3 (const float xyz)
 Vec3 (const float xx, const float yy, const float zz)
virtual ~Vec3 ()
float length ()
Vec3 normalize ()
Vec3 operator+ (const Vec3 &v)
Vec3 operator- (const Vec3 &v)
Vec3 operator- ()
Vec3 operator * (const float s)
Vec3 operator * (const Vec3 &v)
Vec3 operator^ (const Vec3 &v)
Vec3 operator/ (const float s)
Vec3 operator/ (const Vec3 &v)
void operator= (const Vec3 &v)
void operator+= (const Vec3 &v)
void operator-= (const Vec3 &v)
void operator *= (const float s)
void operator *= (const Vec3 &v)
void operator/= (const float s)
void operator/= (const Vec3 &v)
bool operator> (Vec3 &v)
bool operator== (const Vec3 &v)
bool operator!= (const Vec3 &v)
float & operator[] (const int index)
 operator const float * () const
 Vec3 ()
 Vec3 (const float xyz)
 Vec3 (const float xx, const float yy, const float zz)
virtual ~Vec3 ()
float length ()
Vec3 normalize ()
Vec3 operator+ (const Vec3 &v)
Vec3 operator- (const Vec3 &v)
Vec3 operator- ()
Vec3 operator * (const float s)
Vec3 operator * (const Vec3 &v)
Vec3 operator^ (const Vec3 &v)
Vec3 operator/ (const float s)
Vec3 operator/ (const Vec3 &v)
void operator= (const Vec3 &v)
void operator+= (const Vec3 &v)
void operator-= (const Vec3 &v)
void operator *= (const float s)
void operator *= (const Vec3 &v)
void operator/= (const float s)
void operator/= (const Vec3 &v)
bool operator> (Vec3 &v)
bool operator== (const Vec3 &v)
bool operator!= (const Vec3 &v)
float & operator[] (const int index)
 operator const float * () const

Public Attributes

float x
float y
float z


Detailed Description

Definition at line 52 of file DeFacto/Math/Vector.h.


Constructor & Destructor Documentation

Vec3::Vec3  ) 
 

Vec3.cpp

Author: Petter Alstermark, petter@alstermark.com

Definition at line 16 of file DeFacto/Math/Vec3.cpp.

References x, y, and z.

Referenced by operator *(), operator+(), operator-(), and operator/().

Vec3::Vec3 const float  xyz  ) 
 

Definition at line 23 of file DeFacto/Math/Vec3.cpp.

References x, y, and z.

Vec3::Vec3 const float  xx,
const float  yy,
const float  zz
 

Definition at line 30 of file DeFacto/Math/Vec3.cpp.

References x, y, and z.

Vec3::~Vec3  )  [virtual]
 

Definition at line 39 of file DeFacto/Math/Vec3.cpp.

Vec3::Vec3  ) 
 

Vec3::Vec3 const float  xyz  ) 
 

Vec3::Vec3 const float  xx,
const float  yy,
const float  zz
 

virtual Vec3::~Vec3  )  [virtual]
 


Member Function Documentation

float Vec3::length  ) 
 

float Vec3::length  ) 
 

Definition at line 46 of file DeFacto/Math/Vec3.cpp.

References x, y, and z.

Referenced by normalize(), operator>(), Menu::setCamera(), and Join::setCamera().

Vec3 Vec3::normalize  ) 
 

Vec3 Vec3::normalize  ) 
 

Definition at line 53 of file DeFacto/Math/Vec3.cpp.

References length().

Referenced by Play::bot(), Menu::drawFrame(), Explosion::newVelocity(), Menu::setCamera(), Join::setCamera(), Play::update(), and Particle::update().

Here is the call graph for this function:

Vec3 Vec3::operator * const Vec3 v  ) 
 

Vec3 Vec3::operator * const float  s  ) 
 

Vec3 Vec3::operator * const Vec3 v  ) 
 

Definition at line 91 of file DeFacto/Math/Vec3.cpp.

References Vec3(), x, y, and z.

Here is the call graph for this function:

Vec3 Vec3::operator * const float  s  ) 
 

Definition at line 84 of file DeFacto/Math/Vec3.cpp.

References Vec3(), x, y, and z.

Here is the call graph for this function:

void Vec3::operator *= const Vec3 v  ) 
 

void Vec3::operator *= const float  s  ) 
 

void Vec3::operator *= const Vec3 v  ) 
 

Definition at line 159 of file DeFacto/Math/Vec3.cpp.

References x, y, and z.

void Vec3::operator *= const float  s  ) 
 

Definition at line 150 of file DeFacto/Math/Vec3.cpp.

References x, y, and z.

Vec3::operator const float *  )  const [inline]
 

Definition at line 80 of file LevelCreator/Math/Vector.h.

References x.

Vec3::operator const float *  )  const [inline]
 

Definition at line 80 of file DeFacto/Math/Vector.h.

References x.

bool Vec3::operator!= const Vec3 v  ) 
 

bool Vec3::operator!= const Vec3 v  ) 
 

Definition at line 200 of file DeFacto/Math/Vec3.cpp.

References x, y, and z.

Vec3 Vec3::operator+ const Vec3 v  ) 
 

Vec3 Vec3::operator+ const Vec3 v  ) 
 

Definition at line 63 of file DeFacto/Math/Vec3.cpp.

References Vec3(), x, y, and z.

Here is the call graph for this function:

void Vec3::operator+= const Vec3 v  ) 
 

void Vec3::operator+= const Vec3 v  ) 
 

Definition at line 132 of file DeFacto/Math/Vec3.cpp.

References x, y, and z.

Vec3 Vec3::operator-  ) 
 

Vec3 Vec3::operator- const Vec3 v  ) 
 

Vec3 Vec3::operator-  ) 
 

Definition at line 77 of file DeFacto/Math/Vec3.cpp.

References Vec3(), x, y, and z.

Here is the call graph for this function:

Vec3 Vec3::operator- const Vec3 v  ) 
 

Definition at line 70 of file DeFacto/Math/Vec3.cpp.

References Vec3(), x, y, and z.

Here is the call graph for this function:

void Vec3::operator-= const Vec3 v  ) 
 

void Vec3::operator-= const Vec3 v  ) 
 

Definition at line 141 of file DeFacto/Math/Vec3.cpp.

References x, y, and z.

Vec3 Vec3::operator/ const Vec3 v  ) 
 

Vec3 Vec3::operator/ const float  s  ) 
 

Vec3 Vec3::operator/ const Vec3 v  ) 
 

Definition at line 116 of file DeFacto/Math/Vec3.cpp.

References Vec3(), x, y, and z.

Here is the call graph for this function:

Vec3 Vec3::operator/ const float  s  ) 
 

Definition at line 109 of file DeFacto/Math/Vec3.cpp.

References Vec3(), x, y, and z.

Here is the call graph for this function:

void Vec3::operator/= const Vec3 v  ) 
 

void Vec3::operator/= const float  s  ) 
 

void Vec3::operator/= const Vec3 v  ) 
 

Definition at line 177 of file DeFacto/Math/Vec3.cpp.

References x, y, and z.

void Vec3::operator/= const float  s  ) 
 

Definition at line 168 of file DeFacto/Math/Vec3.cpp.

References x, y, and z.

void Vec3::operator= const Vec3 v  ) 
 

void Vec3::operator= const Vec3 v  ) 
 

Definition at line 123 of file DeFacto/Math/Vec3.cpp.

References x, y, and z.

bool Vec3::operator== const Vec3 v  ) 
 

bool Vec3::operator== const Vec3 v  ) 
 

Definition at line 193 of file DeFacto/Math/Vec3.cpp.

References x, y, and z.

bool Vec3::operator> Vec3 v  ) 
 

bool Vec3::operator> Vec3 v  ) 
 

Definition at line 186 of file DeFacto/Math/Vec3.cpp.

References length().

Here is the call graph for this function:

float& Vec3::operator[] const int  index  )  [inline]
 

Definition at line 79 of file LevelCreator/Math/Vector.h.

References x.

float& Vec3::operator[] const int  index  )  [inline]
 

Definition at line 79 of file DeFacto/Math/Vector.h.

References x.

Vec3 Vec3::operator^ const Vec3 v  ) 
 

Vec3 Vec3::operator^ const Vec3 v  ) 
 

Definition at line 98 of file DeFacto/Math/Vec3.cpp.

References x, y, and z.


Member Data Documentation

float Vec3::x
 

Definition at line 83 of file LevelCreator/Math/Vector.h.

Referenced by Play::bot(), OpenGLRenderer::changeShaderConstant3f(), ObjLevel::collission(), Play::dealExtras(), dot(), OpenGLParticleSystem::draw(), OpenGLConsole::draw(), OpenGLParticleSystem::drawAndUpdate(), Menu::drawCreate(), Play::drawFrame(), Menu::drawFrame(), Join::drawGalaxies(), Play::drawGrenades(), Menu::drawJoin(), Join::drawLevels(), Play::drawPlayer(), Play::drawProjectiles(), Menu::drawSelection(), Menu::drawSettings(), Play::drawShadow(), Camera::getPosition(), Play::handleKeys(), ObjLevel::isWall(), ObjLevel::isWater(), length(), ObjLevel::load(), Join::loadGalaxies(), Mat4::loadRotate(), Explosion::newVelocity(), operator *(), Mat4::operator *(), operator *=(), operator const float *(), operator!=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator=(), operator==(), operator[](), operator^(), Play::playerCollission(), Mat4::rotateVec(), Play::serverLoop(), Camera::setPos(), Camera::setPosition(), Camera::setPrespective(), Mat4::setTranslate(), Camera::sphereInFrustum(), Mat4::translate(), Mat4::translateVec(), Play::update(), ParticleSystem::update(), MainApp::update(), Join::update(), Granade::update(), Vec3(), and Vec4::Vec4().

float Vec3::y
 

Definition at line 83 of file LevelCreator/Math/Vector.h.

Referenced by Play::bot(), OpenGLRenderer::changeShaderConstant3f(), dot(), OpenGLParticleSystem::draw(), OpenGLConsole::draw(), OpenGLParticleSystem::drawAndUpdate(), Explosion::drawAndUpdate(), Menu::drawCreate(), Play::drawExtras(), Play::drawFrame(), Menu::drawFrame(), Join::drawGalaxies(), Play::drawGrenades(), Menu::drawJoin(), Join::drawLevels(), Play::drawPlayer(), Play::drawProjectiles(), Menu::drawSelection(), Menu::drawSettings(), Camera::getPosition(), Play::handleKeys(), length(), ObjLevel::load(), Mat4::loadRotate(), Explosion::newVelocity(), operator *(), Mat4::operator *(), operator *=(), operator!=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator=(), operator==(), operator^(), Mat4::rotateVec(), Camera::setPos(), Camera::setPosition(), Camera::setPrespective(), Mat4::setTranslate(), Camera::sphereInFrustum(), Mat4::translate(), Mat4::translateVec(), Play::update(), ParticleSystem::update(), MainApp::update(), Granade::update(), Vec3(), and Vec4::Vec4().

float Vec3::z
 

Definition at line 83 of file LevelCreator/Math/Vector.h.

Referenced by Play::bot(), OpenGLRenderer::changeShaderConstant3f(), ObjLevel::collission(), Play::dealExtras(), dot(), OpenGLParticleSystem::draw(), OpenGLConsole::draw(), OpenGLParticleSystem::drawAndUpdate(), Explosion::drawAndUpdate(), Menu::drawCreate(), Play::drawExtras(), Play::drawFrame(), Menu::drawFrame(), Join::drawGalaxies(), Play::drawGrenades(), Menu::drawJoin(), Join::drawLevels(), Play::drawPlayer(), Play::drawProjectiles(), Menu::drawSelection(), Menu::drawSettings(), Play::drawShadow(), Camera::getPosition(), Play::handleKeys(), ObjLevel::isWall(), ObjLevel::isWater(), length(), ObjLevel::load(), Join::loadGalaxies(), Mat4::loadRotate(), Explosion::newVelocity(), operator *(), Mat4::operator *(), operator *=(), operator!=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator=(), operator==(), operator^(), Play::playerCollission(), Mat4::rotateVec(), Play::serverLoop(), Camera::setPos(), Camera::setPosition(), Camera::setPrespective(), Mat4::setTranslate(), Camera::sphereInFrustum(), Mat4::translate(), Mat4::translateVec(), Play::update(), ParticleSystem::update(), MainApp::update(), Join::update(), Granade::update(), Vec3(), and Vec4::Vec4().


Generated on Sun Jun 5 15:51:11 2005 for Defacto by  doxygen 1.4.3