#include <BSpline.h>
List of all members.
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)].
|
| BSplineBasis & | getBasis () |
Protected Member Functions |
| void | createControl (const T *akCtrlPoint) |
Protected Attributes |
| int | mNumCtrlPoints |
| T * | mCtrlPoints |
| bool | mLoop |
| BSplineBasis | mBasis |
| int | mReplicate |
template<typename T>
class cinder::BSpline< T >
Constructor & Destructor Documentation
template<typename T >
| cinder::BSpline< T >::BSpline |
( |
int |
numControlPoints, |
|
|
const T * |
controlPoints, |
|
|
int |
degree, |
|
|
bool |
loop, |
|
|
const float * |
knots |
|
) |
| |
Member Function Documentation
template<typename T >
| void cinder::BSpline< T >::get |
( |
float |
t, |
|
|
T * |
position, |
|
|
T * |
firstDerivative = NULL, |
|
|
T * |
secondDerivative = NULL, |
|
|
T * |
thirdDerivative = NULL |
|
) |
| const |
Returns the time associated with an arc length in the range [0,getLength(0,1)].
Member Data Documentation
The documentation for this class was generated from the following files: