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 P.inside(const r circle point& p)<br />

bool P.on boundary(const r circle point& p)<br />

bool P.outside(const r circle point& p)<br />

bool P.contains(const r circle point& p)<br />

double P.approximate area( )<br />

returns true if p lies to the left of P , i.e., side of (p)==<br />

+1.<br />

returns true if p lies on P , i.e., side of (p) == 0.<br />

returns true if p lies to the right of P , i.e.,<br />

side of (p) == −1.<br />

returns true if p lies to the left of or on P .<br />

approximates the (oriented) area of the bounded region<br />

of P .<br />

Precondition: P.kind( ) is not full.<br />

Iterations Macros<br />

forall vertices(v, P ) { “the vertices of P are successively assigned to r circle point v” }<br />

forall segments(s, P ) { “the edges of P are successively assigned to the segment s” }

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

Saved successfully!

Ooh no, something went wrong!