/* Tryptonite

   bspline.h
   (c)2000 Dan Potter
*/

#ifndef __BSPLINE_H
#define __BSPLINE_H

/* Pass it an array of points and it will calculate a set of B-spline
   co-efficients for generating a curve. There must be at least one point
   before the "current" one, and at least two after the "current" one (a
   total of four points required). These values will be used in the 
   function below. */
void bspline_coeff(const point_t *pnt);

/* Given a 't' (between 0.0f and 1.0f) this will generate the next point
   values for the current set of coefficients. */
void bspline_get_point(float t, point_t *p);


#endif	/* __BSPLINE_H */
