ofRectangle to and from CGRect