Merge pull request #3976 from gmpreussner/devel

Added TAU constant.
This commit is contained in:
Dominik Picheta 2016-03-18 17:40:40 +00:00
commit 8dade039d7
2 changed files with 1 additions and 1 deletions

View file

@ -44,6 +44,7 @@ when not defined(js) and not defined(nimscript):
const const
PI* = 3.1415926535897932384626433 ## the circle constant PI (Ludolph's number) PI* = 3.1415926535897932384626433 ## the circle constant PI (Ludolph's number)
TAU* = 2.0 * PI ## the circle constant TAU (= 2 * PI)
E* = 2.71828182845904523536028747 ## Euler's number E* = 2.71828182845904523536028747 ## Euler's number
MaxFloat64Precision* = 16 ## maximum number of meaningful digits MaxFloat64Precision* = 16 ## maximum number of meaningful digits

View file

@ -110,7 +110,6 @@ type
TGameState* = enum TGameState* = enum
Lobby, Transitioning, Field Lobby, Transitioning, Field
const const
TAU* = PI * 2.0
MomentMult* = 0.62 ## global moment of inertia multiplier MomentMult* = 0.62 ## global moment of inertia multiplier
var var
cfg: PZoneSettings cfg: PZoneSettings