/ Published in: ActionScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
dx = x2 – x1; dy = y2 – y1; dist = Math.sqrt(dx*dx + dy*dy);