Check out the source code for Rectangle.java. You'll be able to see how the Sun folks accomplished many of the Rectangle methods, including union...most notably:


/**
* Computes the...