1 2 3 4 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))