intersect(shape)

Class: Rectangle. Method inherited from Shape.

Description:

Remove an area from this shape where this shape and provided shape don't intersect, leaving only area where these shapes do intersect. Stroke of this shape is kept (stroke of another shape is disregarded).

Parameters:

Name Type Description

shape

Shape

Another shape object.

Returns:

Returns this shape for method chaining.

Type: this