|
hermite
0.0.1
|
Interpolates on the unit interval. More...
#include <hermite_unit.hpp>


Public Member Functions | |
| HermiteUnit ()=default | |
| Default constructor. More... | |
| HermiteUnit (const Vector< D > p0, const Vector< D > p1, const Vector< D > v0, const Vector< D > v1) | |
| Constructor. More... | |
| HermiteUnit (const HermiteUnit< D > &other) | |
| Copy constructor. | |
| HermiteUnit< D > & | operator= (const HermiteUnit< D > &other) |
| Assignment operator. | |
| ~HermiteUnit () 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... | |
Interpolates on the unit interval.
Calculates one Hermite spline section on the unit interval [0, 1] given a starting point and velocity at time t=0 and an ending point and velocity at t=tf.
The template represents the number of dimensions to calculate in. For example, for 2 dimensions, the position and velocity functions will output a 2D vector.
|
default |
Default constructor.
Initializing a unit Hermite interpolation curve with the default constructor creates a curve that is a constant 0.
|
inline |
Constructor.
| p0 | Initial position vector |
| p1 | Final position vector |
| v0 | Initial velocity vector |
| v1 | Final velocity vector |
|
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 >.