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 00017 float x; 00018 float y; 00019 float z; 00020 }; 00021 00022 #endif 00023