V-ART
|
Interpolator representation. More...
#include <interpolator.h>
Public Types | |
enum | TypeID { LINEAR, EASE_IN_EASE_OUT, RANGED, HERMITE } |
Public Member Functions | |
Interpolator () | |
virtual | ~Interpolator () |
virtual float | GetValue (float linearIndex, float initialPos, float range) const =0 |
Evaluates a goal position for DOF interpolation. More... | |
virtual TypeID | GetID () const =0 |
Interpolator representation.
A interpolator is a function whose domain is [0..1] and range is [0..1]. It is used to describe how a DOF (see Dof) should be changed in time inside an animation (see Action).
Definition at line 17 of file interpolator.h.
Enumerator | |
---|---|
LINEAR | |
EASE_IN_EASE_OUT | |
RANGED | |
HERMITE |
Definition at line 20 of file interpolator.h.
|
inline |
Definition at line 22 of file interpolator.h.
|
inlinevirtual |
Definition at line 23 of file interpolator.h.
|
pure virtual |
Implemented in VART::HermiteInterpolator, VART::SineInterpolator, and VART::LinearInterpolator.
|
pure virtual |
Evaluates a goal position for DOF interpolation.
linearIndex | [in] A number in range [0..1]. Usually related to a linear time function. |
initialPos | [in] A number in range [0..1]. DOF's initial movement position. |
range | [in] DOF's position range on movement. |
Implemented in VART::NaturalInterpolator, VART::HermiteInterpolator, VART::RangeSineInterpolator, VART::SineInterpolator, and VART::LinearInterpolator.