97 while (time <= timeEnd) {
99 double dist = magn(pos);
100 res = std::max(res, dist);
125 while (time <= timeEnd) {
127 double dist = magn(vel);
128 res = std::max(res, dist);
153 while (time <= timeEnd) {
155 double dist = magn(acc);
156 res = std::max(res, dist);
176 virtual double getLength(
const double timeStep)
const = 0;
Base class for interpolation functions.
Definition: base_interpol.hpp:23
Abstract base class for interpolating splines.
Definition: base_spline.hpp:20
double getMaxAcceleration(const double timeStep) const
Gets maximum magnitude of acceleration.
Definition: base_spline.hpp:148
double getMaxDistance(const double timeStep) const
Gets maximum distance from origin.
Definition: base_spline.hpp:92
virtual Vector< D > getVel(const double t) const =0
Gets derivative of the function at a certain point.
virtual Vector< D > getPos(const double t) const =0
Gets value of the interpolation function at a certain point.
double getMaxSpeed(const double timeStep) const
Gets maximum speed.
Definition: base_spline.hpp:120
virtual Vector< D > getAcc(const double t) const =0
Gets second derivative of the function at a certain point.
virtual double getLowestTime() const =0
Gets the lower bound of the domain of the piecewise spline function, which is the first time (lowest ...
virtual double getHighestTime() const =0
Gets the upper bound of the domain of the piecewise spline function, which is the last time (highest ...
virtual double getLength(const double timeStep) const =0
Gets arc length.
virtual ~BaseSpline()=default
Destructor.
A base vector representation.
Definition: simplevectors.hpp:63