Files
oak-editor/io/math.cpp
T
2018-11-13 02:56:31 +11:00

12 lines
224 B
C++

#include "math.h"
#include <QtMath>
int lerp(int a, int b, double t) {
return qRound(((1.0 - t) * a) + (t * b));
}
double double_lerp(double a, double b, double t) {
return ((1.0 - t) * a) + (t * b);
}