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