Skip to content

Function catmullrom

function catmullrom(M, T, T, T, T) math

template <typename T, typename M>
KFR_FUNCTION T catmullrom(M mu, T x0, T x1, T x2, T x3)

Catmull-Rom spline interpolation.

Template parameters
T sample (value) type, also the return type.
M interpolation-parameter type.
Parameters
mu interpolation parameter in the range [0, 1].
x0 control point preceding x1.
x1 value at mu == 0.
x2 value at mu == 1.
x3 control point following x2.
Returns
the Catmull-Rom-interpolated value at mu.

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

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