<static> containsPoint(a, point) → {boolean}
Determines whether the specified point is contained within the rectangular region defined by this Rectangle object. This method is similar to the Rectangle.contains() method, except that it takes a Point object as a parameter.
Parameters
Name | Type | Description |
---|---|---|
a | Phaser.Rectangle | The Rectangle object. |
point | Phaser.Point | The point object being checked. Can be Point or any object with .x and .y values. |
Returns
boolean -
A value of true if the Rectangle object contains the specified point; otherwise false.
- Source code: geom/Rectangle.js (Line 873)
Please login to continue.