Fawkes API  Fawkes Development Version
fawkes::Interpolator Class Referenceabstract

Value interpolator. More...

#include <>>

Inheritance diagram for fawkes::Interpolator:

Public Member Functions

virtual ~Interpolator ()
 Virtual empty descructor. More...
 
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. More...
 

Detailed Description

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.

Author
Tim Niemueller

Definition at line 32 of file interpolator.h.

Constructor & Destructor Documentation

◆ ~Interpolator()

fawkes::Interpolator::~Interpolator ( )
virtual

Virtual empty descructor.

Definition at line 50 of file interpolator.cpp.

Member Function Documentation

◆ interpolate()

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.

Parameters
t_currentcurrent time for which to calculate the intermediate point
t_endend time/total time. The start time is always 0.
t_stepTime of a time slice for discrete intermediate interpolation points. Set to 1 for maximum resolution.
v_startstart value
v_endend value
Returns
interpolated value at time t_current between t_start and t_end.

Implemented in fawkes::LinearInterpolator, and fawkes::SinusoidalInterpolator.


The documentation for this class was generated from the following files: