mirror of
https://github.com/Refactorio/RedMew.git
synced 2024-12-14 10:13:13 +02:00
15 lines
260 B
Lua
15 lines
260 B
Lua
local _sin = math.sin
|
|
local _cos = math.cos
|
|
|
|
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
|