Phaser API Documentation

  Version: 
<static> Area(rect)

Description:

Calculates the area of the given Rectangle object.

Parameters:

name type description
rect Phaser.Geom.Rectangle

The rectangle to calculate the area of.

Returns:
Description:

The area of the Rectangle object.

Type:
  • number
Since: 3.0.0
Source: src/geom/rectangle/Area.js (Line 7)