1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-10 10:00:00 +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 'utils.utils'
require 'utils.list_utils'
require 'utils.math_fix'
require 'utils.math'
local Game = require 'utils.game'

View File

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