Пример #1
0
        public static float InOutPower(float t, int power)
        {
            t *= 2f;
            if ((double)t < 1.0)
            {
                return(Easy.InPower(t, power) * 0.5f);
            }
            int num = power % 2 == 0 ? -1 : 1;

            return((float)((double)num * 0.5 * ((double)Mathf.Pow(t - 2f, (float)power) + (double)(num * 2))));
        }
Пример #2
0
 public static float InCubic(float t) => Easy.InPower(t, 3);