#include <BSpline.h>
Public Member Functions | |
BSpline (const std::vector< T > &points, int degree, bool loop, bool open) | |
BSpline () | |
BSpline (int numControlPoints, const T *controlPoints, int degree, bool loop, const float *knots) | |
BSpline (const BSpline &bspline) | |
BSpline & | operator= (const BSpline &bspline) |
~BSpline () | |
int | getNumControlPoints () const |
int | getDegree () const |
int | getNumSpans () const |
bool | isOpen () const |
bool | isUniform () const |
bool | isLoop () const |
void | setControlPoint (int i, const T &rkCtrl) |
T | getControlPoint (int i) const |
void | setKnot (int i, float fKnot) |
float | getKnot (int i) const |
T | getPosition (float t) const |
T | getDerivative (float t) const |
T | getSecondDerivative (float t) const |
T | getThirdDerivative (float t) const |
T::TYPE | getSpeed (float t) const |
float | getLength (float fT0, float fT1) const |
void | get (float t, T *position, T *firstDerivative=NULL, T *secondDerivative=NULL, T *thirdDerivative=NULL) const |
float | getTime (float length) const |
Returns the time associated with an arc length in the range [0,getLength(0,1)]. More... | |
BSplineBasis & | getBasis () |
Protected Member Functions | |
void | createControl (const T *akCtrlPoint) |
Protected Attributes | |
int | mNumCtrlPoints |
T * | mCtrlPoints |
bool | mLoop |
BSplineBasis | mBasis |
int | mReplicate |
cinder::BSpline< T >::BSpline | ( | const std::vector< T > & | points, |
int | degree, | ||
bool | loop, | ||
bool | open | ||
) |
cinder::BSpline< T >::BSpline | ( | ) |
cinder::BSpline< T >::BSpline | ( | int | numControlPoints, |
const T * | controlPoints, | ||
int | degree, | ||
bool | loop, | ||
const float * | knots | ||
) |
cinder::BSpline< T >::BSpline | ( | const BSpline< T > & | bspline | ) |
cinder::BSpline< T >::~BSpline | ( | ) |
BSpline< T > & cinder::BSpline< T >::operator= | ( | const BSpline< T > & | bspline | ) |
int cinder::BSpline< T >::getNumControlPoints | ( | ) | const |
int cinder::BSpline< T >::getDegree | ( | ) | const |
int cinder::BSpline< T >::getNumSpans | ( | ) | const |
bool cinder::BSpline< T >::isOpen | ( | ) | const |
bool cinder::BSpline< T >::isUniform | ( | ) | const |
bool cinder::BSpline< T >::isLoop | ( | ) | const |
void cinder::BSpline< T >::setControlPoint | ( | int | i, |
const T & | rkCtrl | ||
) |
T cinder::BSpline< T >::getControlPoint | ( | int | i | ) | const |
void cinder::BSpline< T >::setKnot | ( | int | i, |
float | fKnot | ||
) |
float cinder::BSpline< T >::getKnot | ( | int | i | ) | const |
T cinder::BSpline< T >::getPosition | ( | float | t | ) | const |
T cinder::BSpline< T >::getDerivative | ( | float | t | ) | const |
T cinder::BSpline< T >::getSecondDerivative | ( | float | t | ) | const |
T cinder::BSpline< T >::getThirdDerivative | ( | float | t | ) | const |
T::TYPE cinder::BSpline< T >::getSpeed | ( | float | t | ) | const |
float cinder::BSpline< T >::getLength | ( | float | fT0, |
float | fT1 | ||
) | const |
void cinder::BSpline< T >::get | ( | float | t, |
T * | position, | ||
T * | firstDerivative = NULL , |
||
T * | secondDerivative = NULL , |
||
T * | thirdDerivative = NULL |
||
) | const |
float cinder::BSpline< T >::getTime | ( | float | length | ) | const |
Returns the time associated with an arc length in the range [0,getLength(0,1)].
BSplineBasis & cinder::BSpline< T >::getBasis | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |