V-ART
|
Smooth (sine function) interpolator with range. More...
#include <rangesineinterpolator.h>
Public Member Functions | |
RangeSineInterpolator () | |
void | SetMinimunLimit (float minLim) |
void | SetMaximunLimit (float maxLimit) |
virtual float | GetValue (float linearIndex, float initialPos, float range) const |
Evaluates a goal position for DOF interpolation. More... | |
Public Member Functions inherited from VART::SineInterpolator | |
SineInterpolator () | |
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 with range.
This is a smooth (following sine function) interpolator with period of 2 units, with a range that defines the amplitute. The values of the range must be among 0 and 1.
Definition at line 16 of file rangesineinterpolator.h.
VART::RangeSineInterpolator::RangeSineInterpolator | ( | ) |
Definition at line 15 of file rangesineinterpolator.cpp.
|
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. |
Reimplemented from VART::SineInterpolator.
Definition at line 37 of file rangesineinterpolator.cpp.
void VART::RangeSineInterpolator::SetMaximunLimit | ( | float | maxLimit | ) |
Definition at line 26 of file rangesineinterpolator.cpp.
void VART::RangeSineInterpolator::SetMinimunLimit | ( | float | minLim | ) |
Definition at line 21 of file rangesineinterpolator.cpp.