Files
oak-editor/io/math.cpp
T
2018-11-12 18:44:10 +11:00

10 lines
195 B
C++

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