aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-05-14 00:20:31 -0700
committerChris Robinson <[email protected]>2018-05-14 00:20:31 -0700
commit5272caf7f4cf295d3fd7ca5d70b732c9aae5978f (patch)
tree2f8c05b1d947dbdb6f43c5934f53ee542bf4325d /common
parent1e04c4c6899ba6481ce9153a2c8a3a57bae33dd5 (diff)
More accurately convert between degrees and radians
Diffstat (limited to 'common')
-rw-r--r--common/math_defs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/math_defs.h b/common/math_defs.h
index 8ce93d0a..04d73f42 100644
--- a/common/math_defs.h
+++ b/common/math_defs.h
@@ -40,7 +40,7 @@ static inline float cbrtf(float f)
}
#endif
-#define DEG2RAD(x) ((float)(x) * (F_PI/180.0f))
-#define RAD2DEG(x) ((float)(x) * (180.0f/F_PI))
+#define DEG2RAD(x) ((float)(x) * (float)(M_PI/180.0))
+#define RAD2DEG(x) ((float)(x) * (float)(180.0/M_PI))
#endif /* AL_MATH_DEFS_H */