PIXI.IHitArea

interface IHitArea

Interface for classes that represent a hit area.

It is implemented by the following classes:

Summary


Methods from IHitArea

Public Methods


contains interactiveTarget.ts:68
contains(x: number, y: number) → {boolean}

Checks whether the x and y coordinates given are contained within this area

Parameters:
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


Powered by webdoc!