code: function (x, y) {
              y = typeof (y) !== "undefined" ? y : x;
  
              var points = this.points;
              var len = points.length;
              for (var i = 0; i < len; i++) {
                  points[i].scale(x, y);
              }
              this.recalc();
              this.updateBounds();
              return this;
          }
docs: Scale this Polygon by the given scalar.
  @name scale
  @memberOf me.Polygon.prototype
  @function
  @param {Number} x
  @param {Number} [y=x]
  @return {me.Polygon} Reference to this object for method chaining