Public Member Functions

  • BSpline (const std::vector< VecT > &points, int degree, bool loop, bool open)
  • BSpline ()
  • BSpline (int numControlPoints, const VecT *controlPoints, int degree, bool loop, const float *knots)
  • BSpline (const 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 VecT &rkCtrl)
  • getControlPoint (int i) const
  • void
    setKnot (int i, float fKnot)
  • float
    getKnot (int i) const
  • getPosition (float t) const
  • getDerivative (float t) const
  • getSecondDerivative (float t) const
  • getThirdDerivative (float t) const
  • T
    getSpeed (float t) const
  • float
    getLength (float fT0, float fT1) const
  • void
    get (float t, VecT *position, VecT *firstDerivative=NULL, VecT *secondDerivative=NULL, VecT *thirdDerivative=NULL) const
  • getBasis ()

Protected Member Functions

  • void
    createControl (const VecT *akCtrlPoint)

Protected Attributes

  • int
    mNumCtrlPoints
  • mCtrlPoints
  • bool
    mLoop
  • mBasis
  • int
    mReplicate