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.

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

ray r.reverse( ) returns r reversed.<br />

bool r.contains(const point& ) decides whether r contains p.<br />

bool r.contains(const segment& )<br />

Non-Member Functions<br />

int orientation(const ray& r, const point& p)<br />

decides whether r contains s.<br />

int cmp slopes(const ray& r1 , const ray& r2 )<br />

computes orientation(a, b, p), where a ≠ b and a<br />

and b appear in this order on ray r.<br />

returns compare(slope(r 1 ), slope(r 2 )) where<br />

slope(r i ) denotes the slope of the straight line<br />

underlying r i .

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

Saved successfully!

Ooh no, something went wrong!