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

Linear interpolation. More...

#include <linearinterpolator.h>

Inheritance diagram for VART::LinearInterpolator:
VART::Interpolator

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 }
 

Detailed Description

Linear interpolation.

This interpolation function is linear and has period of 2 units.

Definition at line 15 of file linearinterpolator.h.

Constructor & Destructor Documentation

VART::LinearInterpolator::LinearInterpolator ( )

Definition at line 11 of file linearinterpolator.cpp.

Member Function Documentation

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

Implements VART::Interpolator.

Definition at line 20 of file linearinterpolator.h.

References VART::Interpolator::LINEAR.

float VART::LinearInterpolator::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.

Definition at line 21 of file linearinterpolator.cpp.


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