dist/melonjs.js
function transform(m) {
         var points = this.points;
         var len = points.length;

         for (var i = 0; i < len; i++) {
           m.multiplyVector(points[i]);
         }

         this.recalc();
         this.updateBounds();
         return this;
       }
function transform(m) {
         var points = this.points;
         var len = points.length;

         for (var i = 0; i < len; i++) {
           m.multiplyVector(points[i]);
         }

         this.recalc();
         this.updateBounds();
         return this;
       }
function transform ( m ) { var points = this . points ; var len = points . length ; for ( var i = 0 ; i < len ; i ++ ) { m . multiplyVector ( points [ i ] ) ; } this . recalc ( ) ; this . updateBounds ( ) ; return this ; }
apply the given transformation matrix to this Polygon
@name transform
@memberOf me.Polygon.prototype
@function
@param {me.Matrix2d} matrix the transformation matrix
@return {me.Polygon} Reference to this object for method chaining
apply the given transformation matrix to this Polygon