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.

int compare by angle(const real point& a, const real point& b,<br />

const real point& c, const real point& d)<br />

compares vectors b−a and d−c by angle (more efficient<br />

than calling compare by angle(b − a, d − x) on vectors).<br />

bool affinely independent(const array& A)<br />

decides whether the points in A are affinely independent.<br />

bool contained in simplex(const array& A, const real point& p)<br />

determines whether p is contained in the simplex<br />

spanned by the points in A. A may consist of up to<br />

3 points.<br />

Precondition: <strong>The</strong> points in A are affinely independent.<br />

bool contained in affine hull(const array& A, const real point& p)<br />

determines whether p is contained in the affine hull of<br />

the points in A.

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

Saved successfully!

Ooh no, something went wrong!