| 12345678910111213141516171819202122232425262728293031323334353637 |
- #ifndef _AkimaSpline_h_
- #define _AkimaSpline_h_
- #include "Point.h"
- #include <vector>
- class AkimaSpline
- {
- public:
- AkimaSpline();
- virtual ~AkimaSpline();
-
- virtual void fit( const std::vector< Point >& curve );
- virtual std::vector< Point > getValues( int steps );
-
- private:
- double diff3points( double t,
- double x0, double y0,
- double x1, double y1,
- double x2, double y2 );
- void hermiteSpline( double* x, double* y,
- double* d, int n );
- double interpolate( double t );
- double* m_c;
-
- };
- #endif
|