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.

eal segment s.reverse( )<br />

returns s reversed.<br />

Non-Member Functions<br />

int orientation(const real segment& s, const real point& p)<br />

computes orientation(s.source(), s.target(), p).<br />

int cmp slopes(const real segment& s1 , const real segment& s2 )<br />

returns compare(slope(s 1 ), slope(s 2 )).<br />

int cmp segments at xcoord(const real segment& s1 , const real segment& s2 ,<br />

const real point& p)<br />

compares points l 1 ∩ v and l 2 ∩ v where l i is the line underlying<br />

segment s i and v is the vertical straight line passing<br />

through point p.<br />

bool parallel(const real segment& s1 , const real segment& s2 )<br />

returns true if s1 and s2 are parallel and false otherwise.

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

Saved successfully!

Ooh no, something went wrong!