summaryrefslogtreecommitdiff
path: root/include/z64math.h
diff options
context:
space:
mode:
authorPrakxo <87568477+Prakxo@users.noreply.github.com>2024-07-13 15:50:22 +0200
committerGitHub <noreply@github.com>2024-07-13 06:50:22 -0700
commitaeb01dcb95e8281f89f355604dbeba519ef073d5 (patch)
tree96b20d128b016c994ccac5c7b0c690a3b5a5a801 /include/z64math.h
parent0e66d077f8cf321c3f11978f531502ec592c0cdb (diff)
m_roll_lib OK (#198)
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))