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.

d3 rat point random d3 rat point in unit cube(int D = 16383)<br />

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

of the form i/D where i is a random integer in the range<br />

[0 .. D]. <strong>The</strong> default value of D is 2 14 − 1.<br />

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

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

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

d3 rat point random d3 rat point in ball(int R)<br />

as above, but the default value of D is used.<br />

returns a random point with integer coordinates in the<br />

ball with radius R centered at the origin.<br />

Precondition: R ≤ 2 14 .<br />

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

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

d3 rat point random d3 rat point in unit ball(int D = 16383)<br />

returns a point in the unit ball whose coordinates are<br />

random rationals of the form i/D where i is a random<br />

integer in the range [0 .. D]. <strong>The</strong> default value of D is<br />

2 14 − 1.<br />

void random d3 rat points in unit ball(int n, int D, list& L)<br />

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

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

d3 rat point random d3 rat point in disc(int R)<br />

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

D is used.<br />

returns a random point with integer x and y-<br />

coordinates in the disc with radius R centered at the<br />

origin. <strong>The</strong> z-coordinate is zero. In 2d this is the same<br />

as the function random rat point in ball.<br />

Precondition: R ≤ 2 14 .<br />

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

d3 rat point random d3 rat point on circle(int R)<br />

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

returns a random point with integer coordinates that<br />

lies close to the circle with radius R centered at the<br />

origin.<br />

void random d3 rat points on circle(int m, int R, 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!