Check if rectangle intersects with values.
name | type | arguments | description |
---|---|---|---|
rect | Phaser.Geom.Rectangle |
The rectangle object |
|
left | number |
The x coordinate of the left of the Rectangle. |
|
right | number |
The x coordinate of the right of the Rectangle. |
|
top | number |
The y coordinate of the top of the Rectangle. |
|
bottom | number |
The y coordinate of the bottom of the Rectangle. |
|
tolerance | number | <optional> |
Tolerance allowed in the calculation, expressed in pixels. |
Returns true if there is an intersection.