Phaser API Documentation

  Version: 
<static> SameDimensions(rect, toCompare)

Description:

Determines if the two objects (either Rectangles or Rectangle-like) have the same width and height values under strict equality.

Parameters:

name type description
rect Phaser.Geom.Rectangle

The first Rectangle object.

toCompare Phaser.Geom.Rectangle

The second Rectangle object.

Returns:
Description:

true if the objects have equivalent values for the width and height properties, otherwise false.

Type:
  • boolean
Since: 3.15.0