49 : m_p0{p0}, m_p1{p1}, m_v0{v0}, m_v1{v1} {}
55 : m_p0{other.m_p0}, m_p1{other.m_p1}, m_v0{other.m_v0}, m_v1{other.m_v1} {
94 res = m_p0 *
h00(t) + m_v0 *
h10(t) + m_p1 *
h01(t) + m_v1 *
h11(t);
constexpr double h00(const double t)
First Hermite basis function.
Definition: constants.hpp:13
constexpr double h11d(const double t)
Fourth Hermite basis function first derivative.
Definition: constants.hpp:48
constexpr double h10d(const double t)
Second Hermite basis function first derivative.
Definition: constants.hpp:38
constexpr double h01dd(const double t)
Third Hermite basis function second derivative.
Definition: constants.hpp:63
constexpr double h10dd(const double t)
Second Hermite basis function second derivative.
Definition: constants.hpp:58
constexpr double h00dd(const double t)
First Hermite basis function second derivative.
Definition: constants.hpp:53
constexpr double h11(const double t)
Fourth Hermite basis function.
Definition: constants.hpp:28
constexpr double h11dd(const double t)
Fourth Hermite basis function second derivative.
Definition: constants.hpp:68
constexpr double h01(const double t)
Third Hermite basis function.
Definition: constants.hpp:23
constexpr double h10(const double t)
Second Hermite basis function.
Definition: constants.hpp:18
constexpr double h00d(const double t)
First Hermite basis function first derivative.
Definition: constants.hpp:33
constexpr double h01d(const double t)
Third Hermite basis function first derivative.
Definition: constants.hpp:43
Base class for interpolation functions.
Definition: base_interpol.hpp:23
Interpolates on the unit interval.
Definition: hermite_unit.hpp:29
~HermiteUnit() override=default
Destructor.
Vector< D > getAcc(const double t) const override
Gets acceleration of the function at a certain time.
Definition: hermite_unit.hpp:124
Vector< D > getPos(const double t) const override
Gets position at a certain time.
Definition: hermite_unit.hpp:92
HermiteUnit(const Vector< D > p0, const Vector< D > p1, const Vector< D > v0, const Vector< D > v1)
Constructor.
Definition: hermite_unit.hpp:47
Vector< D > getVel(const double t) const override
Gets velocity at a certain time.
Definition: hermite_unit.hpp:108
HermiteUnit(const HermiteUnit< D > &other)
Copy constructor.
Definition: hermite_unit.hpp:54
HermiteUnit()=default
Default constructor.
HermiteUnit< D > & operator=(const HermiteUnit< D > &other)
Assignment operator.
Definition: hermite_unit.hpp:61
A base vector representation.
Definition: simplevectors.hpp:63