GetBounds = function (gameObject, output)
{
    if (output === undefined) { output = new Rectangle(); }

    var left = GetLeft(gameObject);
    var top = GetTop(gameObject);

    output.x = left;
    output.y = top;
    output.width = GetRight(gameObject) - left;
    output.height = GetBottom(gameObject) - top;

    return output;
}
Returns the unrotated bounds of the Game Object as a rectangle.

@function Phaser.Display.Bounds.GetBounds
@since 3.24.0

@param {Phaser.GameObjects.GameObject} gameObject - The Game Object to get the bounds value from.
@param {(Phaser.Geom.Rectangle|object)} [output] - An object to store the values in. If not provided a new Rectangle will be created.

@return {(Phaser.Geom.Rectangle|object)} - The bounds of the Game Object.