29 #include "core/common/math/linearAlgebra/WVectorFixed.h"
44 WBSpline(
int order, std::vector< WVector3d > deBoorPoints );
52 WBSpline(
int order, std::vector< WVector3d > deBoorPoints, std::vector<double> knots );
87 void setKnots( std::vector<double> knots );
101 void samplePoints( std::vector< WVector3d > *p,
double resolution );
void setOrder(int order)
Sets a new order for the spline.
double m_t
The parameter value of the last spline evaluation i.e. the last call to f().
std::vector< WVector3d > getDeBoorPoints()
Returns the stored de Boor points.
void setKnots(std::vector< double > knots)
Sets new knots for the spline.
void samplePoints(std::vector< WVector3d > *p, double resolution)
Compute sample points on the spline for a given resolution.
WVector3d controlPoint_i_j(int _i, int _j)
Compute a control point of the de Boor algorithm for the given parameters.
int getOrder()
Returns the order of the spline.
WVector3d f(double t)
Compute a single sample point on the spline for the given parameter.
WBSpline(int order, std::vector< WVector3d > deBoorPoints)
Constructor for the spline that takes the order and de Boor points while constructing a normalized kn...
void setDeBoorPoints(std::vector< WVector3d > deBoorPoints)
Sets new de Boor points for the spline.
int m_order
The order of the spline.
std::vector< double > getKnots()
Returns the stored knots.
std::vector< double > m_knots
The knots of the spline.
~WBSpline()
Empty destructor.
double getAlpha_i_j(int _i, int _j)
Compute the alpha of the de Boor algorithm for the given parameters.
std::vector< WVector3d > m_deBoorPoints
The de Boor points of the spline.