V-ART
|
Smooth (sine function) interpolator. More...
#include <sineinterpolator.h>
Public Member Functions | |
SineInterpolator () | |
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 } |
Smooth (sine function) interpolator.
This is a smooth (following sine function) interpolator with period of 2 units. Also known as ease-in ease-out interpolator.
Definition at line 16 of file sineinterpolator.h.
VART::SineInterpolator::SineInterpolator | ( | ) |
Definition at line 16 of file sineinterpolator.cpp.
|
inlinevirtual |
Implements VART::Interpolator.
Definition at line 21 of file sineinterpolator.h.
References VART::Interpolator::EASE_IN_EASE_OUT.
|
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.
Reimplemented in VART::NaturalInterpolator, and VART::RangeSineInterpolator.
Definition at line 26 of file sineinterpolator.cpp.
Referenced by VART::NoisyDofMover::Noise().