AssemblyCSharp.Ease.BackEaseInOut C# (CSharp) Method

BackEaseInOut() public static method

Easing equation function for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2) easing in/out: acceleration until halfway, then deceleration.
public static BackEaseInOut ( 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 BackEaseInOut(double t, double b, double c, double d)
        {
            var s = 1.70158;
            if ((t /= d / 2) < 1)
            {
            return c / 2 * (t * t * (((s *= (1.525)) + 1) * t - s)) + b;
            }
            return c / 2 * ((t -= 2) * t * (((s *= (1.525)) + 1) * t + s) + 2) + b;
        }