30 if (number >= parent->getNumberOfControlPoints() - 1 || number < 0)
34 this->parent = parent;
36 this->poseAccesStart = poseAccesFactor * number;
42 if (time < 0 || time > 1)
46 return parent->getPoseAt(poseAccesStart + poseAccesFactor * time);
SplineInterpolationSegment(int number, AbstractInterpolationPtr parent)
SplineInterpolationSegment creates a new SplineInterpolation.
int getNumberOfControlPoints()
always returns 2 as there are always 2 control points in a spline interpolation segment
PoseBasePtr getPoseAt(double time) override
getPoseAt returns the Pose defined by f(time)
This file offers overloads of toIce() and fromIce() functions for STL container types.
std::shared_ptr< AbstractInterpolation > AbstractInterpolationPtr