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.

POINT SET<br />

POINT SET<br />

T (const list& S);<br />

creates a POINT SET T of the points in S. If S contains multiple<br />

occurrences of points only the last occurrence of each point is<br />

retained.<br />

T (const GRAPH & G);<br />

initializes T with a copy of G.<br />

Precondition: Is Delaunay(G) is true.<br />

3. Operations<br />

void T.init(const list& L)<br />

makes T a POINT SET for the points in S.<br />

POINT T.pos(node v) returns the position of node v.<br />

POINT T.pos source(edge e) returns the position of source(e).<br />

POINT T.pos target(edge e) returns the position of target(e).<br />

SEGMENT T.seg(edge e) returns the line segment corresponding to edge e<br />

(SEGMENT (T.pos source(e), T.pos target(e))).<br />

LINE T.supporting line(edge e) returns the supporting line of edge e<br />

(LINE(T.pos source(e), T.pos target(e))).<br />

int T.orientation(edge e, POINT p)<br />

returns orientation(T.seg(e), p).<br />

int T.dim( ) returns −1 if S is empty, returns 0 if S consists<br />

of only one point, returns 1 if S consists of at<br />

least two points and all points in S are collinear,<br />

and returns 2 otherwise.<br />

list T.points( ) returns S.<br />

bool<br />

T.get bounding box(POINT & lower left, POINT & upper right)<br />

returns the lower left and upper right corner of<br />

the bounding box of T . <strong>The</strong> operation returns<br />

true, if T is not empty, false otherwise.<br />

list T.get convex hull( ) returns the convex hull of T .<br />

edge T.get hull dart( ) returns a dart of the outer face of T (i.e., a dart<br />

of the convex hull).<br />

edge T.get hull edge( ) as above.<br />

bool T.is hull dart(edge e) returns true if e is a dart of the convex hull of<br />

T , i.e., a dart on the face cycle of the outer face.

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

Saved successfully!

Ooh no, something went wrong!