![]() |
Public API Reference |
![]() |
A cubic spline. More...
#include <csgeom/spline.h>
Public Member Functions | |
virtual void | Calculate (float time) |
Calculate internal values for this spline given some time value. | |
csCubicSpline (int d, int p) | |
Create a cubic spline with d dimensions and p points. | |
virtual float | GetInterpolatedDimension (int dim) const |
After calling Calculate() you can use this to fetch the value of some dimension. | |
virtual void | Setup (int d, int p) |
Change the setup of the spline. | |
virtual | ~csCubicSpline () |
Destroy the spline. |
csCubicSpline::csCubicSpline | ( | int | d, |
int | p | ||
) |
Create a cubic spline with d dimensions and p points.
virtual csCubicSpline::~csCubicSpline | ( | ) | [virtual] |
Destroy the spline.
virtual void csCubicSpline::Calculate | ( | float | time | ) | [virtual] |
Calculate internal values for this spline given some time value.
Implements csSpline.
virtual float csCubicSpline::GetInterpolatedDimension | ( | int | dim | ) | const [virtual] |
After calling Calculate() you can use this to fetch the value of some dimension.
Implements csSpline.
virtual void csCubicSpline::Setup | ( | int | d, |
int | p | ||
) | [virtual] |
Change the setup of the spline.
Reimplemented from csSpline.