From 1aa0177d1eb3767f1a7840115c3afeb93e8c858e Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Tue, 5 Aug 2025 10:13:05 -0400 Subject: math: Add math.h Signed-off-by: Andrew Opalach --- include/al/math.h | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 include/al/math.h (limited to 'include/al') 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 + +#define AL_TO_DEGREES(radians) ((radians) * (180.0 / M_PI)) +#define AL_TO_RADIANS(degrees) ((degrees) * (M_PI / 180.0)) -- cgit v1.2.3-101-g0448