public static float easeExpoInOut(float t) { if (t == 0f) { return(0f); } if (t == 1f) { return(1f); } t *= 2f; if (t < 1f) { return(0.5f * MathExOps.Pow(2f, 10f * (t - 1f))); } return(1f - 0.5f * MathExOps.Pow(2f, -10f * (t - 1f))); }
public static float easeExpoOut(float t) { return(t == 1f ? 1f : 1f - MathExOps.Pow(2f, -10f * t)); }
public static float easeExpoIn(float t) { return(t == 0f ? 0f : MathExOps.Pow(2f, 10f * (t - 1f))); }