AssemblyCSharp.Ease.BounceEaseOutIn C# (CSharp) Method

BounceEaseOutIn() public static method

Easing equation function for a bounce (exponentially decaying parabolic bounce) easing out/in: deceleration until halfway, then acceleration.
public static BounceEaseOutIn ( 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 BounceEaseOutIn(double t, double b, double c, double d)
        {
            if (t < d / 2)
            {
            return BounceEaseOut(t * 2, b, c / 2, d);
            }
            return BounceEaseIn((t * 2) - d, b + c / 2, c / 2, d);
        }