1 #ifndef TIL_LINEAR_INTERPOLATION_H 2 #define TIL_LINEAR_INTERPOLATION_H 13 template <
typename T >
15 :
public Interpolator_label
37 return f1 + x*(f2-f1);
Belongs to package Box Do not include directly, include til/Box.h instead.
Linear interpolation between two values.
General macros, definitions and functions.
Defines empty classes that serves as labels.
static T compute(T f1, T f2, T x)
Returns the linear interpolated value of two numbers.