public static float BounceInOut(float p) { if (p < 0.5f) { return(0.5f * BounceEaseInCurve.BounceIn(p * 2)); } else { return(0.5f * BounceEaseOutCurve.BounceOut(p * 2 - 1) + 0.5f); } }
public static float BounceIn(float p) { return(1 - BounceEaseOutCurve.BounceOut(1 - p)); }