|
Fawkes API
Fawkes Development Version
|
Value interpolator. More...
#include <>>

Public Member Functions | |
| virtual | ~Interpolator () |
| Virtual empty descructor. | |
| virtual float | interpolate (float t_current, float t_end, float t_step, float v_start, float v_end)=0 |
| Interpolate a point at a specific time. | |
Value interpolator.
The interpolator creates intermediate points given a starting and and end point and time constraints. Times are supplied any chose time scale, it only has to be a linear time measure. Common are miliseconds or seconds.
| fawkes::Interpolator::~Interpolator | ( | ) | [virtual] |
Virtual empty descructor.
Definition at line 50 of file interpolator.cpp.
| float fawkes::Interpolator::interpolate | ( | float | t_current, |
| float | t_end, | ||
| float | t_step, | ||
| float | v_start, | ||
| float | v_end | ||
| ) | [pure virtual] |
Interpolate a point at a specific time.
| t_current | current time for which to calculate the intermediate point |
| t_end | end time/total time. The start time is always 0. |
| t_step | Time of a time slice for discrete intermediate interpolation points. Set to 1 for maximum resolution. |
| v_start | start value |
| v_end | end value |
Implemented in fawkes::LinearInterpolator, and fawkes::SinusoidalInterpolator.