00001
00002
00003
00004
00005
00008
00009 #define _POINT_H_
00012 #include <stdio.h>
00013 #include "types.h"
00016
00017
00018
00021
00022 class Apoint
00023 {
00024 public:
00025 Apoint () { x=0; y=0; }
00026 Apoint (Apoint &r);
00027 Apoint (int x, int y);
00028
00029 void translat (int x, int y);
00030
00031 int x;
00032 int y;
00033 };
00034
00037
00038 __inline Apoint::Apoint(Apoint &r)
00039 {
00040 x=r.x;
00041 y=r.y;
00042 }
00043
00044 __inline Apoint::Apoint(int x, int y)
00045 {
00046 this->x=x;
00047 this->y=y;
00048 }
00049
00050 __inline void Apoint::translat(int x, int y)
00051 {
00052 this->x+=x;
00053 this->y+=y;
00054 }
00055
00058 #endif //_POINT_H_