00001
00002 #ifndef jezabelspline_included
00003 #define jezabelspline_included
00004
00005 #define SPLINE_MAX_CTL_PTS 18
00006
00013 typedef struct spline_ctl {
00014 int num_points;
00015 float points[SPLINE_MAX_CTL_PTS];
00016 float coeffs[SPLINE_MAX_CTL_PTS][4];
00017 } spline_ctl;
00018
00019 #ifdef __cplusplus
00020 extern "C" {
00021 #endif
00022
00030 void spline_set_control_points(spline_ctl *ctl, int num_pts, float *x_pts, float *y_pts);
00036 float spline_compute_x_intercept(spline_ctl *ctl, float x);
00037
00038 #ifdef __cplusplus
00039 }
00040 #endif
00041 #endif