B2G/gecko/browser/components/tabview/modules/utils.jsm
// Returns the distance from this point to the given <Point>.
Returns the distance from this point to the given .
Returns the distance from this point to the given .
function Point_distance(point) {
    var ax = this.x - point.x;
    var ay = this.y - point.y;
    return Math.sqrt((ax * ax) + (ay * ay));
  }
function Point_distance ( point ) { var ax = this . x - point . x ; var ay = this . y - point . y ; return Math . sqrt ( ( ax * ax ) + ( ay * ay ) ) ; }
Returns the distance from this point to the given <Point>.
Returns the distance from this point to the given <Point > .