index/vec2.js
function(vec2) {
      var x = this.x - vec2.x;
      var y = this.y - vec2.y;
      return Math.sqrt(x*x + y*y);
    }
function(vec2) {
      var x = this.x - vec2.x;
      var y = this.y - vec2.y;
      return Math.sqrt(x*x + y*y);
    }
function ( vec2 ) { var x = this . x - vec2 . x ; var y = this . y - vec2 . y ; return Math . sqrt ( x * x + y * y ) ; }
Return the distance betwen this `Vec2` and the incoming vec2 vector and return a scalar
Return the distance betwen this Vec2 and the incoming vec2 vector and return a scalar