19 #ifndef _IGNITION_SPLINE_HH_
20 #define _IGNITION_SPLINE_HH_
46 public:
void Tension(
double _t);
50 public:
double Tension()
const;
54 public:
void AddPoint(
const Vector3d &_pt);
61 public:
Vector3d Point(
unsigned int _index)
const;
65 public:
unsigned int PointCount()
const;
70 public:
Vector3d Tangent(
unsigned int _index)
const;
81 public:
void UpdatePoint(
unsigned int _index,
const Vector3d &_value);
86 public:
Vector3d Interpolate(
double _t)
const;
94 public:
Vector3d Interpolate(
unsigned int _fromIndex,
double _t)
const;
110 public:
void AutoCalculate(
bool _autoCalc);
116 public:
void RecalcTangents();
std::vector< Vector3d > points
control points
Definition: Spline.hh:123
Matrix4d coeffs
Matrix of coefficients.
Definition: Spline.hh:129
#define IGNITION_VISIBLE
Use to represent "symbol visible" if supported.
Definition: Helpers.hh:346
Splines.
Definition: Spline.hh:35
bool autoCalc
when true, the tangents are recalculated when the control point change
Definition: Spline.hh:120
std::vector< Vector3d > tangents
tangents
Definition: Spline.hh:126
double tension
Tension of 0 = Catmull-Rom spline, otherwise a Cardinal spline.
Definition: Spline.hh:132