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<br />

void<br />

W.draw bezier arrow(const list& C, int n, color c = window :: fgcol)<br />

draws the bezier curve with control polygon C by a polyline<br />

with n points, the last segment is drawn as an arrow.<br />

W.draw spline arrow(const list& L, int n, color c = window :: fgcol)<br />

draws a spline curve through the points of L. Each segment<br />

is approximated by a polyline with n points. <strong>The</strong><br />

last segment is drawn as an arrow.<br />

point W.draw arrow head(const point& p, double dir, color c = window :: fgcol)<br />

3.4.7 Drawing circles<br />

draws an arrow head at position p pointing to direction<br />

dir, where dir is an angle from [0, 2π].<br />

void<br />

void<br />

void<br />

void<br />

void<br />

W.draw circle(double x, double y, double r, color c = window :: fgcol)<br />

draws the circle with center (x, y) and radius r.<br />

W.draw circle(const point& p, double r, color c = window :: fgcol)<br />

draws the circle with center p and radius r.<br />

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

draws circle C.<br />

W.draw ellipse(double x, double y, double r 1 , double r 2 , color c = window :: fgcol)<br />

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

W.draw ellipse(const point& p, double r 1 , double r 2 , color c = window :: fgcol)<br />

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

3.4.8 Drawing discs<br />

void<br />

void<br />

void<br />

void<br />

void<br />

void<br />

W.draw disc(double x, double y, double r, color c = window :: fgcol)<br />

draws a filled circle with center (x, y) and radius r.<br />

W.draw disc(const point& p, double r, color c = window :: fgcol)<br />

draws a filled circle with center p and radius r.<br />

W.draw disc(const circle& C, color c = window :: fgcol)<br />

draws filled circle C.<br />

W.draw filled circle(double x, double y, double r, color c = window :: fgcol)<br />

draws a filled circle with center (x, y) and radius r.<br />

W.draw filled circle(const point& p, double r, color c = window :: fgcol)<br />

draws a filled circle with center p and radius r.<br />

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

draws filled circle C.

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

Saved successfully!

Ooh no, something went wrong!