From ee2b9803e4aa0f04fe1ad1d8267ec1ec1bee9de7 Mon Sep 17 00:00:00 2001 From: 8dcc <8dcc.git@gmail.com> Date: Sun, 23 Jul 2023 15:49:34 +0200 Subject: [PATCH] Add DEG2RAD macro --- src/include/util.h | 3 +++ 1 file changed, 3 insertions(+) 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);