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 affinely independent(const list& L)<br />

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

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

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

bool inside 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 true if point e lies in the interior of the sphere<br />

through points a, b, c, and d, and false otherwise.<br />

bool outside 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 true if point e lies in the exterior of the sphere<br />

through points a, b, c, and d, and false otherwise.<br />

bool on 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 true if points a, b, c, d, and e lie on a common<br />

sphere.<br />

d3 rat point point on positive side(const d3 rat point& a, const d3 rat point& b,<br />

const d3 rat point& c)<br />

returns a point d with orientation(a, b, c, d) > 0.<br />

Point Generators<br />

d3 rat point<br />

random d3 rat point in cube(int maxc)<br />

returns a point whose coordinates are random integers<br />

in [−maxc .. maxc].<br />

void random d3 rat points in cube(int n, int maxc, list& L)<br />

returns a list L of n points . . . .<br />

d3 rat point<br />

random d3 rat point in square(int maxc)<br />

returns a point whose x and y-coordinates are random<br />

integers in [−maxc .. maxc]. <strong>The</strong> z-coordinate<br />

is zero. In 2d, this function is equivalent to<br />

random rat point in cube.<br />

void random d3 rat points in square(int n, int maxc, list& L)<br />

returns a list L of n points . . . .

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

Saved successfully!

Ooh no, something went wrong!