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

CardinalControlPoint Class Template Reference
[XEngineMath Library]

Inheritance diagram for CardinalControlPoint:

Inheritance graph
[legend]
List of all members.

Detailed Description

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

This class represents a control point of a cardinal spline, which is a special kind of cubic Hermite spline with an additional tension parameter for each control point. A control point thus contains a time value, a position, and a tension value in the range of [-1, 1]. The tension value determines how sharply the spline bends at a control point.


Public Member Functions

 CardinalControlPoint ()
 Default constructor that does not initialize the control point.
 CardinalControlPoint (real time, const Vector &position, real tension=0)
 Constructor to directly initialize the control point.


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