List of all members.
Public Member Functions |
|
void | AddPoint (const Quaternion &_p) |
| | Adds a control point to the end of the spline.
|
|
const Quaternion & | GetPoint (unsigned short _index) const |
| | Gets the detail of one of the control points of the spline.
|
|
unsigned int | GetNumPoints () const |
| | Gets the number of control points in the spline.
|
|
void | Clear () |
| | Clears all the points in the spline.
|
| void | UpdatePoint (unsigned short _index, const Quaternion &_value) |
| | Updates a single point in the spline.
|
| Quaternion | Interpolate (double _t, bool _useShortestPath=true) |
| | Returns an interpolated point based on a parametric value over the whole series.
|
| Quaternion | Interpolate (unsigned int _fromIndex, double _t, bool _useShortestPath=true) |
| | Interpolates a single segment of the spline given a parametric value.
|
| void | SetAutoCalculate (bool _autoCalc) |
| | Tells the spline whether it should automatically calculate tangents on demand as points are added.
|
| void | RecalcTangents () |
| | Recalculates the tangents associated with this spline.
|
Protected Attributes |
|
bool | autoCalc |
|
std::vector< Quaternion > | points |
|
std::vector< Quaternion > | tangents |
Member Function Documentation
| Quaternion Interpolate |
( |
double |
_t, |
|
|
bool |
_useShortestPath = true |
|
) |
| |
Returns an interpolated point based on a parametric value over the whole series.
- Parameters:
-
| t | Parametric value. |
| useShortestPath | Defines if rotation should take the shortest possible path |
| Quaternion Interpolate |
( |
unsigned int |
_fromIndex, |
|
|
double |
_t, |
|
|
bool |
_useShortestPath = true |
|
) |
| |
Interpolates a single segment of the spline given a parametric value.
- Parameters:
-
| fromIndex | The point index to treat as t=0. fromIndex + 1 is deemed to be t=1 |
| t | Parametric value |
| useShortestPath | Defines if rotation should take the shortest possible path |
Recalculates the tangents associated with this spline.
| void SetAutoCalculate |
( |
bool |
_autoCalc | ) |
|
Tells the spline whether it should automatically calculate tangents on demand as points are added.
- Parameters:
-
| autoCalc | If true, tangents are calculated for you whenever a point changes. If false, you must call reclacTangents to recalculate them when it best suits. |
| void UpdatePoint |
( |
unsigned short |
_index, |
|
|
const Quaternion & |
_value |
|
) |
| |
Updates a single point in the spline.
The documentation for this class was generated from the following file: