Skip to content

PixiRectangle.contains method

PixiRectangle › contains

Unofficial

Checks whether the given point is inside the rectangle.

Signature:

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

Parameters:

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

Returns: booleanWhether the point is contained.