musicplayer: organic overshoot transition anim

This commit is contained in:
minjaesong
2023-12-25 13:53:39 +09:00
parent 1addc46f18
commit 60bc9d54fd
3 changed files with 32 additions and 8 deletions

View File

@@ -166,6 +166,10 @@ final public class FastMath {
return ((1f - scale) * startValue) + (scale * endValue);
}
public static float interpolateLinearNoClamp(float scale, float startValue, float endValue) {
return ((1f - scale) * startValue) + (scale * endValue);
}
public static double interpolateLinear(double scale, double startValue, double endValue) {
if (startValue == endValue) {
return startValue;