code: function (x, y, points) {
              this.pos.set(x, y);
  
              if (!Array.isArray(points)) {
                  return this;
              }
  
              // convert given points to me.Vector2d if required
              if (!(points[0] instanceof me.Vector2d)) {
                  var _points = this.points = [];
                  points.forEach(function (point) {
                     _points.push(new me.Vector2d(point.x, point.y));
                  });
              } else {
                  // array of me.Vector2d
                  this.points = points;
              }
  
              this.recalc();
              this.updateBounds();
  
              return this;
          }
docs: set new value to the Polygon
  @name setShape
  @memberOf me.Polygon.prototype
  @function
  @param {Number} x position of the Polygon
  @param {Number} y position of the Polygon
  @param {me.Vector2d[]} points array of vector defining the Polygon