public static float EaseInSine(float from, float to, float time, float duration) { return(to * (1 - TPMath.Cos(time / duration * (TPMath.PI / 2))) + from); }
public static float EaseInOutSine(float from, float to, float time, float duration) { return(to / 2 * (1 - TPMath.Cos(TPMath.PI * time / duration)) + from); }