00001
00002
00003
00004
00005
00006
00007 #ifndef POINTB_H
00008 #define POINTB_H
00009
00010 #ifdef __GNUG__
00011 #pragma interface
00012 #endif
00013
00014
00015 #include "misc.h"
00016 #include "gdserr.h"
00017 #include "wxmatrix.h"
00018
00019 class Point
00020 {
00021 public:
00022 Point();
00023 Point(double const,double const);
00024 Point(const Point& );
00025
00026 void Set(const double,const double);
00027 void Set(const Point &);
00028
00029 double GetX() const;
00030 double GetY() const;
00031 void SetX(double);
00032 void SetY(double);
00033 bool Equal(const Point& a_point, double Marge) const;
00034 bool Equal(const double ,const double , double) const;
00035 bool ShorterThan(const Point& a_point, double marge) const;
00036 bool ShorterThan(const double X, const double Y, double Marge) const;
00037
00038 Point &operator=(const Point &);
00039 Point &operator+(const Point &);
00040 Point &operator-(const Point &);
00041
00042 Point &operator*(int);
00043 Point &operator/(int);
00044
00045 int operator==(const Point &) const;
00046 int operator!=(const Point &) const;
00047
00048 void Transform(wxTransformMatrix* _Matrix);
00049
00050 protected:
00051 double _x;
00052 double _y;
00053
00054 };
00055
00056
00057 #endif
point.h Source File -- Thu Nov 28 21:24:56 2002 -- 28 Nov 2002 -- 1.2.18 -- -- . --