Vector Class Reference

#include <Vector.h>

List of all members.


Detailed Description

Definition at line 25 of file Vector.h.

Public Member Functions

 Vector (void)
 simple constructor
 Vector (float iX, float iY, float iZ)
 constructor
float Magnitude (void)
 calculate magnitude
void Normalize (void)
 normalize
void Reverse (void)
 reverse
Vectoroperator+= (Vector u)
 addition operator
Vectoroperator-= (Vector u)
 subtraction operator
Vectoroperator *= (float s)
 multiplication operator
Vectoroperator/= (float s)
 division operator
Vector operator- (void)
 conjugate operator (negative of each vector component)

Public Attributes

float x
float y
float z


Constructor & Destructor Documentation

Vector::Vector ( void   )  [inline]

Definition at line 48 of file Vector.h.

References x, y, and z.

Referenced by operator-().

Here is the caller graph for this function:

Vector::Vector ( float  iX,
float  iY,
float  iZ 
) [inline]

Definition at line 56 of file Vector.h.

References x, y, and z.


Member Function Documentation

float Vector::Magnitude ( void   )  [inline]

Definition at line 64 of file Vector.h.

References x, y, and z.

Referenced by DamageRadius(), DrawGLScene(), and UpdateBody().

Here is the caller graph for this function:

void Vector::Normalize ( void   )  [inline]

Definition at line 70 of file Vector.h.

References NORMALIZE_TOLERANCE, x, y, and z.

Referenced by GameLogicFire().

Here is the caller graph for this function:

void Vector::Reverse ( void   )  [inline]

Definition at line 85 of file Vector.h.

References x, y, and z.

Referenced by DrawGLScene().

Here is the caller graph for this function:

Vector & Vector::operator+= ( Vector  u  )  [inline]

Definition at line 93 of file Vector.h.

References x, y, and z.

Vector & Vector::operator-= ( Vector  u  )  [inline]

Definition at line 102 of file Vector.h.

References x, y, and z.

Vector & Vector::operator *= ( float  s  )  [inline]

Definition at line 111 of file Vector.h.

References x, y, and z.

Vector & Vector::operator/= ( float  s  )  [inline]

Definition at line 120 of file Vector.h.

References x, y, and z.

Vector Vector::operator- ( void   )  [inline]

Definition at line 129 of file Vector.h.

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

Here is the call graph for this function:


Member Data Documentation

float Vector::x

Definition at line 28 of file Vector.h.

Referenced by DoCollisions(), TileAnim::Draw(), CObject::Draw(), Shockwave::Draw(), MiniShock::Draw(), DrawGLScene(), GameLogicFire(), InitGame(), CWorld::LoadLevel(), Magnitude(), MiniShock::MiniShock(), Normalize(), operator *(), operator *=(), operator+(), operator+=(), operator-(), operator-(), operator-=(), operator/(), operator/=(), operator^(), PhysicsReflect(), PhysicsStop(), PlayGame(), ProcessTileCollisions(), PSystem::PSystem(), RemoveDeadObjects(), Reverse(), Shockwave::Shockwave(), TileAnim::TileAnim(), TileStorm::TileStorm(), TripleScalarProduct(), UpdateBody(), Vector(), and VRotate2D().

float Vector::y

Definition at line 29 of file Vector.h.

Referenced by DoCollisions(), TileAnim::Draw(), CObject::Draw(), Shockwave::Draw(), MiniShock::Draw(), DrawGLScene(), GameLogicFire(), InitGame(), CWorld::LoadLevel(), Magnitude(), Normalize(), operator *(), operator *=(), operator+(), operator+=(), operator-(), operator-(), operator-=(), operator/(), operator/=(), operator^(), PhysicsReflect(), PhysicsStop(), PlayGame(), ProcessTileCollisions(), PSystem::PSystem(), RemoveDeadObjects(), Reverse(), TileAnim::TileAnim(), TileStorm::TileStorm(), TripleScalarProduct(), UpdateBody(), Vector(), and VRotate2D().

float Vector::z

Definition at line 30 of file Vector.h.

Referenced by GameLogicFire(), Magnitude(), Normalize(), operator *(), operator *=(), operator+(), operator+=(), operator-(), operator-(), operator-=(), operator/(), operator/=(), operator^(), PlayGame(), PSystem::PSystem(), RemoveDeadObjects(), Reverse(), TileAnim::TileAnim(), TileStorm::TileStorm(), TripleScalarProduct(), UpdateBody(), and Vector().

 

Copyright Windsor Schmidt 2006 - All rights reserved.