1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-02-18 21:05:55 +00:00

Add BINANG_TO_DEG (unused by oot) (for completeness)

This commit is contained in:
Dragorn421 2022-04-03 21:08:22 +02:00
parent 8be2d491a1
commit f978b6989e
No known key found for this signature in database
GPG key ID: C182A3A3996E8201

View file

@ -101,6 +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_DEG(binang) ((f32)(binang) * (180.0f / 0x8000))
#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)