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

Update math_fix.lua

This commit is contained in:
Valansch 2018-09-28 17:35:05 +02:00 committed by GitHub
parent b01cef726b
commit d85d969dce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,8 +11,8 @@ math.sin = function(x)
if x > 180 then sign = - sign end
x = x % 180
if x == 0 then return 0 end
return sign * 4 * x *(180 - x) / (40500 - (x * (180 - x)))
local a = (x * (180 - x)
return sign * 4 * a / (40500 - a))
end
math.cos = function(x)