AssemblyCSharp.Ease.BounceEaseOut C# (CSharp) Method

BounceEaseOut() public static method

Easing equation function for a bounce (exponentially decaying parabolic bounce) easing out: decelerating from zero velocity.
public static BounceEaseOut ( double t, double b, double c, double d ) : double
t double Current time in seconds.
b double Starting value.
c double Final value.
d double Duration of animation.
return double
        public static double BounceEaseOut(double t, double b, double c, double d)
        {
            if ((t /= d) < (1 / 2.75))
            {
            return c * (7.5625 * t * t) + b;
            }
            else if (t < (2 / 2.75))
            {
            return c * (7.5625 * (t -= (1.5 / 2.75)) * t + .75) + b;
            }
            else if (t < (2.5 / 2.75))
            {
            return c * (7.5625 * (t -= (2.25 / 2.75)) * t + .9375) + b;
            }
            else
            {
            return c * (7.5625 * (t -= (2.625 / 2.75)) * t + .984375) + b;
            }
        }