1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-01-20 03:29:26 +02:00

added math.sqrt2

This commit is contained in:
Maik Wild 2018-10-02 10:08:57 +02:00
parent 51f9608307
commit a8e883b8ec
2 changed files with 5 additions and 2 deletions

View File

@ -1,7 +1,7 @@
require 'config' require 'config'
require 'utils.utils' require 'utils.utils'
require 'utils.list_utils' require 'utils.list_utils'
require 'utils.math_fix' require 'utils.math'
local Game = require 'utils.game' local Game = require 'utils.game'

View File

@ -5,7 +5,10 @@ math.sin = function(x)
return math.floor(_sin(x) * 10000000 + 0.5) / 10000000 return math.floor(_sin(x) * 10000000 + 0.5) / 10000000
end end
math.cos = function(x) math.cos = function(x)
return math.floor(_cos(x) * 10000000 + 0.5) / 10000000 return math.floor(_cos(x) * 10000000 + 0.5) / 10000000
end end
math.sqrt2 = math.sqrt(2)
return math