CubicSpline Class Reference

Represents a natural cubic spline. More...

#include <Graphics/Curve.h>

List of all members.

Public Member Functions

 CubicSpline ()
 Constructor.
 CubicSpline (const std::vector< Point2f > &points)
 Constructor.
 CubicSpline (const Point2f *points, uint n)
 Constructor.
void SetControlPoints (const std::vector< Point2f > &points)
 Sets the control points to use for the spline.
void SetControlPoints (const Point2f *points, uint n)
 Sets the control points to use for the spline.
Point2f operator() (float t) const
 Evaluates the spline funciton.

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:
Generated on Mon Apr 5 19:08:05 2010 for BrickOut |ReDuX| by  doxygen 1.6.3