#include <Vector.h>
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 | |
| Vector & | operator+= (Vector u) |
| addition operator | |
| Vector & | operator-= (Vector u) |
| subtraction operator | |
| Vector & | operator *= (float s) |
| multiplication operator | |
| Vector & | operator/= (float s) |
| division operator | |
| Vector | operator- (void) |
| conjugate operator (negative of each vector component) | |
Public Attributes | |
| float | x |
| float | y |
| float | z |
| Vector::Vector | ( | void | ) | [inline] |
| Vector::Vector | ( | float | iX, | |
| float | iY, | |||
| float | iZ | |||
| ) | [inline] |
| float Vector::Magnitude | ( | void | ) | [inline] |
Definition at line 64 of file Vector.h.
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] |
| Vector & Vector::operator *= | ( | float | s | ) | [inline] |
| Vector & Vector::operator/= | ( | float | s | ) | [inline] |
| Vector Vector::operator- | ( | void | ) | [inline] |
| 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.