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.

list cs.intersection(const r circle segment& cs2 )<br />

computes cs ∩ cs2 (ordered lexicographically).<br />

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

computes the squared Euclidean distance between cs<br />

and p.<br />

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

computes the euclidean distance between cs and p.<br />

real line cs.tangent at(const r circle point& p)<br />

computes the tanget to cs at p.<br />

Precondition: cs is not trivial.<br />

double cs.approximate area( )<br />

computes the (oriented) area enclosed by the convex<br />

hull of cs.<br />

void<br />

cs.compute bounding box(real& xmin, real& ymin, real& xmax,<br />

real& ymax)<br />

computes a tight bounding box for cs.<br />

int compare tangent slopes(const r circle segment& cs1 ,<br />

const r circle segment& cs2 ,<br />

const r circle point& p)<br />

compares the slopes of the tangents to cs1 and cs2 in<br />

the point p.<br />

Precondition: cs1 and cs2 contain p.<br />

We provide the operator > for reading cs from a window (see real window.h).

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

Saved successfully!

Ooh no, something went wrong!