Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Creator: Bolodefchoco
- --Made in: 30/04/2016
- --Last update: 17/12/2016
- --[[ Notes:
- Does:
- Retorna o ângulo entre dois pontos.
- Args:
- x1 --> Ponto 1 horizontal
- y1 --> Ponto 1 vertical
- x2 --> Ponto 2 horizontal
- y2 --> Ponto 2 vertical
- ]]--
- math.angle = function(x1,y1,x2,y2)
- return math.atan2(y2-y1,x2-x1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement