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.reflect(const rat point& p)<br />

real P.sqr dist(const real point& p)<br />

real P.dist(const real point& p)<br />

returns P reflected across point p.<br />

computes the squared Euclidean distance between the<br />

boundary of P and p. (If P is zero, the result is zero.)<br />

computes the Euclidean distance between the boundary<br />

of P and p. (If P is zero, the result is zero.)<br />

r circle polygon P.complement( ) returns the complement of P .<br />

r circle polygon P.eliminate cocircular vertices( )<br />

returns a copy of P without cocircular vertices.<br />

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

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

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

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

straight line segments.<br />

Precondition: is rat 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 />

void<br />

P.bounding box(real& xmin, real& ymin, real& xmax, real& ymax)<br />

computes a tight bounding box for P .<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 />

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.

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

Saved successfully!

Ooh no, something went wrong!