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.

list P.simple parts( ) returns the simple parts of P as a list of<br />

simple polygons.<br />

list P.split into weakly simple parts( )<br />

splits P into a set of simple polygons whose<br />

union coincides with the inner points of P .<br />

(This function is experimental.)<br />

POLYGON P.complement( ) returns the complement of P .<br />

POLYGON P.eliminate colinear vertices( )<br />

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

<strong>The</strong> functions in the following group are only available for polygons. <strong>The</strong>y have no counterpart<br />

for rat polygons.<br />

polygon P.translate by angle(double alpha, double d)<br />

returns P translated in direction alpha by<br />

distance d.<br />

polygon<br />

P.rotate(const point& p, double alpha)<br />

returns P rotated by α degrees about p.<br />

polygon P.rotate(double alpha) returns P rotated by α degrees about the<br />

origin.<br />

double P.distance(const point& p)<br />

rat polygon P.to rational(int prec = −1)<br />

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

returns the Euclidean distance between P<br />

and p.<br />

returns a representation of P with rational<br />

coordinates with precision prec (cf. Section<br />

14.10).<br />

int P.side of(const POINT & p)<br />

region kind P.region of(const POINT & p)<br />

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

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

returns BOUNDED REGION if p lies<br />

in the bounded region of P , returns<br />

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

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!