Skip to content

Function linear

function linear(M, T, T) math

template <typename T, typename M>
KFR_FUNCTION T linear(M mu, T x1, T x2)

Linear interpolation.

Template parameters
T sample (value) type, also the return type.
M interpolation-parameter type.
Parameters
mu interpolation parameter; values outside [0, 1] extrapolate.
x1 value at mu == 0.
x2 value at mu == 1.
Returns
the linearly interpolated value between x1 and x2.

Fully qualified name: kfr::linear(M, T, T)

This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.