Добавил:
korayakov
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз:
Предмет:
Файл:Лабы / С++Builder / Laba3 / Task1 / Ball
.h//---------------------------------------------------------------------------
#ifndef BallH
#define BallH
//---------------------------------------------------------------------------
#endif
#include "math.h"
class CSupport
{
private:
double angle;
int x1,y1, x2,y2,
xc,yc,len2, len1;
TImage* Img;
double AngleToRad() {return (angle*M_PI) / 180.0;};
public:
void Rotate(double dA);
void Hide();
int Naklon(){return 2*(angle>0)-1;}
int ComputeBallY(int x);
CSupport (TImage* _Img);
};