1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-08-11 09:20:17 +00:00

BINANG_TO_DEGF -> BINANG_TO_DEG_ALT (it may even be warranted to name it _approx instead of _alt, unsure)

This commit is contained in:
Dragorn421 2022-04-03 21:07:17 +02:00
parent 385fbf6dfa
commit 8be2d491a1
No known key found for this signature in database
GPG key ID: C182A3A3996E8201
5 changed files with 18 additions and 18 deletions

View file

@ -101,7 +101,7 @@ typedef struct {
#define RADF_TO_BINANG(radf) (s16)((radf) * (0x8000 / M_PI))
#define RADF_TO_DEGF(radf) ((radf) * (180.0f / M_PI))
#define DEG_TO_RAD(degrees) ((degrees) * (M_PI / 180.0f))
#define BINANG_TO_DEGF(binang) ((f32)(binang) * (360.0001525f / 65535.0f))
#define BINANG_TO_DEG_ALT(binang) ((f32)(binang) * (360.0001525f / 65535.0f))
#define BINANG_TO_RAD(binang) ((f32)(binang) * (M_PI / 0x8000))
#define BINANG_TO_RAD_ALT(binang) (((f32)(binang) / (f32)0x8000) * M_PI)
#define BINANG_TO_RAD_ALT2(binang) (((f32)(binang) * M_PI) / 0x8000)