Phaser API Documentation

  Version: 
<static> Clone(source)

Description:

Creates a new Rectangle which is identical to the given one.

Parameters:

name type description
source Phaser.Geom.Rectangle

The Rectangle to clone.

Returns:
Description:

The newly created Rectangle, which is separate from the given one.

Since: 3.0.0