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.

ool coplanar(const d3 rat point& a, const d3 rat point& b,<br />

const d3 rat point& c, const d3 rat point& d)<br />

returns true if points a, b, c, d are coplanar and false<br />

otherwise.<br />

int side of sphere(const d3 rat point& a, const d3 rat point& b,<br />

const d3 rat point& c, const d3 rat point& d,<br />

const d3 rat point& e)<br />

returns +1 (−1) if point e lies on the positive (negative)<br />

side of the oriented sphere through points a, b, c, and<br />

d, and 0 if e is contained in this sphere.<br />

int region of sphere(const d3 rat point& a, const d3 rat point& b,<br />

const d3 rat point& c, const d3 rat point& d,<br />

const d3 rat point& x)<br />

determines whether the point x lies inside (= +1),<br />

on (= 0), or outside (= −1) the sphere through<br />

points a, b, c, d, (equivalent to orientation(a, b, c, d) ∗<br />

side of sphere(a, b, c, d, x))<br />

Precondition: orientation(A) ≠ 0<br />

bool contained in simplex(const d3 rat point& a, const d3 rat point& b,<br />

const d3 rat point& c, const d3 rat point& d,<br />

const d3 rat point& x)<br />

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

spanned by the points a, b, c, d.<br />

Precondition: a, b, c, d are affinely independent.<br />

bool contained in simplex(const array& A, const d3 rat point& x)<br />

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

spanned by the points in A.<br />

Precondition: A must have size ≤ 4 and the points in<br />

A must be affinely independent.<br />

bool contained in affine hull(const list& L, const d3 rat point& x)<br />

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

the points in L.<br />

bool contained in affine hull(const array& A,<br />

const d3 rat point& x)<br />

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

the points in A.<br />

int affine rank(const array& L)<br />

int affine rank(const array& A)<br />

computes the affine rank of the points in L.<br />

computes the affine rank of the points in A.

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

Saved successfully!

Ooh no, something went wrong!