Phaser API Documentation

  Version: 
<static> GetSize(rect, [out])

Description:

Returns the size of the Rectangle, expressed as a Point object. With the value of the width as the x property and the height as the y property.

Parameters:

name type arguments description
rect Phaser.Geom.Rectangle

The Rectangle to get the size from.

out object | Phaser.Geom.Point <optional>

The Point object to store the size in. If not given, a new Point instance is created.

Returns:
Description:

A Point object where x holds the width and y holds the height of the Rectangle.

Type:
Since: 3.0.0