f-curve easing: make ease-out symmetrical to ease-in

This commit is contained in:
Campbell Barton 2014-04-29 03:20:11 +10:00
parent 3d9b4159a4
commit b5feb1940d
1 changed files with 2 additions and 1 deletions

View File

@ -182,7 +182,8 @@ float BLI_easing_elastic_ease_out(float time, float begin, float change, float d
else
s = period / (2 * (float)M_PI) * asinf(change / amplitude);
return (amplitude * powf(2, -10 * time) * sinf((time * duration - s) * (2 * (float)M_PI) / period) + change + begin);
time = -time;
return (amplitude * powf(2, 10 * time) * sinf((time * duration - s) * (2 * (float)M_PI) / period) + change + begin);
}
float BLI_easing_elastic_ease_in_out(float time, float begin, float change, float duration, float amplitude, float period)