function Vector2D(x, y) {
      this.x = void 0;
      this.y = void 0;
      this.x = x || 0;
      this.y = y || 0;
    }
Creates a new Vector2D instance.
@param {number} [x=0] - The x coordinate.
@param {number} [y=0] - The y coordinate.