Advertisement
casencty

renvoi l'angle entre deux points

Oct 8th, 2017
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.10 KB | None | 0 0
  1. function returnangle(x,y,x2,y2)
  2.     return 360-(math.atan2(x - x2, y- y2) * 180 /math.pi +90)
  3. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement