Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | Namespace Members | Class Members | Related Pages

CardinalSpline Class Template Reference
[XEngineMath Library]

Inheritance diagram for CardinalSpline:

Inheritance graph
[legend]
List of all members.

Detailed Description

template<unsigned int Dimension>
class XEngine::Math::Curves::CardinalSpline< Dimension >

This class implements cardinal cubic Hermite splines. This type of spline curve is defined by a number of control points that have a time, a position, and a tension value that determines how sharply the spline bends at a control point by influencing the incoming and outgoing tangents at the control point.

Tension controls how sharply the curve bends at a control point. Tension values must be in the range [-1, 1]. If the tension value is 0, the spline is called a Catmull-Rom spline, see the CatmullRomSpline class.

Cardinal splines are cubic Hermite splines and therefore specify a cubic polynomial interpolation of the given control points.


Public Member Functions

template<typename InputIteratorT>
 CardinalSpline (InputIteratorT itBegin, InputIteratorT itEnd)
 Constructs a new Kochanek-Bartels spline from the given control points.


Constructor & Destructor Documentation

CardinalSpline InputIteratorT  itBegin,
InputIteratorT  itEnd
 

Creates a new cardinal spline curve with the given control points. The iterators must iterate over a collection of (at least two) CardinalControlPoint instances.


The documentation for this class was generated from the following files: