fork download
  1. float bounceEaseOut(float t,float b , float c, float d) {
  2. if ((t/=d) < (1/2.75f)) {
  3. return c*(7.5625f*t*t) + b;
  4. } else if (t < (2/2.75f)) {
  5. float postFix = t-=(1.5f/2.75f);
  6. return c*(7.5625f*(postFix)*t + .75f) + b;
  7. } else if (t < (2.5/2.75)) {
  8. float postFix = t-=(2.25f/2.75f);
  9. return c*(7.5625f*(postFix)*t + .9375f) + b;
  10. } else {
  11. float postFix = t-=(2.625f/2.75f);
  12. return c*(7.5625f*(postFix)*t + .984375f) + b;
  13. }
  14. }
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty