mirror of
https://github.com/zeldaret/oot
synced 2026-05-30 17:06:04 -04:00
Angle cleanup - BINANG_TO_RAD, BINANG_TO_RAD_ALT (#1158)
* Run formatter * Touch up angle macros (parentheses and hex constants) * Add `BINANG_TO_RAD_ALT` * Swap `BINANG_TO_RAD` and `BINANG_TO_RAD_ALT` * Run formatter
This commit is contained in:
@@ -131,5 +131,5 @@ s16 Math_Atan2S(f32 x, f32 y) {
|
||||
}
|
||||
|
||||
f32 Math_Atan2F(f32 x, f32 y) {
|
||||
return Math_Atan2S(x, y) * (M_PI / 32768.0f);
|
||||
return BINANG_TO_RAD(Math_Atan2S(x, y));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user