CubicSpline Class Reference
Represents a natural cubic spline.
More...
#include <Graphics/Curve.h>
List of all members.
Detailed Description
Represents a natural cubic spline.
Constructor & Destructor Documentation
CubicSpline::CubicSpline |
( |
const std::vector< Point2f > & |
points |
) |
|
Constructor.
- Parameters:
-
[in] | points | a vector of control points. |
CubicSpline::CubicSpline |
( |
const Point2f * |
points, |
|
|
uint |
n | |
|
) |
| | |
Constructor.
- Parameters:
-
[in] | points | an array of control points. |
[in] | n | the number of control points in the array. |
Member Function Documentation
Point2f CubicSpline::operator() |
( |
float |
t |
) |
const |
Evaluates the spline funciton.
- Parameters:
-
[in] | t | the value in the range [0,1] to evaluate the spline. |
void CubicSpline::SetControlPoints |
( |
const Point2f * |
points, |
|
|
uint |
n | |
|
) |
| | |
Sets the control points to use for the spline.
- Parameters:
-
[in] | points | an array of control points. |
[in] | n | the number of control points in the array. |
void CubicSpline::SetControlPoints |
( |
const std::vector< Point2f > & |
points |
) |
|
Sets the control points to use for the spline.
- Parameters:
-
[in] | points | a vector of control points. |
The documentation for this class was generated from the following file: