Phaser API Documentation

  Version: 

Member of: Phaser.Geom.Polygon

calculateArea()

Description:

Calculates the area of the Polygon. This is available in the property Polygon.area

Returns:
Description:

The area of the polygon.

Type:
  • number
Examples:
Since: 3.0.0