arduino-splines
arduino-splines copied to clipboard
1D splines for the arduino environment
Workaround ```C++ #if defined(ARDUINO) && ARDUINO >= 100 #include "Arduino.h" #else #include "WProgram.h" #endif ```
aaand fixed a missing semicolon
fixed errant period on m array
fixed double typo
you can use setpoints without _m and set degree to Hermite ```C++ x.setPoints( float x[], float y[], int numPoints ); x.setDegree(Hermite); ``` Then calc will access _m[i], _m[i+1] which is...
Use a template class instead of `float` in order to accept double variables too. Added an example using double type.