00001 00002 #ifndef __VECT2_HPP__ 00003 #define __VECT2_HPP__ 00004 00006 00007 class vect2 00008 { 00009 public: 00011 short x; 00013 short y; 00014 00015 public: 00017 vect2(void) : x(), y() {} 00018 00020 vect2(short x, short y) : x(x), y(y) {} 00021 00023 vect2(const vect2& v) : x(v.x), y(v.y) {} 00024 00026 ~vect2(void) {} 00027 00029 const vect2& operator=(const vect2& v) { x = v.x; y = v.y; return *this; } 00030 }; 00031 00032 #endif // __VECT2_HPP__