title: Find corners of a rotated rectangle given its center point and rotation
body: <p>Can someone give me an algorithm that finds the position of all four corners of a rectangle if I know its center point(in global coordinate space), width and height, and its rotation around that center point?</p>
  
  <p>clarification edit:
  The width and height I am referring to is the length of the sides of the rectangle.</p>