As far as I know there is no a so simplified way to rotate rectangles. Do you want to rotate them around the Z axis (pan) only?