Files
oak-editor/app/common/lerp.h
T

10 lines
137 B
C++

#ifndef LERP_H
#define LERP_H
template<typename T>
T lerp(T a, T b, double t) {
return (a * (1.0 - t)) + (b * t);
}
#endif // LERP_H