mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-12 01:40:47 +00:00
DEGF_TO_BINANG
-> DEG_TO_BINANG_ALT
(again may even be _approx, or maybe _cam)
This commit is contained in:
parent
f978b6989e
commit
be9ba94ce3
5 changed files with 67 additions and 67 deletions
|
@ -97,7 +97,7 @@ typedef struct {
|
|||
#define IS_ZERO(f) (fabsf(f) < 0.008f)
|
||||
|
||||
// Angle conversion macros
|
||||
#define DEGF_TO_BINANG(degreesf) (s16)((degreesf) * 182.04167f + .5f)
|
||||
#define DEG_TO_BINANG_ALT(degreesf) (s16)((degreesf) * 182.04167f + .5f)
|
||||
#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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue