diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/al/math.h | 5 |
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)) |