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
This commit is contained in:
mzxrules
2022-11-07 19:21:51 -05:00
committed by GitHub
parent 65cf949bc0
commit 577a4a772b
39 changed files with 133 additions and 131 deletions
+6 -4
View File
@@ -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);
}