title: SFML's 'intersects' function always returns 'true'
body: <p>I want to know if two rectangles are overlapping each other using <code>SFML</code>. Here is my code :</p>
  
  <pre><code>if (ball.getLocalBounds().intersects(paddle.getLocalBounds()))
  {
      //perform action
  
  }
  </code></pre>
  
  <p>The code would perform the action given that the two rectangles are overlapping each other. But somehow, it always returns <code>true</code> in every single cases, even in cases where the two rectangles are not even intersecting each other, such as this :</p>
  
  <p><a href="https://i.stack.imgur.com/gCGLN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gCGLN.png" alt=""></a></p>
  
  <p>As can be seen from the picture, the left paddle and the ball are not even close to each other, but the console is still saying that they're overlapping each other. What is happening here and how do you fix this ?</p>
  
  <p>edit: I tried making a test project with just enough code to reproduce the problem. As from the position of the two rectangles, we can see that they are definitely not intersecting with each other. However, it still says that they are overlapping each other.</p>
  
  <pre><code>#include &lt;SFML\Graphics.hpp&gt;
  #include &lt;iostream&gt;
  
  using namespace std;
  using namespace sf;
  
  int main()
  {
  
  RenderWindow window(VideoMode(800, 600), "Test", Style::Close);
  
  RectangleShape r1 = RectangleShape(Vector2f(100, 100));
  RectangleShape r2 = RectangleShape(Vector2f(100, 100));
  
  r1.setPosition(0, 0);
  r2.setPosition(700, 500);
  
  while (window.isOpen())
  {
      Event e;
  
      while (window.pollEvent(e))
      {
          if (e.type == Event::Closed)
          {
              window.close();
          }
      }
  
      cout &lt;&lt; r1.getLocalBounds().intersects(r2.getLocalBounds()) &lt;&lt; endl;
  
      window.clear();
  
      window.draw(r1);
      window.draw(r2);
  
      window.display();
  }
  
  return 0;
  </code></pre>
  
  <p>}</p>