diff options
| author | mzxrules <mzxrules@gmail.com> | 2022-11-07 19:21:51 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-07 21:21:51 -0300 |
| commit | 577a4a772b487b68f0c655d5954fdbd26df04e37 (patch) | |
| tree | a54f80dd7ebb72a402ed026bdc6f06cdfd273d78 /src/code/sys_math_atan.c | |
| parent | 65cf949bc04f71c93a8f7f3862339e1f1cac7337 (diff) | |
Fix last two functions in sys_math_atan (#1066)
* Fix extra Atan2 funcs
* format
* make Math_GetAtan2Tbl private
* rename Depr to XY
* ./format.sh i loathe thee
* namefixer.py changes
Diffstat (limited to 'src/code/sys_math_atan.c')
| -rw-r--r-- | src/code/sys_math_atan.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/code/sys_math_atan.c b/src/code/sys_math_atan.c index d68e1e293..72383b6b9 100644 --- a/src/code/sys_math_atan.c +++ b/src/code/sys_math_atan.c @@ -130,10 +130,12 @@ f32 Math_Atan2F(f32 y, f32 x) { return Math_Atan2S(y, x) * (M_PI / 0x8000); } -s16 Math_FAtan2F(f32 adjacent, f32 opposite) { - return Math_Atan2S(opposite, adjacent); +// Match the OoT implementation of Math_Atan2S +s16 Math_Atan2S_XY(f32 x, f32 y) { + return Math_Atan2S(y, x); } -f32 Math_Acot2F(f32 adjacent, f32 opposite) { - return Math_Atan2F(opposite, adjacent); +// Match the OoT implementation of Math_Atan2F +f32 Math_Atan2F_XY(f32 x, f32 y) { + return Math_Atan2F(y, x); } |
