Files
oak-editor/app/common/lerp.h
T
2019-07-17 03:05:25 -04:00

13 lines
208 B
C++

#ifndef LERP_H
#define LERP_H
template<typename T>
/**
* @brief Linearly interpolate a value between a and b using t
*/
T lerp(T a, T b, double t) {
return (a * (1.0 - t)) + (b * t);
}
#endif // LERP_H