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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

list P.intersection(const rat line& l)<br />

r circle gen polygon P.translate(rational dx, rational dy)<br />

r circle gen polygon P.translate(const rat vector& v)<br />

r circle gen polygon P + const rat vector& v<br />

returns the list of all proper intersections between l<br />

and the boundary of P .<br />

returns P translated by vector (dx, dy).<br />

returns P translated by vector v.<br />

returns P translated by vector v.<br />

r circle gen polygon P − const rat vector& v<br />

returns P translated by vector −v.<br />

r circle gen polygon P.rotate90(const rat point& q, int i = 1)<br />

returns P rotated about q by an angle of i×90 degrees.<br />

If i > 0 the rotation is counter-clockwise otherwise it<br />

is clockwise.<br />

r circle gen polygon P.reflect(const rat point& p, const rat point& q)<br />

r circle gen polygon P.reflect(const rat point& p)<br />

real P.sqr dist(const real point& p)<br />

real P.dist(const real point& p)<br />

r circle gen polygon P.complement( )<br />

returns P reflected across the straight line passing<br />

through p and q.<br />

returns P reflected across point p.<br />

computes the squared Euclidean distance between the<br />

boundary of P and p. (If P is zero, the result is zero.)<br />

computes the Euclidean distance between the boundary<br />

of P and p. (If P is zero, the result is zero.)<br />

returns the complement of P .<br />

r circle gen polygon P.eliminate cocircular vertices( )<br />

bool P.is r circle polygon( )<br />

returns a copy of P without cocircular vertices.<br />

checks if the boundary of P consists of at most one<br />

chain.

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

Saved successfully!

Ooh no, something went wrong!