diff options
Diffstat (limited to 'include/lib/math.h')
| -rw-r--r-- | include/lib/math.h | 4 |
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); |
