Rectangle#intersectsRaw()

intersectsRaw(left, right, top, bottom, tolerance) → {boolean}

Determines whether the coordinates given intersects (overlaps) with this Rectangle.

Parameters
Name Type Description
left number

The x coordinate of the left of the area.

right number

The right coordinate of the area.

top number

The y coordinate of the area.

bottom number

The bottom coordinate of the area.

tolerance number

A tolerance value to allow for an intersection test with padding, default to 0

Returns
boolean -

A value of true if the specified object intersects with the Rectangle; otherwise false.

Source code: geom/Rectangle.js (Line 337)
doc_phaser
2017-02-14 11:06:59
Comments
Leave a Comment

Please login to continue.