Rectangle#equals()

equals(b) → {boolean}

Determines whether the two Rectangles are equal.
This method compares the x, y, width and height properties of each Rectangle.

Parameters
Name Type Description
b Phaser.Rectangle

The second Rectangle object.

Returns
boolean -

A value of true if the two Rectangles have exactly the same values for the x, y, width and height properties; otherwise false.

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

Please login to continue.