public static float easeInBounce(float start, float end, float value) { end -= start; float num = 1f; return(end - NgMath.easeOutBounce(0f, end, num - value) + start); }
public static float easeInOutBounce(float start, float end, float value) { end -= start; float num = 1f; if (value < num * 0.5f) { return(NgMath.easeInBounce(0f, end, value * 2f) * 0.5f + start); } return(NgMath.easeOutBounce(0f, end, value * 2f - num) * 0.5f + end * 0.5f + start); }