Spinning Topp Logo BlackTopp Studios
inc
Public Types | Static Public Member Functions | List of all members
Mezzanine::SlowSplineInterpolator< T > Class Template Reference

If something specifically needs the linear interpolator for T they should use this. More...

#include <interpolator.h>

Public Types

typedef T InterpolatableType
 The type this will interpolate. More...
 
typedef CubicSpline< Real, InterpolatableTypeStorage
 The storage for type for a cubic spline.
 

Static Public Member Functions

template<typename TIterator >
static T Interpolate (TIterator Begin, TIterator End, Real Location)
 Calculates the desired location on a cubic spline. More...
 

Detailed Description

template<typename T>
class Mezzanine::SlowSplineInterpolator< T >

If something specifically needs the linear interpolator for T they should use this.

This is with be a cubic spline where applicable, and will be more smooth that the others, and be at least as intuitive as the linear version:

Definition at line 375 of file interpolator.h.

Member Typedef Documentation

template<typename T >
typedef T Mezzanine::SlowSplineInterpolator< T >::InterpolatableType

The type this will interpolate.

Note
All Interpolators need to declare an InterpolatableType

Definition at line 380 of file interpolator.h.

Member Function Documentation

template<typename T >
template<typename TIterator >
static T Mezzanine::SlowSplineInterpolator< T >::Interpolate ( TIterator  Begin,
TIterator  End,
Real  Location 
)
inlinestatic

Calculates the desired location on a cubic spline.

Parameters
BeginAn iterator to the beginning of points to interpolate
EndAn iterator to the end of a data series, not one passed it.
LocationA value between 0 and 1, that indicate how far along the curve the data point to retrieve is
Returns
This will return an value along a curve that passes smoothly through all the points passed.

Definition at line 392 of file interpolator.h.


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