Skip to content

IHitArea.contains method

IHitArea › contains

Unofficial

Checks whether the point is inside the hit area.

Signature:

contains(x: number, y: number): boolean

Parameters:

Parameter Type Description
x number X coordinate.
y number Y coordinate.

Returns: booleanWhether the point is contained.