36 _startRect.
left -
int(
float(_startRect.
left - _destRect.
left) * _k ),
37 _startRect.
top -
int(
float(_startRect.
top - _destRect.
top) * _k ),
38 _startRect.
width -
int(
float(_startRect.
width - _destRect.
width) * _k ),
45 const float M_PI = 3.141593f;
47 float k = sin(M_PI * _current_time - M_PI / 2.0f);
48 if (k < 0) k = (-pow(-k, 0.7f) + 1) / 2;
49 else k = (pow(k, 0.7f) + 1) / 2;