From caba603d4340b5b991f0ce1b128bd95ab7cd1ad7 Mon Sep 17 00:00:00 2001 From: Supercip971 Date: Sat, 26 Mar 2022 15:51:53 +0000 Subject: [PATCH] brutal: fix deg2rad / rad2deg functions - I don't know why nor how it our code worked before --- sources/libs/brutal/math/angle.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/libs/brutal/math/angle.h b/sources/libs/brutal/math/angle.h index 702b6d17e..8df776f59 100644 --- a/sources/libs/brutal/math/angle.h +++ b/sources/libs/brutal/math/angle.h @@ -24,10 +24,10 @@ static inline MRadian m_rad(float value) static inline MRadian m_deg2rad(MDegree deg) { - return (MRadian){(deg.v) * 180 / M_PI}; + return (MRadian){(deg.v) * (M_PI / 180.f)}; } static inline MDegree m_rad2deg(MRadian rad) { - return (MDegree){(rad.v) * M_PI / 180}; + return (MDegree){(rad.v) * (180.f / M_PI)}; }