Functions | |
template<typename T> | |
T | hermiteInterpolate (T t, T value0, T value1, T derivative0, T derivative1) |
Hermite interpolation. |
T hermiteInterpolate | ( | T | t, | |
T | value0, | |||
T | value1, | |||
T | derivative0, | |||
T | derivative1 | |||
) |
Hermite interpolation.
t | The function argument. | |
value0 | f(0) | |
value1 | f(1) | |
derivative0 | f'(0) | |
derivative1 | f'(1) |
This function implements the algorithm presented in "Geometric Tools for Computer Graphics" by Philip Schneider and David Eberly. The cubic Hermite polynomials are given below.
The cubic interpolant is
This function simply evaluates the interpolant.