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.

const rat point& p.to rat point( )<br />

converts p to a rat point.<br />

Precondition: is rat point returns true.<br />

r circle point p.translate(rational dx, rational dy)<br />

r circle point p.translate(const rat vector& v)<br />

r circle point p + const rat vector& v<br />

r circle point p − const rat vector& v<br />

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

returns p translated by vector v.<br />

returns p translated by vector v.<br />

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

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

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

r circle point p.reflect(const rat point& p)<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 />

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

through p and q.<br />

returns p reflected across point p.<br />

bool<br />

bool<br />

r circle point :: intersection(const rat circle& c, const rat line& l, tag which,<br />

real point& p)<br />

checks whether (c, l, which) is a valid triple, if so the<br />

corresponding point is assigned to the real point p.<br />

r circle point :: intersection(const rat circle& c, const rat line& l, tag which,<br />

r circle point& p)<br />

same as above, except for the fact that p is of type<br />

r circle point.

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

Saved successfully!

Ooh no, something went wrong!