Phaser API Documentation

  Version: 

Member of: Phaser.Geom.Polygon

<static> Perimeter(polygon)

Description:

Returns the perimeter of the given Polygon.

Parameters:

name type description
polygon Phaser.Geom.Polygon

The Polygon to get the perimeter of.

Returns:
Description:

The perimeter of the Polygon.

Type:
  • number
Since: 3.12.0