Al's Programming Resource Homepage  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, float sy = 0, float sz = 0);
00010           ~VECTOR();
00011 
00012         void Set();
00013           void Set(float sx, float sy, float sz) {x = sx, y = sy, z = sz;}
00014                 float MagnitudeVector();
00015                 VECTOR NormaliseVector();
00016                 VECTOR CrossProduct(VECTOR vect);
00017                 float DotProduct(VECTOR vect);
00018 
00019           float x;
00020             float y;
00021             float z;
00022 };
00023 
00024 #endif
00025 

Generated on Fri Dec 23 05:19:34 2005 for OpenGL MDI 2 by doxygen1.2.15