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:
Dragorn421
2022-03-20 01:16:33 +01:00
committed by GitHub
parent 4f6967b027
commit 0e5ecdcd73
65 changed files with 170 additions and 170 deletions
+1 -1
View File
@@ -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));
}