Determines if the two objects (either Rectangles or Rectangle-like) have the same width and height values under strict equality.
name | type | description |
---|---|---|
rect | Phaser.Geom.Rectangle |
The first Rectangle object. |
toCompare | Phaser.Geom.Rectangle |
The second Rectangle object. |
true
if the objects have equivalent values for the width
and height
properties, otherwise false
.