PixiRectangle.contains method
PixiRectangle › contains
Unofficial
Checks whether the given point is inside the rectangle.Signature:
contains(x: number, y: number): booleanParameters:
| Parameter | Type | Description |
|---|---|---|
| x | number | X coordinate to test. |
| y | number | Y coordinate to test. |
Returns: boolean — Whether the point is contained.