Angle conversion (#764)

* First pass on converting degrees

* Document degrees < 10

* Update most rotation values to degrees

* Simplify DEGREES usage

* A few additional DEGREES conversions

* Documentation of DEGREES function

* Use fractional degrees

Instead of using `DEGREES(15) - 9` use `DEGREES(14.95f)` to avoid mixing representations

* Cleanup / document degrees off by 1

* Update documentation of DEGREES
This commit is contained in:
Jed Grabman
2026-06-13 23:36:53 -04:00
committed by GitHub
parent 8ee86d4c78
commit 44fe054525
31 changed files with 331 additions and 312 deletions
+4 -4
View File
@@ -1052,7 +1052,7 @@ void init_hud_one_player(void) {
D_8018D3C4 = 0x00000032;
D_8018D3BC = 0x0028;
D_8018D3C0 = 0x00000050;
D_801657A2 = 0x0333;
D_801657A2 = (4.5f * DEGREES(1));
switch (gModeSelection) { /* irregular */
case 0:
D_8018D158 = 8;
@@ -1121,7 +1121,7 @@ void init_hud_two_player_vertical(void) {
D_8018D3C4 = 0x1E;
D_8018D3BC = 0x18;
D_8018D3C0 = 0x28;
D_801657A2 = 0x666;
D_801657A2 = DEGREES(9);
switch (gModeSelection) { /* irregular */
case GRAND_PRIX:
D_8018D158 = 8;
@@ -1195,7 +1195,7 @@ void init_hud_two_player_horizontal() {
D_8018D3C4 = 0x1E;
D_8018D3BC = 0x18;
D_8018D3C0 = 0x28;
D_801657A2 = 0x666;
D_801657A2 = DEGREES(9);
switch (gModeSelection) { /* irregular */
case GRAND_PRIX:
D_8018D158 = 8;
@@ -1312,5 +1312,5 @@ void init_hud_three_four_player(void) {
D_8018D3C4 = 0x00000014;
D_8018D3BC = 0x00000010;
D_8018D3C0 = 0x0000001E;
D_801657A2 = 0x0888;
D_801657A2 = DEGREES(12);
}