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.

circle C + const vector& v returns C translated by vector v.<br />

circle C − const vector& v returns C translated by vector −v.<br />

circle C.rotate(const point& q, double a)<br />

returns C rotated about point q by angle a.<br />

circle C.rotate(double a) returns C rotated about the origin by angle a.<br />

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

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

returns C rotated about q by an angle of i × 90<br />

degrees. If i > 0 the rotation is counter-clockwise<br />

otherwise it is clockwise.<br />

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

through p and q.<br />

circle C.reflect(const point& p) returns C reflected across point p.<br />

circle C.reverse( ) returns C reversed.<br />

list C.intersection(const circle& D)<br />

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

list C.intersection(const segment& s)<br />

segment C.left tangent(const point& p)<br />

segment C.right tangent(const point& p)<br />

double C.distance(const point& p)<br />

returns C ∩ D as a list of points.<br />

returns C ∩ l as a list of (zero, one, or two) points<br />

sorted along l.<br />

returns C ∩ s as a list of (zero, one, or two) points<br />

sorted along s.<br />

returns the line segment starting in p tangent to<br />

C and left of segment [p, C.center()].<br />

returns the line segment starting in p tangent to<br />

C and right of segment [p, C.center()].<br />

returns the distance between C and p.<br />

double C.sqr dist(const point& p) returns the squared distance between C and p.<br />

double C.distance(const line& l) returns the distance between C and l.

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

Saved successfully!

Ooh no, something went wrong!