subtract


Description:

public int subtract (Rectangle minuend, Rectangle subtrahend)

Subtracts subtrahend from minuend, and stores the resulting rectangles in this.

Between 0 and 4 disjoint rectangles may be produced.

this may contain minuend or subtrahend.

Returns the number of resulting rectangles.

Parameters:

this

an array of 4 Rectangle elements

minuend

a Rectangle

subtrahend

a Rectangle