<static> contains(a, x, y) → {boolean}
Determines whether the specified coordinates are contained within the region defined by this Rectangle object.
Parameters
Name | Type | Description |
---|---|---|
a | Phaser.Rectangle | The Rectangle object. |
x | number | The x coordinate of the point to test. |
y | number | The y coordinate of the point to test. |
Returns
boolean -
A value of true if the Rectangle object contains the specified point; otherwise false.
- Source code: geom/Rectangle.js (Line 837)
Please login to continue.