shiftedBy(dx, dy) {
        return new Rect(this.x + dx, this.y + dy, this.w, this.h);
    }
@param {!number} dx The displacement to move the rect horizontally.
@param {!number} dy The displacement to move the rect vertically.
@returns {!Rect}