clone(output) → {Phaser.Rectangle}
Returns a new Rectangle object with the same values for the x, y, width, and height properties as the original Rectangle object.
Parameters
Name Type Argument Description output Phaser.Rectangle <optional> Optional Rectangle object. If given the values will be set into the object, otherwise a brand new Rectangle object will be created and returned.
Returns
Phaser.Rectangle -
Source code: geom/Rectangle.js (Line 259)