diff options
| author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-07-25 00:09:14 +0700 |
|---|---|---|
| committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-07-25 00:16:31 +0700 |
| commit | a67ab5b4eeadac48313bff81557e87b35fb2fa8b (patch) | |
| tree | 7516ccffc7ac2fb3d774d46e3f8388f2f1d32d02 /src/PhysicsMath.h | |
| parent | 280dc7237c09dbe2163f0a75bcaf21566dcf0d1f (diff) | |
| download | blackshades-a67ab5b4eeadac48313bff81557e87b35fb2fa8b.tar.gz | |
Split out handleToggles
Diffstat (limited to 'src/PhysicsMath.h')
| -rw-r--r-- | src/PhysicsMath.h | 6 |
1 files changed, 1 insertions, 5 deletions
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; - } //------------------------------------------------------------------------// |
