hermite
0.0.1
|
A hermite spline on a subinterval. More...
#include <hermite_sub.hpp>
Public Member Functions | |
HermiteSub () | |
Default constructor. More... | |
HermiteSub (const Vector< D > p0, const Vector< D > pf, const Vector< D > v0, const Vector< D > vf, const double lower, const double upper) | |
Constructor. More... | |
HermiteSub (const HermiteSub< D > &other) | |
Copy constructor. | |
HermiteSub< D > & | operator= (const HermiteSub< D > &other) |
Assignment operator. | |
~HermiteSub () override=default | |
Destructor. | |
Vector< D > | getPos (const double t) const override |
Gets position at a certain time. More... | |
Vector< D > | getVel (const double t) const override |
Gets velocity at a certain time. More... | |
Vector< D > | getAcc (const double t) const override |
Gets acceleration of the function at a certain time. More... | |
Public Member Functions inherited from hermite::BaseInterpol< D > | |
virtual | ~BaseInterpol ()=default |
Destructor. | |
virtual Vector< D > | operator() (const double t) const |
Gets value of the interpolation function at a certain point. More... | |
A hermite spline on a subinterval.
Allows for two points on an arbitrary interval to be interpolated, not just at 0 and 1. It does this through an affline transformation.
|
inline |
Default constructor.
Initializes lower bound to 0 and upper bound to 1, and the function is going to be zero for all input values.
|
inline |
Constructor.
p0 | Initial position vector |
pf | Final position vector |
v0 | Initial velocity vector |
vf | Final velocity vector |
lower | Lower bound |
upper | Upper bound |
|
inlineoverridevirtual |
Gets acceleration of the function at a certain time.
t | Time |
Implements hermite::BaseInterpol< D >.
|
inlineoverridevirtual |
Gets position at a certain time.
Same as calling operator()()
t | Time |
Implements hermite::BaseInterpol< D >.
|
inlineoverridevirtual |
Gets velocity at a certain time.
t | Time |
Implements hermite::BaseInterpol< D >.