Rectangle#clone()

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
Source code: geom/Rectangle.js (Line 259)
doc_phaser
2017-02-14 11:06:52
Comments
Leave a Comment

Please login to continue.