function panTo(center) {
            this.x = center.x - this.width / 2;
            this.y = center.y - this.height / 2;
            return this;
        }
/**
         * Pans the rectangle so that it's center matches a given point.
         *
         * @param {Malakh.Point} center
         */
Pans the rectangle so that it's center matches a given point.
Pans the rectangle so that it ' s center matches a given point .
function panTo(center) {
            this.x = center.x - this.width / 2;
            this.y = center.y - this.height / 2;
            return this;
        }
function panTo ( center ) { this . x = center . x - this . width / 2 ; this . y = center . y - this . height / 2 ; return this ; }
Pans the rectangle so that it's center matches a given point.
Pans the rectangle so that it ' s center matches a given point .