V-ART
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
source
linearinterpolator.cpp
Go to the documentation of this file.
1
5
#include "
vart/linearinterpolator.h
"
6
#include <cmath>
7
8
//#include <iostream>
9
using namespace
std;
10
11
VART::LinearInterpolator::LinearInterpolator
()
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
}
VART::LinearInterpolator::LinearInterpolator
LinearInterpolator()
Definition:
linearinterpolator.cpp:11
VART::LinearInterpolator::GetValue
virtual float GetValue(float linearIndex, float initialPos, float range) const
Evaluates a goal position for DOF interpolation.
Definition:
linearinterpolator.cpp:21
linearinterpolator.h
Header file for V-ART class "LinearInterpolator".
Generated on Tue May 6 2014 15:09:54 for V-ART by
1.8.6