
上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:
