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.

ool cs.contains(const r circle point& p)<br />

returns true iff cs contains p.<br />

bool cs.overlaps(const r circle segment& cs2 )<br />

bool cs.wedge contains(const real point& p)<br />

returns true iff cs (properly) overlaps cs2 .<br />

returns true iff the (closed) wedge induced by cs contains<br />

p. This wedge is spanned by the rays which<br />

start at the center and pass through source and target.<br />

(Note that p belongs to cs iff p is on the supporting<br />

circle and the wedge contains p.)<br />

r circle segment cs.reverse( )<br />

returns the reversal of cs, i.e. source and target are<br />

swapped and the supporting circle is reversed.<br />

r circle segment cs.translate(rational dx, rational dy)<br />

r circle segment cs.translate(const rat vector& v)<br />

r circle segment cs + const rat vector& v<br />

r circle segment cs − const rat vector& v<br />

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

returns cs translated by vector v.<br />

returns cs translated by vector v.<br />

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

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

returns cs 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 segment cs.reflect(const rat point& p, const rat point& q)<br />

r circle segment cs.reflect(const rat point& p)<br />

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

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

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

through p and q.<br />

returns cs reflected across point p.<br />

computes cs ∩ l (ordered along l).<br />

as above.<br />

list cs.intersection(const rat circle& c)<br />

computes cs ∩ c (ordered lexicographically).

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

Saved successfully!

Ooh no, something went wrong!