summaryrefslogtreecommitdiff
path: root/include/z64math.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/z64math.h')
-rw-r--r--include/z64math.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/z64math.h b/include/z64math.h
index b533ba2..f7aac28 100644
--- a/include/z64math.h
+++ b/include/z64math.h
@@ -84,6 +84,8 @@ typedef union {
#define DEG_TO_BINANG_ALT(degrees) TRUNCF_BINANG(((degrees) / 180.0f) * 0x8000)
#define DEG_TO_BINANG_ALT2(degrees) TRUNCF_BINANG(((degrees) * 0x10000) / 360.0f)
#define DEG_TO_BINANG_ALT3(degrees) ((degrees) * (0x8000 / 180.0f))
+#define DEG_TO_BINANG_ALT4(degrees) (TRUNCF_BINANG((degrees) * (0x10000 / 360.0f)))
+
#define RAD_TO_DEG(radians) ((radians) * (180.0f / (f32)M_PI))
#define RAD_TO_BINANG(radians) TRUNCF_BINANG((radians) * (0x8000 / (f32)M_PI))