standard rectangle class
<p>I have a project that has a GUI (written in QT) and a command-line version.  I made use of the rectangle class included in QT: <a href="http://doc.trolltech.com/4.6/qrectf.html" rel="nofollow">QRect</a>.  I would like to break the command-line version's dependency on QT, so I need a drop-in rectangle class that supports intersection and union.  I could write one, but I'd prefer including one if possible.</p>

<p>Any ideas?</p>
