Home
News
Learn
Download
Examples
Community
Login
Phaser API Documentation
Version:
Namespaces
Classes
Events
Game Objects
Physics
Scenes
Changelog
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.
Type:
Phaser.Geom.Polygon
Since:
3.0.0
Source:
src/geom/polygon/Reverse.js
(Line
7
)
Possible examples