title: Detecting collision of two sprites that can rotate
body: <p>I have a problem with collision detection in a 2D Java game.</p>
  
  <p>Normally, what I would do is create a getBounds() method for an object that can collide with other objects. This method would return a <code>new Rectangle(x,y,width,height)</code>, where <code>x</code> and <code>y</code> are the coordinates for the top-left corner of the sprite, and <code>width</code> and <code>height</code> are the width and height of the sprite.</p>
  
  <p>But in the game I'm currently working on, there is a "tank" controlled by the user. The sprite of this tank <strong>rotates</strong> as long as the player holds one of the left or right arrow buttons. In other words, it can rotate to any angle. The tank's sprite is a rectangle.</p>
  
  <p>So I can't simply do what I always do in this case.</p>
  
  <p>How can I detect collision with this kind of sprite?
  Thanks</p>