title: rectangle overlap code not working as expected (returning true when no overlap)
body: <p>(edit) never mind... 
      if(r.overlaps(b.getBounds()));
  should read
      if(r.overlaps(b.getBounds()))</p>
  
  <p>!</p>
  
  <p>I am trying to check for an overlap of two rectangles using libgdx, and the function is returning true when, unless I've completely lost the plot, there is no overlap at all:</p>
  
  <pre><code>        for(Block b:this.collidableBlocks)
          {
              if(b==null) continue;
              Rectangle r = Bullet.this.getBounds();
              if(r.overlaps(b.getBounds()));
              {
                  Bullet.this.destroy();
                  break;
              }
          }
  </code></pre>
  
  <p>When I break in the debugger, the bounds of r are:
  x = 174.0
  y = 30.25068
  w = 0.3
  h = 0.05</p>
  
  <p>and the bounds of b are:
  x = 0
  y = 0
  w = 1
  h = 1</p>
  
  <p>yes the .overlaps() function is returning true</p>
  
  <p>The code for .overlaps() is as follows:</p>
  
  <pre><code> public boolean overlaps (Rectangle r) {
      return x &lt; r.x + r.width &amp;&amp; x + width &gt; r.x &amp;&amp; y &lt; r.y + r.height &amp;&amp; y + height &gt; r.y;
  }
  </code></pre>