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.

circle polygon P.to r circle polygon( )<br />

bool P.is rat gen polygon( )<br />

rat gen polygon P.to rat gen polygon( )<br />

converts P to an r circle polygon.<br />

Precondition: is r circle polygon is true.<br />

returns whether P can be converted to a rat polygon.<br />

converts P to a rat gen polygon.<br />

Precondition: is rat gen polygon is true.<br />

gen polygon P.to float( ) computes a floating point approximation of P with<br />

straight line segments.<br />

Precondition: is rat gen polygon is true.<br />

bool P.is rat circle( ) returns whether P can be converted to a rat circle.<br />

rat circle P.to rat circle( ) converts P to a rat circle.<br />

Precondition: is rat circle is true.<br />

All functions below assume that P is weakly simple.<br />

int P.orientation( ) returns the orientation of P .<br />

int P.side of(const r circle point& p)<br />

region kind P.region of(const r circle point& p)<br />

bool 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 />

returns +1 if p lies to the left of P , 0 if p lies on P ,<br />

and −1 if p lies to the right of P .<br />

returns BOUNDED REGION if p lies in the bounded<br />

region of P , returns ON REGION if p lies on P , and<br />

returns UNBOUNDED REGION if p lies in the unbounded<br />

region. <strong>The</strong> bounded region of the full polygon<br />

is the entire plane.<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 .

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

Saved successfully!

Ooh no, something went wrong!