Rotation support for rectangles.