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.

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

returns r rotated about p by an angle of i × 90<br />

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

otherwise it is clockwise.<br />

rectangle r.rotate90(int i = 1) returns r rotated by an angle of i × 90 degrees<br />

about the origin.<br />

rectangle r.reflect(const point& p) returns r reflected across p .<br />

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

bool<br />

returns r ∩ s .<br />

r.clip(const segment& t, segment& inter)<br />

clips t on r and returns the result in inter.<br />

bool<br />

bool<br />

r.clip(const line& l, segment& inter)<br />

clips l on r and returns the result in inter.<br />

r.clip(const ray& ry, segment& inter)<br />

clips ry on r and returns the result in inter.<br />

bool r.difference(const rectangle& q, list& L)<br />

returns true iff the difference of r and q is not<br />

empty, and false otherwise. <strong>The</strong> difference L is<br />

returned as a partition into rectangles.<br />

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

returns r ∩ l.<br />

list r.intersection(const rectangle& s)<br />

returns r ∩ s.<br />

bool r.do intersect(const rectangle& b)<br />

returns true iff r and b intersect, false otherwise.<br />

double r.area( ) returns the area of r.

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

Saved successfully!

Ooh no, something went wrong!