The last useful class is a particular rectangle called RotatedRect. This class represents a rotated rectangle specified by a center point, the width and height of a rectangle, and the rotation angle in degrees:
RotatedRect(const Point2f& center, const Size2f& size, float angle);
An interesting function of this class is boundingBox. This function returns Rect, which contains the rotated rectangle: