CatmullRomSpline Class Template Reference
[XEngineMath Library]
Inheritance diagram for CatmullRomSpline:
[legend]List of all members.
Detailed Description
template<unsigned int Dimension>
class XEngine::Math::Curves::CatmullRomSpline< Dimension >
This class implements Catmull-Rom cubic Hermite splines, also sometimes called Overhauser splines. This type of spline curve is defined by a number of control points that have a time and a position. Given three control points of the curve, P0, P1 and P2, the tangent at point P1 is defined as the secant to the curve defined by the line segment from P0 to P2.
Catmull-Rom splines are a special-case of Kochanek-Bartels splines, see the KochanekBartelsSpline class, with tension, continuity, and bias set to 0.
Catmull-Rom splines are cubic Hermite splines and therefore specify a cubic polynomial interpolation of the given control points.
|
Public Member Functions |
| template<typename InputIteratorT> |
| | CatmullRomSpline (InputIteratorT itBegin, InputIteratorT itEnd) |
| | Constructs a new Catmull-Rom spline from the given control points.
|
Constructor & Destructor Documentation
|
|
Creates a new Catmull-Rom spline curve with the given control points. The iterators must iterate over a collection of (at least two) ControlPoint instances. |
The documentation for this class was generated from the following files:
- XCatmullRomSpline.h
- XCatmullRomSpline.cpp
- XCatmullRomSpline.inl