#ifndef CUBICSPLINE_H #define CUBICSPLINE_H #include #include #include class CubicSpline { /// contains x, y and y' of each interpolation point std::vector> points; bool useSlopes; public: CubicSpline(const std::vector>& dataPoints, bool useSlopes); float interpolateAt(float x); }; #endif // CUBICSPLINE_H