Rectangle.clone()

<static> clone(a, 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
a Phaser.Rectangle

The Rectangle object.

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 815)
doc_phaser
2017-02-14 11:07:10
Comments
Leave a Comment

Please login to continue.