Rectangle#containsRect()

containsRect(b) → {boolean}

Determines whether the first Rectangle object is fully contained within the second Rectangle object.
A Rectangle object is said to contain another if the second Rectangle object falls entirely within the boundaries of the first.

Parameters
Name Type Description
b Phaser.Rectangle

The second Rectangle object.

Returns
boolean -

A value of true if the Rectangle object contains the specified point; otherwise false.

Source code: geom/Rectangle.js (Line 284)
doc_phaser
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.