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:
parent
385fbf6dfa
commit
8be2d491a1
5 changed files with 18 additions and 18 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue