Phaser API Documentation

  Version: 
<static> Perimeter(triangle)

Description:

Gets the length of the perimeter of the given triangle. Calculated by adding together the length of each of the three sides.

Parameters:

name type description
triangle Phaser.Geom.Triangle

The Triangle to get the length from.

Returns:
Description:

The length of the Triangle.

Type:
  • number
Since: 3.0.0