V-ART
Public Member Functions | List of all members
VART::SineInterpolator Class Reference

Smooth (sine function) interpolator. More...

#include <sineinterpolator.h>

Inheritance diagram for VART::SineInterpolator:
VART::Interpolator VART::NaturalInterpolator VART::RangeSineInterpolator

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 }
 

Detailed Description

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.

Constructor & Destructor Documentation

VART::SineInterpolator::SineInterpolator ( )

Definition at line 16 of file sineinterpolator.cpp.

Member Function Documentation

virtual TypeID VART::SineInterpolator::GetID ( ) const
inlinevirtual

Implements VART::Interpolator.

Definition at line 21 of file sineinterpolator.h.

References VART::Interpolator::EASE_IN_EASE_OUT.

float VART::SineInterpolator::GetValue ( float  linearIndex,
float  initialPos,
float  range 
) const
virtual

Evaluates a goal position for DOF interpolation.

Parameters
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.
Returns
DOF's current position. An interpolator basically converts a linear interpolation (GetValue input) into other, more sophisticated interpolation (GetValue output). Each derived class implents a specific mapping.

Implements VART::Interpolator.

Reimplemented in VART::NaturalInterpolator, and VART::RangeSineInterpolator.

Definition at line 26 of file sineinterpolator.cpp.

Referenced by VART::NoisyDofMover::Noise().


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