diff -r 5685602aeb9c -r faeea3e21e82 proto/coor.hh --- a/proto/coor.hh Sun Nov 09 22:02:03 2008 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,48 +0,0 @@ -#ifndef COOR_H -#define COOR_H - -//#define TYPE double - -template -class coor { -public: - TYPE x; - TYPE y; - coor() { - x = 0; y = 0; - } - coor(TYPE X, TYPE Y) { - x = X; - y = Y; - } - coor(const coor& c) { - x = c.x; - y = c.y; - } - void operator = (const coor& c) { - x = c.x; - y = c.y; - } - coor operator + (const coor& c) { - return coor(x+c.x, y+c.y); - } - coor operator - (const coor& c) { - return coor(x-c.x, y-c.y); - } - void operator += (const coor& c) { - x += c.x; - y += c.y; - } - - coor operator * (const double d) { - return coor(x*d, y*d); - } - -}; - -template -bool operator== (const coor& c1, const coor& c2) { - return ((c1.x == c2.x) && (c1.y == c2.y)); -} - -#endif