function distance (x1, y1, x2, y2) {
var dx = x2 - x1;
var dy = y2 - y1;
return Math.sqrt(dx * dx + dy * dy);
}
distance
Category: Uncategorized |
Tags: js
Leave a Reply
You must be logged in to post a comment.