Phaser API Documentation

  Version: 
<static> Perimeter(rect)

Description:

Calculates the perimeter of a Rectangle.

Parameters:

name type description
rect Phaser.Geom.Rectangle

The Rectangle to use.

Returns:
Description:

The perimeter of the Rectangle, equal to (width * 2) + (height * 2).

Type:
  • number
Since: 3.0.0