summaryrefslogtreecommitdiff
path: root/include/lib/math.h
diff options
context:
space:
mode:
authorAetias <aetias@outlook.com>2024-05-23 18:38:55 +0200
committerAetias <aetias@outlook.com>2024-05-23 18:38:55 +0200
commit502425ad80ab19d42d1af2fb90e5e141d2f2a186 (patch)
tree441ff4ed4addef73bfbd8bc34324698663de3500 /include/lib/math.h
parentec8aae7d5412c33dce169d8b967bbc5afc5a94fb (diff)
Rename `Atan2`
Diffstat (limited to 'include/lib/math.h')
-rw-r--r--include/lib/math.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/lib/math.h b/include/lib/math.h
index a39974cc..04fd2db4 100644
--- a/include/lib/math.h
+++ b/include/lib/math.h
@@ -55,6 +55,10 @@ typedef struct {
/* 24 */
} Mat3p;
+#define DEG_TO_ANG(n) ((n) * 0x10000 / 360)
+
+extern "C" s16 Atan2(s32 x, s32 y);
+
extern "C" u32 FastDivide(u32 a, u32 b);
extern "C" u32 Divide(u32 a, u32 b);
extern "C" bool Approach(unk32 *src, unk32 dest, unk32 step);