g.rect.fromEllipse(ellipse)

Returns a new rectangle object from the given ellipse.