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.

void random points on unit circle(int n, list& L, int C = 1000000)<br />

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

void random point on sphere(POINT & p, int R)<br />

same as random point near sphere.<br />

void random points on sphere(int n, int R, list& L)<br />

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

void random point on unit sphere(POINT & p, int D = (1 ≪ 30) − 1)<br />

same as random point near unit sphere.<br />

void random points on unit sphere(int n, int D, list& L)<br />

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

void random points on unit sphere(int n, list& L)<br />

returns a list L of n points . . . . <strong>The</strong> default value of<br />

D is used.<br />

void random point on segment(POINT & p, SEGMENT s)<br />

generates a random point on s.<br />

void random points on segment(SEGMENT s, int n, list& L)<br />

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

void points on segment(SEGMENT s, int n, list& L)<br />

generates a list L of n equally spaced points on s.<br />

void<br />

random point on paraboloid(POINT & p, int maxc)<br />

returns a point (x, y, z) with x and y random integers<br />

in the range [−maxc .. maxc], and z = 0.004 ∗ (x ∗ x +<br />

y ∗y)−1.25∗maxc. <strong>The</strong> function does not make sense<br />

in 2d.<br />

void random points on paraboloid(int n, int maxc, list& L)<br />

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

void lattice points(int n, int maxc, list& L)<br />

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

have integer coordinates id/maxc for an appropriately<br />

chosen d and −maxc/d ≤ i ≤ maxc/d.<br />

void random points on diagonal(int n, int maxc, list& L)<br />

generates n points on the diagonal whose coordinates<br />

are random integer in the range from −maxc to maxc.

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

Saved successfully!

Ooh no, something went wrong!