Apply rotation on the bounding box.