V-ART
|
Linear interpolation. More...
#include <linearinterpolator.h>
Public Member Functions | |
LinearInterpolator () | |
virtual float | GetValue (float linearIndex, float initialPos, float range) const |
Evaluates a goal position for DOF interpolation. More... | |
virtual TypeID | GetID () const |
Public Member Functions inherited from VART::Interpolator | |
Interpolator () | |
virtual | ~Interpolator () |
Additional Inherited Members | |
Public Types inherited from VART::Interpolator | |
enum | TypeID { LINEAR, EASE_IN_EASE_OUT, RANGED, HERMITE } |
Linear interpolation.
This interpolation function is linear and has period of 2 units.
Definition at line 15 of file linearinterpolator.h.
VART::LinearInterpolator::LinearInterpolator | ( | ) |
Definition at line 11 of file linearinterpolator.cpp.
|
inlinevirtual |
Implements VART::Interpolator.
Definition at line 20 of file linearinterpolator.h.
References VART::Interpolator::LINEAR.
|
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. |
Implements VART::Interpolator.
Definition at line 21 of file linearinterpolator.cpp.