17 #ifndef _ROTATIONSPLINE_HH_
18 #define _ROTATIONSPLINE_HH_
49 public:
const Quaternion &GetPoint(
unsigned int _index)
const;
53 public:
unsigned int GetNumPoints()
const;
62 public:
void UpdatePoint(
unsigned int _index,
const Quaternion &_value);
73 public:
Quaternion Interpolate(
double _t,
bool _useShortestPath =
true);
83 public:
Quaternion Interpolate(
unsigned int _fromIndex,
double _t,
84 bool _useShortestPath =
true);
100 public:
void SetAutoCalculate(
bool _autoCalc);
106 public:
void RecalcTangents();
113 protected: std::vector<Quaternion>
points;
std::vector< Quaternion > points
the control points
Definition: RotationSpline.hh:113
std::vector< Quaternion > tangents
the tangents
Definition: RotationSpline.hh:116
Spline for rotations.
Definition: RotationSpline.hh:33
#define GZ_MATH_VISIBLE
Definition: system.hh:134
A quaternion class.
Definition: Quaternion.hh:42
bool autoCalc
Automatic recalcultation of tangeants when control points are updated.
Definition: RotationSpline.hh:110