diff --git a/src/include/util.h b/src/include/util.h index 421e82f..55ee058 100644 --- a/src/include/util.h +++ b/src/include/util.h @@ -2,6 +2,7 @@ #define UTIL_H_ #include +#include #include "sdk.h" #include "globals.h" @@ -13,6 +14,8 @@ typedef struct { uint8_t r, g, b; } rgb_t; +#define DEG2RAD(n) ((n)*M_PI / 180.0) + #define gl_drawline_points(p0, p1, w, col) \ gl_drawline(p0[0], p0[1], p1[0], p1[1], w, col);