From 5321647e5b2e3538ef25325f41399e1dd3984656 Mon Sep 17 00:00:00 2001 From: Dragorn421 Date: Sat, 9 Apr 2022 09:20:26 +0200 Subject: [PATCH] Remove `DEG_TO_BINANG`, `BINANG_TO_DEG` --- include/z64math.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/z64math.h b/include/z64math.h index b674f62bf8..36e14fa9cb 100644 --- a/include/z64math.h +++ b/include/z64math.h @@ -97,11 +97,9 @@ typedef struct { #define IS_ZERO(f) (fabsf(f) < 0.008f) // Angle conversion macros -#define DEG_TO_BINANG(degrees) (s16)((degrees) * (0x8000 / 180.0f)) #define RAD_TO_BINANG(radians) (s16)((radians) * (0x8000 / M_PI)) #define RAD_TO_DEG(radians) ((radians) * (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_RAD(binang) ((f32)(binang) * (M_PI / 0x8000)) #define BINANG_TO_RAD_ALT(binang) (((f32)(binang) / (f32)0x8000) * M_PI) #define BINANG_TO_RAD_ALT2(binang) (((f32)(binang) * M_PI) / 0x8000)