WXP C++ Library Version 6.74.6
Loading...
Searching...
No Matches
Spline.h
1#ifndef _WINC_SPLINE
2#define _WINC_SPLINE
3
4#include <WXP/Point.h>
5#include <WXP/Points.h>
6
7namespace WXP {
8 class Spline {
9 int num;
10 int type;
11 float *x;
12 float *y;
13 float *d;
14 float *coeffx;
15 float *coeffy;
16 int poly;
17
18 int initResrc();
19 float *createCoeffs( float *x, float *y );
20 float interp( float z, float *coeffs, float *x, float *y );
21
22 public:
23 Spline();
24 Spline( Points &pts, int rtype );
25 int set( Points &pts, int rtype );
26 ~Spline();
27 float getValue( float z );
28 int getPoint( float z, Point &pt );
29 float getDist();
30 float getDist( Point &pt );
31 float getDist( int ind );
32
33 enum Type { D0, D1, D2 };
34 };
35}
36#endif
This class creates an array a 2D points (x, y)
Definition: Points.h:8
This class creates splines from point data.
Definition: Spline.h:8
All WXP classes fall under the WXP namespace.
Definition: Angle.h:4
This struct sets a 3D point (x, y, z)
Definition: Point.h:5