intersects(shape)

Class: Rectangle. Method inherited from Shape.

Description:

Checks if this shape intersects (touches) with another shape. Both of these shapes must be added to the same component for this to work.

Parameters:

Name Type Description

shape

Shape

Intercepting shape

Returns:

Returns boolean on successful check or null if the check failed to be performed.

Type: boolean | null