Phaser API Documentation

  Version: 
<static> RectangleToValues(rect, left, right, top, bottom, [tolerance])

Description:

Check if rectangle intersects with values.

Parameters:

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:
Description:

Returns true if there is an intersection.

Type:
  • boolean
Since: 3.0.0