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