add lerp macro

This commit is contained in:
James Fulop
2016-09-17 19:01:43 -04:00
committed by baldurk
parent ef185bca34
commit dd55043527
+6
View File
@@ -121,6 +121,12 @@ T RDCMAX(const T &a, const T &b)
return a > b ? a : b;
}
template <typename T>
T RDCLERP(const T &a, const T &b, const T &step)
{
return (1.0f - step) * a + step * b;
}
template <typename T>
inline T AlignUp4(T x)
{