Checks if a point is within the bounds of a Polygon.
name | type | description |
---|---|---|
polygon | Phaser.Geom.Polygon |
The Polygon to check against. |
x | number |
The X coordinate of the point to check. |
y | number |
The Y coordinate of the point to check. |
true
if the point is within the bounds of the Polygon, otherwise false
.