Interface: IHitArea

PIXI.IHitArea

Interface for classes that represent a hit area.

It is implemented by the following classes:

Methods

contains (x, y) 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

Returns:
Type Description
boolean Whether the x/y coordinates are within this area