00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00018
00019
00020 #ifndef __VPROTATION_H
00021 #define __VPROTATION_H
00022
00023
00024 class VPRotation {
00025 private:
00026
00027 float positionX, positionY;
00028 float previousPositionX, previousPositionY;
00029 float angleX, angleY;
00030 public:
00031 VPRotation();
00032
00033 void vpSetPositionX (float v);
00034 void vpSetPositionY (float v);
00035 void vpSetPreviousPositionX (float v);
00036 void vpSetPreviousPositionY (float v);
00037 void vpSetAngleX (float v);
00038 void vpSetAngleY (float v);
00039
00040 float vpGetPositionX ();
00041 float vpGetPositionY ();
00042 float vpGetPreviousPositionX ();
00043 float vpGetPreviousPositionY ();
00044 float vpGetAngleX ();
00045 float vpGetAngleY ();
00046
00047 void vpSetRotation (float posX,float posY,float posAntX,
00048 float posAntY,float angleX,float angleY);
00049
00050 void vpGetRotation (float &pos_X,float &pos_Y,float &posAnt_X,
00051 float &posAnt_Y,float &angle_X,float &angle_Y);
00052 };
00053
00054 #endif // __VPROTATION_H