distance(v1, v2) {
        var x = v2[0] - v1[0];
        var y = v2[1] - v1[1];
        return Math.sqrt(x * x + y * y);
      }
/**
       * Calculates the euclidian distance between two vector2's
       *
       * @param {vector2} v1 the first operand
       * @param {vector2} v2 the second operand
       * @return {Number} distance between a and b
       */
Calculates the euclidian distance between two vector2's
@param {vector2} v1 the first operand
@param {vector2} v2 the second operand
@return {Number} distance between a and b
Calculates the euclidian distance between two vector2 ' s @param { vector2 } v1 the first operand @param { vector2 } v2 the second operand @return { Number } distance between a and b
distance(v1, v2) {
        var x = v2[0] - v1[0];
        var y = v2[1] - v1[1];
        return Math.sqrt(x * x + y * y);
      }
distance ( v1 , v2 ) { var x = v2 [ 0 ] - v1 [ 0 ] ; var y = v2 [ 1 ] - v1 [ 1 ] ; return Math . sqrt ( x * x + y * y ) ; }
Calculates the euclidian distance between two vector2's
 @param {vector2} v1 the first operand
 @param {vector2} v2 the second operand
 @return {Number} distance between a and b
Calculates the euclidian distance between two vector2 ' s @param { vector2 } v1 the first operand @param { vector2 } v2 the second operand @return { Number } distance between a and b