Logo Search packages:      
Sourcecode: kdenlive version File versions

template<typename T_point, typename T>
T KisCubicSpline< T_point, T >::getValue ( x ) const [inline]

Get value of precalculated spline in the point

Definition at line 188 of file kis_cubic_curve.cpp.

                          {
        T x0;
        int i = findRegion(x, x0);
        /* TODO: check for asm equivalent */
        return m_a[i] +
               m_b[i] *(x - x0) +
               0.5 * m_c[i] *(x - x0) *(x - x0) +
               (1 / 6.0)* m_d[i] *(x - x0) *(x - x0) *(x - x0);
    }

Generated by  Doxygen 1.6.0   Back to index