An interpolator that maps a range onto a CYIPath.
This interpolator maps the incoming range onto a CYIPath object.
#include <animation/YiInterpolatePath.h>
Public Member Functions | |
CYIInterpolatePath () | |
CYIInterpolatePath (std::unique_ptr< CYIPath > pPath) | |
virtual | ~CYIInterpolatePath () |
void | SetPath (std::unique_ptr< CYIPath > pPath) |
virtual float | Interpolate (float timePercentage) override |
virtual void | Reset () override final |
![]() | |
virtual | ~CYITimeInterpolator () |
CYIInterpolatePath::CYIInterpolatePath | ( | ) |
CYIInterpolatePath::CYIInterpolatePath | ( | std::unique_ptr< CYIPath > | pPath | ) |
Creates an interpolator from pPath.
|
virtual |
|
overridevirtual |
Remaps the value timePercentage onto a new range and returns the remapped value. The range used to remap onto is dependent on the specific type of interpolator used.
Implements CYITimeInterpolator.
|
finaloverridevirtual |
Resets the state of this interpolator. The interpolator will act as if it has newly been constructed.
Reimplemented from CYITimeInterpolator.
void CYIInterpolatePath::SetPath | ( | std::unique_ptr< CYIPath > | pPath | ) |
Sets the path used by this interpolator.