public static float EaseInOutCirc(float from, float to, float time, float duration) { time /= duration; return((time / 2) < 1 ? to / 2 * (1 - TPMath.Sqrt(1 - time * time)) + from : to / 2 * (TPMath.Sqrt(1 - (time -= 2) * time) + 1) + from); }
public static float EaseOutCirc(float from, float to, float time, float duration) { time /= duration; return(to * TPMath.Sqrt(1 - (time - 1) * time) + from); }
public static float EaseInCirc(float from, float to, float time, float duration) { time /= duration; return(to * (1 - TPMath.Sqrt(1 - time * time)) + from); }