Companion object for the Rect.RectGen class.
Factory method for constructing RectGen class, a general case of a Rect.