1 #ifndef SIMGEAR_MATH_MATH_HXX
2 #define SIMGEAR_MATH_MATH_HXX 1
7 /** Linear interpolation between two values.
10 inline T lerp(const T& x, const T& y, double alpha)
12 return x * (1.0 - alpha) + y * alpha;
16 inline T lerp(const T& x, const T& y, float alpha)
18 return x * (1.0f - alpha) + y * alpha;