mirror of
https://github.com/zeldaret/oot.git
synced 2024-11-14 05:19:36 +00:00
Cleanup argument names in angle conversion macros
This commit is contained in:
parent
21cbe53936
commit
738b76fad4
1 changed files with 3 additions and 3 deletions
|
@ -98,9 +98,9 @@ typedef struct {
|
||||||
|
|
||||||
// Angle conversion macros
|
// Angle conversion macros
|
||||||
#define DEG_TO_BINANG(degrees) (s16)((degrees) * (0x8000 / 180.0f))
|
#define DEG_TO_BINANG(degrees) (s16)((degrees) * (0x8000 / 180.0f))
|
||||||
#define DEG_TO_BINANG_ALT(degreesf) (s16)((degreesf) * 182.04167f + .5f)
|
#define DEG_TO_BINANG_ALT(degrees) (s16)((degrees) * 182.04167f + .5f)
|
||||||
#define RAD_TO_BINANG(radf) (s16)((radf) * (0x8000 / M_PI))
|
#define RAD_TO_BINANG(radians) (s16)((radians) * (0x8000 / M_PI))
|
||||||
#define RAD_TO_DEG(radf) ((radf) * (180.0f / M_PI))
|
#define RAD_TO_DEG(radians) ((radians) * (180.0f / M_PI))
|
||||||
#define DEG_TO_RAD(degrees) ((degrees) * (M_PI / 180.0f))
|
#define DEG_TO_RAD(degrees) ((degrees) * (M_PI / 180.0f))
|
||||||
#define BINANG_TO_DEG(binang) ((f32)(binang) * (180.0f / 0x8000))
|
#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_DEG_ALT(binang) ((f32)(binang) * (360.0001525f / 65535.0f))
|
||||||
|
|
Loading…
Reference in a new issue