![Building Computer Vision Projects with OpenCV 4 and C++](https://wfqqreader-1252317822.image.myqcloud.com/cover/798/36698798/b_36698798.jpg)
上QQ阅读APP看书,第一时间看更新
RotatedRect object type
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:
![](https://epubservercos.yuewen.com/4A4504/19470380901501106/epubprivate/OEBPS/Images/d2f5d439-a48d-48fe-bc63-8ee6486b8c27.png?sign=1739196408-LYz9vPXuKUln0z1OcZ4X3MhSMvyhDq0H-0-602761216f0e488a0931b90edc42ea33)