ecore: M_PI / 2.0 == M_PI_2

SVN revision: 67496
This commit is contained in:
Cedric BAIL 2012-01-24 14:50:39 +00:00
parent 814d9bfb29
commit 457de1db0b
1 changed files with 2 additions and 2 deletions

View File

@ -272,11 +272,11 @@ ecore_animator_pos_map(double pos,
return pos;
case ECORE_POS_MAP_ACCELERATE:
pos = 1.0 - _pos_map_sin((M_PI / 2.0) + ((pos * M_PI) / 2.0));
pos = 1.0 - _pos_map_sin(M_PI_2 + pos * M_PI_2);
return pos;
case ECORE_POS_MAP_DECELERATE:
pos = _pos_map_sin((pos * M_PI) / 2.0);
pos = _pos_map_sin(pos * M_PI_2);
return pos;
case ECORE_POS_MAP_SINUSOIDAL: