title: Java AWT Rectangle intersection
body: <p>I have two Rectangles:</p>
  
  <pre><code>Rectangle rectZR = new Rectangle(513, 163, 38, 39); //(x,y,width,height)
  Rectangle rectCorrect = new Rectangle(76, 206, 44, 44);
  </code></pre>
  
  <p>and I do:</p>
  
  <pre><code>Rectangle intersect = rectZR.intersection(rectCorrect);
  </code></pre>
  
  <p>As the coordinates show, the two rectangles actually do not intersect, but Java still returns me an intersection and <code>intersect</code> has the following dimension (x,y, width, height):</p>
  
  <pre><code>513, 206, -393, -4
  </code></pre>
  
  <p>Is this a bug, or am I doing something wrong?</p>