Phaser API Documentation

  Version: 

Member of: Phaser.Geom.Polygon

<static> Reverse(polygon)

Description:

Reverses the order of the points of a Polygon.

Parameters:

name type description
polygon Phaser.Geom.Polygon

The Polygon to modify.

Returns:
Description:

The modified Polygon.

Examples:
Since: 3.0.0