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:
parent
51f9608307
commit
a8e883b8ec
@ -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'
|
||||
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user