<static> intersects(a, b) → {boolean}
Determines whether the two Rectangles intersect with each other.
This method checks the x, y, width, and height properties of the Rectangles.
Parameters
Name | Type | Description |
---|---|---|
a | Phaser.Rectangle | The first Rectangle object. |
b | Phaser.Rectangle | The second Rectangle object. |
Returns
boolean -
A value of true if the specified object intersects with this Rectangle object; otherwise false.
- Source code: geom/Rectangle.js (Line 960)
Please login to continue.