From fc1dedae7347043d3416d4f31a0ea5ae71288b58 Mon Sep 17 00:00:00 2001 From: gmpreussner Date: Thu, 17 Mar 2016 21:57:50 -0400 Subject: [PATCH 1/3] Added TAU constant. --- lib/pure/math.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/pure/math.nim b/lib/pure/math.nim index b0104336e1..f63e8c1e59 100644 --- a/lib/pure/math.nim +++ b/lib/pure/math.nim @@ -44,6 +44,7 @@ when not defined(js) and not defined(nimscript): const PI* = 3.1415926535897932384626433 ## the circle constant PI (Ludolph's number) + TAU* = 6.2831853071795864769252868 ## the circle constant TAU (= 2 * PI) E* = 2.71828182845904523536028747 ## Euler's number MaxFloat64Precision* = 16 ## maximum number of meaningful digits From 2744b8032412837d43d4cc812c96b936f213d9eb Mon Sep 17 00:00:00 2001 From: gmpreussner Date: Thu, 17 Mar 2016 23:01:09 -0400 Subject: [PATCH 2/3] Removed local TAU constant. --- tests/manyloc/keineschweine/lib/sg_assets.nim | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/manyloc/keineschweine/lib/sg_assets.nim b/tests/manyloc/keineschweine/lib/sg_assets.nim index 801c3456be..fbc3c9ab8e 100644 --- a/tests/manyloc/keineschweine/lib/sg_assets.nim +++ b/tests/manyloc/keineschweine/lib/sg_assets.nim @@ -110,7 +110,6 @@ type TGameState* = enum Lobby, Transitioning, Field const - TAU* = PI * 2.0 MomentMult* = 0.62 ## global moment of inertia multiplier var cfg: PZoneSettings From 05418890ca8342326f6d8ee2e213f9686538ee6f Mon Sep 17 00:00:00 2001 From: gmpreussner Date: Thu, 17 Mar 2016 23:03:20 -0400 Subject: [PATCH 3/3] Setting TAU to 2 * PI --- lib/pure/math.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pure/math.nim b/lib/pure/math.nim index f63e8c1e59..84c8d3b11a 100644 --- a/lib/pure/math.nim +++ b/lib/pure/math.nim @@ -44,7 +44,7 @@ when not defined(js) and not defined(nimscript): const PI* = 3.1415926535897932384626433 ## the circle constant PI (Ludolph's number) - TAU* = 6.2831853071795864769252868 ## the circle constant TAU (= 2 * PI) + TAU* = 2.0 * PI ## the circle constant TAU (= 2 * PI) E* = 2.71828182845904523536028747 ## Euler's number MaxFloat64Precision* = 16 ## maximum number of meaningful digits