mirror of
https://github.com/zeldaret/oot
synced 2026-05-27 08:08:42 -04:00
Add DEG_TO_BINANG (unused by oot) (for completeness)
This commit is contained in:
@@ -97,6 +97,7 @@ typedef struct {
|
||||
#define IS_ZERO(f) (fabsf(f) < 0.008f)
|
||||
|
||||
// Angle conversion macros
|
||||
#define DEG_TO_BINANG(degrees) (s16)((degrees) * (0x8000 / 180.0f))
|
||||
#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))
|
||||
|
||||
Reference in New Issue
Block a user