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:

ParameterTypeDescription
xnumberX coordinate.
ynumberY coordinate.

Returns: booleanWhether the point is contained.