Skip to content

Commit

Permalink
added simple object to holds x,y coords
Browse files Browse the repository at this point in the history
  • Loading branch information
dound committed Dec 7, 2008
1 parent 926eb9b commit d5908c4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions jtoolbar.js
Expand Up @@ -90,6 +90,12 @@ var JTB = function() {
createCookie(name,"",-1);
}

/** simple object containing a set of coordinates */
function Coords(x, y) {
this.x = x;
this.y = y;
}

/** returns the distance squared from a point to a rectangle */
function distanceSqToRectangle(x, y, rx, ry, rw, rh) {
var dx, dy;
Expand Down

0 comments on commit d5908c4

Please sign in to comment.