52 _startRect.
left -
int(
float(_startRect.
left - _destRect.
left) * _k ),
53 _startRect.
top -
int(
float(_startRect.
top - _destRect.
top) * _k ),
54 _startRect.
width -
int(
float(_startRect.
width - _destRect.
width) * _k ),
62 const float M_PI = 3.141593f;
64 float k = sin(M_PI * _current_time - M_PI / 2.0f);
65 if (k < 0) k = (-pow(-k, 0.7f) + 1) / 2;
66 else k = (pow(k, 0.7f) + 1) / 2;