29 static forcedinline void calc (
float& a,
float b)
noexcept { a *= b * (1.0f / k); }
35 static forcedinline void calc (
float&,
float)
noexcept {}
39static float calcCoefficient (
float input,
float offset)
noexcept
49float Interpolators::LagrangeTraits::valueAtOffset (
const float* inputs,
float offset,
int index)
noexcept
53 result += calcCoefficient<0> (inputs[index], offset);
if (++index == 5) index = 0;
54 result += calcCoefficient<1> (inputs[index], offset);
if (++index == 5) index = 0;
55 result += calcCoefficient<2> (inputs[index], offset);
if (++index == 5) index = 0;
56 result += calcCoefficient<3> (inputs[index], offset);
if (++index == 5) index = 0;
57 result += calcCoefficient<4> (inputs[index], offset);