The CatmullRomSpline class implements a spline, that is determined by control points that lie on the spline.
More...
#include <catmullromspline.h>
The CatmullRomSpline class implements a spline, that is determined by control points that lie on the spline.
terminus::CatmullRomSpline::CatmullRomSpline |
( |
const std::vector< QVector2D > & |
controlPoints | ) |
|
terminus::CatmullRomSpline::~CatmullRomSpline |
( |
| ) |
|
|
virtual |
void terminus::CatmullRomSpline::calculateKnotSequence |
( |
| ) |
|
|
protectedvirtual |
float terminus::CatmullRomSpline::ctlPointDistance |
( |
int |
i | ) |
const |
|
protectedvirtual |
int terminus::CatmullRomSpline::getIndex |
( |
float |
t | ) |
const |
|
protectedvirtual |
QVector2D terminus::CatmullRomSpline::getPosition |
( |
float |
param | ) |
const |
|
virtual |
evaluate the spline function for the given parameter
- Parameters
-
- Returns
- point on the spline that corresponds to param
float terminus::CatmullRomSpline::length |
( |
| ) |
const |
|
virtual |
- Returns
- the maximum parameter that this spline is defined for
QVector2D terminus::CatmullRomSpline::spline |
( |
int |
i0, |
|
|
float |
t |
|
) |
| const |
|
protectedvirtual |
std::vector<QVector2D> terminus::CatmullRomSpline::m_controlPoints |
|
protected |
std::vector<float> terminus::CatmullRomSpline::m_knotSequence |
|
protected |
float terminus::CatmullRomSpline::m_tBegin |
|
protected |
float terminus::CatmullRomSpline::m_tEnd |
|
protected |
The documentation for this class was generated from the following files: