hermite
0.0.1
|
Base class for interpolation functions. More...
#include <base_interpol.hpp>
Public Member Functions | |
virtual | ~BaseInterpol ()=default |
Destructor. | |
virtual Vector< D > | operator() (const double t) const |
Gets value of the interpolation function at a certain point. More... | |
virtual Vector< D > | getPos (const double t) const =0 |
Gets value of the interpolation function at a certain point. More... | |
virtual Vector< D > | getVel (const double t) const =0 |
Gets derivative of the function at a certain point. More... | |
virtual Vector< D > | getAcc (const double t) const =0 |
Gets second derivative of the function at a certain point. More... | |
Base class for interpolation functions.
In the class, you must specify the number of dimensions that you want to interpolate. For example, if you want to calculate a 2D position over time, then speficy "2" in the template.
|
pure virtual |
Gets second derivative of the function at a certain point.
This will usually be the acceleration.
t | Input to get value from |
Implemented in hermite::HermiteUnit< D >, hermite::HermiteSub< D >, hermite::Hermite< D >, hermite::Cubic< D >, and hermite::BaseSpline< D >.
|
pure virtual |
Gets value of the interpolation function at a certain point.
Same as calling operator()()
t | Input to get value from |
Implemented in hermite::HermiteUnit< D >, hermite::HermiteSub< D >, hermite::Hermite< D >, hermite::Cubic< D >, and hermite::BaseSpline< D >.
|
pure virtual |
Gets derivative of the function at a certain point.
This will usually be the velocity.
t | Input to get value from |
Implemented in hermite::HermiteUnit< D >, hermite::HermiteSub< D >, hermite::Hermite< D >, hermite::Cubic< D >, and hermite::BaseSpline< D >.
|
inlinevirtual |
Gets value of the interpolation function at a certain point.
Same as calling getPos()
t | Input to get value from |