Skip to content

Function cosine

function cosine(M, T, T) math

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

Cosine interpolation.

Template parameters
T sample (value) type, also the return type.
M interpolation-parameter type.
Parameters
mu interpolation parameter in the range [0, 1].
x1 value at mu == 0.
x2 value at mu == 1.
Returns
the cosine-interpolated value between x1 and x2.

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

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