PIXI.IHitArea
interface IHitArea
Interface for classes that represent a hit area.
It is implemented by the following classes:
Public Methods
contains(x: number, y: number) → {boolean}
Checks whether the x and y coordinates given are contained within this area
Name | Type | Description |
---|---|---|
x | number |
The X coordinate of the point to test |
y | number |
The Y coordinate of the point to test |
Type | Description |
---|---|
boolean |
Whether the x/y coordinates are within this area |