Robonado

math.degree

Apr 30th, 2015
354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.12 KB | None | 0 0
  1. function math.degree(x1,y1,x2,y2) -- Retorna a diferença em graus
  2.     return math.deg(math.atan((x2 -x1) / (y2 -y1)));
  3. end
Advertisement
Add Comment
Please, Sign In to add comment