5 #ifndef VART_HERMITEINTERPOLATOR_H
6 #define VART_HERMITEINTERPOLATOR_H
23 virtual float GetValue(
float linearIndex,
float initialPos,
float range)
const
25 virtual float GetValue(
float linearIndex)
const;
41 static float Interpolate(
float p1,
float tg1,
float p2,
float tg2,
float t);
static float Interpolate(float p1, float tg1, float p2, float tg2, float t)
Hermite 1D interpolation.
virtual TypeID GetID() const
void AddControlPosition(float pos, float time)
Adds a control position for interpolation.
virtual float GetValue(float linearIndex, float initialPos, float range) const
Evaluates a goal position for DOF interpolation.
std::vector< float > timeVec
A vector of times for each position.
Interpolator representation.
HermiteInterpolator(float finalTime, float finalPosition)
int WarpIndex(int i) const
Warp index around valid vector indices.
void SetInitialPosition(float p)
Sets initial position for interpolation.
Hermite Spline interpolation.
Header file for V-ART class "Interpolator".
std::vector< float > positionVec
A vector of positions to interpolate.