DLPoint.h

Go to the documentation of this file.
00001 #ifndef _DLPOINT_H_
00002 #define _DLPOINT_H_
00003 
00005 struct DLPointList {
00006    int x, y;
00007    struct DLPointList *next;
00008 } ;
00009 
00010 
00021 class DLPoint
00022 {
00023 
00024    public:
00025 
00029    DLPoint() { x = 0; y = 0;};
00030 
00035    DLPoint(const DLPoint & orig){*this = orig;};
00036 
00041    const DLPoint & operator=(const DLPoint & right)
00042       {
00043          this->x = right.x;
00044          this->y = right.y;
00045          return *this;
00046       };
00047 
00052    inline bool operator==(const DLPoint & right)
00053       {
00054          return (this->x == right.x && this->y == right.y);
00055       };
00056 
00060    virtual ~DLPoint() { };
00061 
00063    int x;                      
00065    int y;   
00066 
00067 
00073    DLPoint(int x1, int y1) { x = x1; y = y1;};
00074 };
00075 
00077 //struct DLPointDouble {
00078 //      double x;
00079 //      double y;
00080 //};
00081 
00082 #endif // _DLPOINT_H_

DOCLIB is being developed under contract by a collaboration between:
The Laboratory for Language and Media Processing
Unviersity of Maryland, College Park
and
Booz | Allen | Hamilton

All Rights Reserved, 2003-2007