From 502425ad80ab19d42d1af2fb90e5e141d2f2a186 Mon Sep 17 00:00:00 2001 From: Aetias Date: Thu, 23 May 2024 18:38:55 +0200 Subject: Rename `Atan2` --- include/lib/math.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/lib') 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); -- cgit v1.2.3