fawkes::Interpolator Class Reference

Value interpolator. More...

#include <utils/math/interpolation/interpolator.h>

Inheritance diagram for fawkes::Interpolator:

[legend]
List of all members.

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.

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

fawkes::Interpolator::~Interpolator (  )  [virtual]

Virtual empty descructor.

Definition at line 50 of file interpolator.cpp.


Member Function Documentation

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_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
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:
Generated on Tue Feb 22 13:31:41 2011 for Fawkes API by  doxygen 1.4.7