#include #include #include #define rad M_PI/180.0 #define deg 180.0/M_PI // define the rest position static float restPosition[3] = {1,0,0}; float norm(float *vector, int dim){ float result = 0; int i; for (i=0; i