xor


Description:

public int xor (Rectangle source1, Rectangle source2)

Computes the symmetric difference of the rectangles source1 and source2, and stores the resulting rectangles in this.

Between 0 and 4 disjoint rectangles may be produced.

this may contain rectangle1 or rectangle2.

Returns the number of resulting rectangles.

Parameters:

this

an array of 4 Rectangle elements

source1

a Rectangle

source2

a Rectangle