From a67ab5b4eeadac48313bff81557e87b35fb2fa8b Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Sun, 25 Jul 2021 00:09:14 +0700 Subject: Split out handleToggles --- src/PhysicsMath.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/PhysicsMath.h') diff --git a/src/PhysicsMath.h b/src/PhysicsMath.h index 758931b..7eb13c5 100644 --- a/src/PhysicsMath.h +++ b/src/PhysicsMath.h @@ -12,7 +12,7 @@ //------------------------------------------------------------------------// -float const pi = 3.14159265f; +const float pi = acosf(-1); float const g = -32.174f; // acceleration due to gravity, ft/s^2 @@ -31,17 +31,13 @@ inline float DegreesToRadians(float deg); inline float RadiansToDegrees(float rad); inline float DegreesToRadians(float deg) - { return deg * pi / 180.0f; } inline float RadiansToDegrees(float rad) - { - return rad * 180.0f / pi; - } //------------------------------------------------------------------------// -- cgit 1.4.1