Added generic parameter to `RelativeRectangle`