Function interpolate

Synopsis

#include <Source/Falcor/Utils/Math/CubicSpline.h>

T interpolate(uint32_t section, float point) const

Description

No description yet.

Source

Lines 139-144 in Source/Falcor/Utils/Math/CubicSpline.h.

T interpolate(uint32_t section, float point) const
{
    const CubicCoeff& coeff = mCoefficient[section];
    T result = (((coeff.d * point) + coeff.c) * point + coeff.b) * point + coeff.a;
    return result;
}





Add Discussion as Guest

Log in to DocsForge