1
0
Fork 0
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:
Dragorn421 2022-04-03 21:10:28 +02:00
parent f978b6989e
commit be9ba94ce3
No known key found for this signature in database
GPG key ID: C182A3A3996E8201
5 changed files with 67 additions and 67 deletions

View file

@ -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))