const function: Rectangle out_rectangle (void)Returns the
Rectanglethat surrounds theEllipse.Ellipse e(origin, 3, 4, 45, 30, 17); e.shift(1, -1, 2); Rectangle r = e.out_rectangle(); r.filldraw(black, gray); e.unfilldraw(black);
![]()
Fig. 172.
const function: Rectangle in_rectangle (void)Returns the
Rectangleenclosed within theEllipse.Rectangle r = e.in_rectangle(); e.filldraw(black, gray); r.unfilldraw(black);
![]()
Fig. 173.
const function: Rectangle draw_out_rectangle ([const Color& ddraw_color = *Colors::default_color, [string ddashed = "", [string ppen = "", [Picture& picture = current_picture]]]])Draws the
Rectanglethat surrounds theEllipse. The arguments are like those ofPath::draw(). The return value is the surroundingRectangle. See Path Reference; Drawing and Filling.Ellipse e(origin, 2.5, 5, 10, 12, 15.5); e.shift(-1, 1, 1); e.draw_out_rectangle(black, "evenly", "pencircle scaled .3mm");
![]()
Fig. 174.
const function: Rectangle draw_in_rectangle ([const Color& ddraw_color = *Colors::default_color, [string ddashed = "", [string ppen = "", [Picture& picture = current_picture]]]])Draws the
Rectangleenclosed within theEllipse. The arguments are like those ofPath::draw(). The return value is the enclosedRectangle. See Path Reference; Drawing and Filling.Ellipse e(origin, 3.5, 6, 10, 12, 15.5); e.shift(-1, 1, 1); e.draw_in_rectangle(black, "evenly", "pencircle scaled .3mm");
![]()
Fig. 175.