29#ifndef __SimpleSpline_H__
30#define __SimpleSpline_H__
Class encapsulating a standard 4x4 homogeneous matrix.
A very simple spline class which implements the Catmull-Rom class of splines.
Vector3 interpolate(Real t) const
Returns an interpolated point based on a parametric value over the whole series.
void addPoint(const Vector3 &p)
Adds a control point to the end of the spline.
Matrix4 mCoeffs
Matrix of coefficients.
unsigned short getNumPoints(void) const
Gets the number of control points in the spline.
vector< Vector3 >::type mTangents
void recalcTangents(void)
Recalculates the tangents associated with this spline.
void updatePoint(unsigned short index, const Vector3 &value)
Updates a single point in the spline.
Vector3 interpolate(unsigned int fromIndex, Real t) const
Interpolates a single segment of the spline given a parametric value.
vector< Vector3 >::type mPoints
void setAutoCalculate(bool autoCalc)
Tells the spline whether it should automatically calculate tangents on demand as points are added.
void clear(void)
Clears all the points in the spline.
const Vector3 & getPoint(unsigned short index) const
Gets the detail of one of the control points of the spline.
Standard 3-dimensional vector.
float Real
Software floating point type.