2024-01-27 05:46:13 +11:00
|
|
|
#include <math.h>
|
|
|
|
|
2024-05-07 04:28:19 +10:00
|
|
|
#include "sway/fx_util/animation_utils.h"
|
2024-01-27 05:46:13 +11:00
|
|
|
|
|
|
|
double lerp (double a, double b, double t) {
|
|
|
|
return a * (1.0 - t) + b * t;
|
|
|
|
}
|
|
|
|
|
|
|
|
double ease_out_cubic (double t) {
|
|
|
|
double p = t - 1;
|
|
|
|
return pow(p, 3) + 1;
|
|
|
|
}
|