V-ART
linearinterpolator.cpp
Go to the documentation of this file.
1 
6 #include <cmath>
7 
8 //#include <iostream>
9 using namespace std;
10 
12 {
13 }
14 
15 //~ float VART::LinearInterpolator::GetValue(float n) const
16 //~ // virtual method
17 //~ {
18  //~ return fabsf(fmodf(n + 1.0f,2.0f) - 1.0f);
19 //~ }
20 
21 float VART::LinearInterpolator::GetValue(float linearIndex, float initialPos, float range) const
22 // virtual method
23 {
24  return linearIndex * range + initialPos;
25 }
virtual float GetValue(float linearIndex, float initialPos, float range) const
Evaluates a goal position for DOF interpolation.
Header file for V-ART class "LinearInterpolator".