fix neural api location

This commit is contained in:
kepler155c@gmail.com
2019-02-07 22:14:32 -05:00
parent e537922e46
commit af85d0aafb
5 changed files with 3 additions and 11 deletions

11
neural/apis/angle.lua Normal file
View File

@@ -0,0 +1,11 @@
local Angle = { }
function Angle.towards(x, y, z)
return math.deg(math.atan2(-x, z)), 0
end
function Angle.away(x, y, z)
return math.deg(math.atan2(x, -z)), 0
end
return Angle