Microsoft.Xna.Framework.TweenEase.GetValue C# (CSharp) Method

GetValue() public method

public GetValue ( float a, float b, float t ) : float
a float
b float
t float
return float
        public float GetValue(float a, float b, float t)
        {
            if(t > 0.5) {
                t = 1 - t;
                t *= 2 * t;
                t = 1 - t;
            }
            else {
                t = 2 * t;
            }
            return t * b + (1 - t) * a;
        }
TweenEase