Vector.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Vector
 vector class More...

Functions

Vector operator+ (Vector u, Vector v)
 vector addition
Vector operator- (Vector u, Vector v)
 vector subtraction
Vector operator^ (Vector u, Vector v)
 vector cross-product
float operator * (Vector u, Vector v)
 vector dot-product
Vector operator * (float s, Vector u)
 scalar multiplication
Vector operator * (Vector u, float s)
 scalar multiplication
Vector operator/ (Vector u, float s)
 scalar division
float TripleScalarProduct (Vector u, Vector v, Vector w)
 triple scalar product ( s = u * (v X w) )
Vector VRotate2D (float angle, Vector u)
 rotate a vector by a scalar angle

Variables

const float NORMALIZE_TOLERANCE = 0.0001f


Function Documentation

Vector operator * ( Vector  u,
float  s 
) [inline]

Definition at line 165 of file Vector.h.

References Vector::x, Vector::y, and Vector::z.

Vector operator * ( float  s,
Vector  u 
) [inline]

Definition at line 159 of file Vector.h.

References Vector::x, Vector::y, and Vector::z.

float operator * ( Vector  u,
Vector  v 
) [inline]

Definition at line 153 of file Vector.h.

References Vector::x, Vector::y, and Vector::z.

Vector operator+ ( Vector  u,
Vector  v 
) [inline]

Definition at line 135 of file Vector.h.

References Vector::x, Vector::y, and Vector::z.

Vector operator- ( Vector  u,
Vector  v 
) [inline]

Definition at line 141 of file Vector.h.

References Vector::x, Vector::y, and Vector::z.

Vector operator/ ( Vector  u,
float  s 
) [inline]

Definition at line 171 of file Vector.h.

References Vector::x, Vector::y, and Vector::z.

Vector operator^ ( Vector  u,
Vector  v 
) [inline]

Definition at line 147 of file Vector.h.

References Vector::x, Vector::y, and Vector::z.

float TripleScalarProduct ( Vector  u,
Vector  v,
Vector  w 
) [inline]

Definition at line 177 of file Vector.h.

References Vector::x, Vector::y, and Vector::z.

Vector VRotate2D ( float  angle,
Vector  u 
) [inline]

Definition at line 183 of file Vector.h.

References Vector::x, and Vector::y.

Referenced by GameLogicFire(), PlayGame(), PSystem::PSystem(), TileStorm::TileStorm(), and UpdateBody().

Here is the caller graph for this function:


Variable Documentation

const float NORMALIZE_TOLERANCE = 0.0001f

Definition at line 22 of file Vector.h.

Referenced by Vector::Normalize().

 

Copyright Windsor Schmidt 2006 - All rights reserved.