Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Actually if you have a Rect you can also call the member data .width and .height. Pretty much simple and straight forward:

Rect rect;

rect.width;
rect.height;

In case of RotatedRect you just follow what Steven and Laurent pointed you.