31.01.2014 Views

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

void W.draw filled ellipse(double x, double y, double r 1 , double r 2 ,<br />

color c = window :: fgcol)<br />

draws a filled ellipse with center (x, y) and radii r 1 and r 2 .<br />

void W.draw filled ellipse(const point& p, double r 1 , double r 2 ,<br />

color c = window :: fgcol)<br />

draws a filled ellipse with center p and radii r 1 and r 2 .<br />

3.4.9 Drawing polygons<br />

void<br />

void<br />

void<br />

void<br />

void<br />

void<br />

void<br />

void<br />

void<br />

void<br />

void<br />

W.draw polyline(const list& lp, color c = window :: fgcol)<br />

draws a polyline with vertex sequence lp.<br />

W.draw polyline(int n, double ∗ xc, double ∗ yc, color c = window :: fgcol)<br />

draws a polyline with vertex sequence<br />

(xc[0], yc[0]), . . . , (xc[n − 1], yc[n − 1]).<br />

W.draw polygon(const list& lp, color c = window :: fgcol)<br />

draws the polygon with vertex sequence lp.<br />

W.draw oriented polygon(const list& lp, color c = window :: fgcol)<br />

draws the polygon with vertex sequence lp and indicates<br />

the orientation by an arrow.<br />

W.draw polygon(const polygon& P, color c = window :: fgcol)<br />

draws polygon P .<br />

W.draw oriented polygon(const polygon& P, color c = window :: fgcol)<br />

draws polygon P and indicates the orientation by an arrow.<br />

W.draw filled polygon(const list& lp, color c = window :: fgcol)<br />

draws the filled polygon with vertex sequence lp.<br />

W.draw filled polygon(const polygon& P, color c = window :: fgcol)<br />

draws filled polygon P .<br />

W.draw polygon(const gen polygon& P, color c = window :: fgcol)<br />

draws polygon P .<br />

W.draw oriented polygon(const gen polygon& P, color c = window :: fgcol)<br />

draws polygon P and indicates the orientation by an arrow.<br />

W.draw filled polygon(const gen polygon& P, color c = window :: fgcol)<br />

draws filled polygon P .

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!