dist/melonjs.js
function union(
       /** {me.Rect} */
       r) {
         var x1 = Math.min(this.left, r.left);
         var y1 = Math.min(this.top, r.top);
         this.resize(Math.max(this.right, r.right) - x1, Math.max(this.bottom, r.bottom) - y1);
         this.pos.set(x1, y1);
         return this;
       }
function union(
       /** {me.Rect} */
       r) {
         var x1 = Math.min(this.left, r.left);
         var y1 = Math.min(this.top, r.top);
         this.resize(Math.max(this.right, r.right) - x1, Math.max(this.bottom, r.bottom) - y1);
         this.pos.set(x1, y1);
         return this;
       }
function union ( /** {me.Rect} */ r ) { var x1 = Math . min ( this . left , r . left ) ; var y1 = Math . min ( this . top , r . top ) ; this . resize ( Math . max ( this . right , r . right ) - x1 , Math . max ( this . bottom , r . bottom ) - y1 ) ; this . pos . set ( x1 , y1 ) ; return this ; }
merge this rectangle with another one
@name union
@memberOf me.Rect.prototype
@function
@param {me.Rect} rect other rectangle to union with
@return {me.Rect} the union(ed) rectangle
merge this rectangle with another one