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

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.