Checks if two Rectangles intersect.
A Rectangle intersects another Rectangle if any part of its bounds is within the other Rectangle's bounds. As such, the two Rectangles are considered "solid". A Rectangle with no width or no height will never intersect another Rectangle.
name | type | description |
---|---|---|
rectA | Phaser.Geom.Rectangle |
The first Rectangle to check for intersection. |
rectB | Phaser.Geom.Rectangle |
The second Rectangle to check for intersection. |
true
if the two Rectangles intersect, otherwise false
.