Phaser API Documentation

  Version: 

Member of: Phaser.Geom.Polygon

<static> Clone(polygon)

Description:

Create a new polygon which is a copy of the specified polygon

Parameters:

name type description
polygon Phaser.Geom.Polygon

The polygon to create a clone of

Returns:
Description:

A new separate Polygon cloned from the specified polygon, based on the same points.

Since: 3.0.0
Source: src/geom/polygon/Clone.js (Line 9)