Math.atan gives different values?
Posted: Thu Apr 17, 2025 8:49 am
print(math.atan(1,0))
local i = 1
function Test()
if i <= 1 then
Salvar(math.atan(1,0),'OO.json')
end
end
Test()
function update()
Test()
end
So math.atan gives the correct value: 1.5707963267949, until i run love2d and I call math.atan which will give me 0.78539816339745. Can someone help me understand? Should i try to make my own math.atan?
local i = 1
function Test()
if i <= 1 then
Salvar(math.atan(1,0),'OO.json')
end
end
Test()
function update()
Test()
end
So math.atan gives the correct value: 1.5707963267949, until i run love2d and I call math.atan which will give me 0.78539816339745. Can someone help me understand? Should i try to make my own math.atan?