title: How to rotate a Rect object in Android
body: <p>Ok so i have created a Rectangle on a canvas using this code</p>
  
  <pre><code>Rect r =new Rect((point.x - rectWidth / 2), (point.y - rectHeight / 2),(point.x-rectWidth / 2),(point.y + rectHeight / 2));
  </code></pre>
  
  <p>point being the center of the rectangle determined by a touch event. But now I want to be able to rotate this rectangle. Is there any code or method that will allow the user to rotate a shape about its center. I am also interested in getting the corner points of such a rectangle. Any help is appreciated. Thanks. </p>