The LinearInterpolator class is a template class that implements linear interpolation.
More...
#include <LinearInterpolator.hpp>
List of all members.
Public Member Functions |
| | LinearInterpolator () |
| | LinearInterpolator (const std::vector< T > &path) |
| T | computePoint (float t) const |
| | Samples the path at the given point. The t parameter must be in the range 0.0 ... 1.0 included.
|
| void | setPath (const std::vector< T > &path) |
| | The control points defining the Catmull-Rom spline.
|
| const std::vector< T > & | path () const |
| | The control points defining the Catmull-Rom spline.
|
| std::vector< T > & | path () |
| | The control points defining the Catmull-Rom spline.
|
Protected Attributes |
| std::vector< T > | mPath |
| std::vector< T > | mLinearSpline |
Detailed Description
template<typename T>
class vl::LinearInterpolator< T >
The LinearInterpolator class is a template class that implements linear interpolation.
- See also:
- CatmullRomInterpolator, Interpolator and the Interpolators Tutorial page.
Constructor & Destructor Documentation
Member Function Documentation
Samples the path at the given point. The t parameter must be in the range 0.0 ... 1.0 included.
The control points defining the Catmull-Rom spline.
Because of the Catmull-Rom formula the interpolated path must start and end with an extra control point (one on each side) and cannot have less than 4 control points.
The control points defining the Catmull-Rom spline.
The control points defining the Catmull-Rom spline.
Member Data Documentation
The documentation for this class was generated from the following file: