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)
Please login to continue.