Polygon#clone()

clone(output) → {Phaser.Polygon}

Creates a copy of the given Polygon.
This is a deep clone, the resulting copy contains new Phaser.Point objects

Parameters
Name Type Argument Default Description
output Phaser.Polygon <optional>
(new Polygon)

The polygon to update. If not specified a new polygon will be created.

Returns

The cloned (output) polygon object.

Source code: geom/Polygon.js (Line 109)
doc_phaser
2017-02-14 11:06:31
Comments
Leave a Comment

Please login to continue.