Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

vector.h

Go to the documentation of this file.
00001 // Vector Class    by Alan Baylis 2001
00002 
00003 #ifndef VectorH
00004 #define VectorH
00005 
00006 class VECTOR
00007 {
00008     public:
00009         VECTOR(float sx = 0.0, float sy = 0.0, float sz = 0.0);
00010         ~VECTOR();
00011 
00012         void Reset();
00013         void Set(float sx, float sy, float sz) {x = sx, y = sy, z = sz;}
00014         void CrossVector(VECTOR vect);
00015         float DotProduct(VECTOR vect);
00016         float GetMagnitude();
00017         void Normalize();
00018 
00019         float x;
00020         float y;
00021         float z;
00022 };
00023 
00024 #endif
00025 

Generated on Fri Dec 23 05:20:18 2005 for Portals by doxygen1.2.15