#include <spline.H>
Static Public Member Functions | |
static void | spline_init (spline_curve_t &myc, const double spline_pts_[12]) |
Create a spline from 4 3D control points. | |
static void | spline_point (double pt[3], const spline_curve_t &spline_curve, double s) |
Get a 3D point on the spline curve. | |
Static Private Member Functions | |
static void | CubicSplineCoefficientEQ0 (std::vector< std::vector< double > > &myc, int myn, int mybeg, int myend) |
Spline construction routine derived by Dr. Borst from C. de Boor & R. Brun & F. Rademakers. |
static void cajun::spline_t::CubicSplineCoefficientEQ0 | ( | std::vector< std::vector< double > > & | myc, | |
int | myn, | |||
int | mybeg, | |||
int | myend | |||
) | [static, private] |
Spline construction routine derived by Dr. Borst from C. de Boor & R. Brun & F. Rademakers.
myc | Resembles a double array: myc[][4] |
Referenced by spline_init().
void spline_t::spline_init | ( | spline_curve_t & | myc, | |
const double | spline_pts_[12] | |||
) | [static] |
Create a spline from 4 3D control points.
The spline will pass through the 4 control points. The control points are in 3 dimensions, so index 0, 1, 2 corresponds to the first control point.
myc | Is the uninitialized spline_curve_t that will be initialized after function call. | |
spline_pts_ | An array of 4 3D control points. Index 0, 1, and 2 correspond to the first point. |
References CubicSplineCoefficientEQ0().
void spline_t::spline_point | ( | double | pt[3], | |
const spline_curve_t & | spline_curve, | |||
double | s | |||
) | [static] |
Get a 3D point on the spline curve.
pt | The point that will be set after return. | |
spline_curve | An initialized spline_curve_t from which the 3D point will be taken. | |
s | An index along the spline curve, 0 <= s <= 1. 0.0 corresponds to the first control point given to the spline and 1.0 corresponds to the last control point. |