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:
parent
b01cef726b
commit
d85d969dce
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user