whiplk

[CODE] - Distância entre dois pontos

Jan 22nd, 2013
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function dist2(xa, xb, ya, yb)
  2. {
  3.     return Math.sqrt(Math.pow((xa-xb),2) + Math.pow((ya-yb),2));
  4. }
Advertisement
Add Comment
Please, Sign In to add comment