g.Rect.fromEllipse(ellipse)

Returns a new rectangle object from the given ellipse.