UnityEditor.MathUtils.Ease C# (CSharp) Method

Ease() public static method

public static Ease ( float t, float k1, float k2 ) : float
t float
k1 float
k2 float
return float
        public static float Ease(float t, float k1, float k2)
        {
            float num2;
            float num = ((((k1 * 2f) / 3.141593f) + k2) - k1) + (((1f - k2) * 2f) / 3.141593f);
            if (t < k1)
            {
                num2 = (k1 * 0.6366197f) * (Mathf.Sin((((t / k1) * 3.141593f) / 2f) - 1.570796f) + 1f);
            }
            else if (t < k2)
            {
                num2 = (((2f * k1) / 3.141593f) + t) - k1;
            }
            else
            {
                num2 = ((((2f * k1) / 3.141593f) + k2) - k1) + (((1f - k2) * 0.6366197f) * Mathf.Sin((((t - k2) / (1f - k2)) * 3.141593f) / 2f));
            }
            return (num2 / num);
        }