You.i Engine
CYITimeInterpolator Class Referenceabstract

Detailed Description

Container for basic interpolator functions.

An interpolator allows for remapping a linear 0.0 to 1.0 range onto a different (possibly transformed) range. The typical use of this class is to provide a set of equally spaced values (e.g. 0.0, 0.2, 0.4, 0.6, 0.8 and 1.0) and getting a different set of values, possibly spaced differently (e.g. 0.0, 0.1, 0.2, 0.4, 0.8 and 1.0) or even transformed (e.g. 1.0, 0.8, 0.6, 0.4, 0.2 and 0.0).

See also

#include <animation/YiTimeInterpolator.h>

Inheritance diagram for CYITimeInterpolator:

Public Member Functions

virtual ~CYITimeInterpolator ()
virtual float Interpolate (float timePercentage)=0
virtual void Reset ()

Constructor & Destructor Documentation

◆ ~CYITimeInterpolator()

virtual CYITimeInterpolator::~CYITimeInterpolator ( )

Member Function Documentation

◆ Interpolate()

virtual float CYITimeInterpolator::Interpolate ( float  timePercentage)
pure virtual

◆ Reset()

virtual void CYITimeInterpolator::Reset ( )

Resets the state of this interpolator. The interpolator will act as if it has newly been constructed.

Reimplemented in CYIInterpolatePath.

The documentation for this class was generated from the following file: