summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2025-08-05 10:13:05 -0400
committerAndrew Opalach <andrew@akon.city> 2025-08-05 10:13:05 -0400
commit1aa0177d1eb3767f1a7840115c3afeb93e8c858e (patch)
tree032e0efbfc18ec23a3432038fe979eec2e935a46 /include
parent480cfb2bd63e71ce90b5efbb81c525824db2336b (diff)
downloadlibalabaster-1aa0177d1eb3767f1a7840115c3afeb93e8c858e.tar.gz
libalabaster-1aa0177d1eb3767f1a7840115c3afeb93e8c858e.tar.bz2
libalabaster-1aa0177d1eb3767f1a7840115c3afeb93e8c858e.zip
math: Add math.h
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'include')
-rw-r--r--include/al/math.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/al/math.h b/include/al/math.h
new file mode 100644
index 0000000..6197756
--- /dev/null
+++ b/include/al/math.h
@@ -0,0 +1,5 @@
+#define _USE_MATH_DEFINES
+#include <math.h>
+
+#define AL_TO_DEGREES(radians) ((radians) * (180.0 / M_PI))
+#define AL_TO_RADIANS(degrees) ((degrees) * (M_PI / 180.0))