mirror of
https://github.com/zeldaret/mm.git
synced 2026-06-04 10:48:25 -04:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user