|
BRL-CAD
|
Functions | |
| size_t | bg_sph_sample (point_t *pnts, size_t cnt, const point_t center, const fastf_t radius, bn_numgen n) |
| Routines for the generation of pseudo-random and quasi-random points. More... | |
| size_t bg_sph_sample | ( | point_t * | pnts, |
| size_t | cnt, | ||
| const point_t | center, | ||
| const fastf_t | radius, | ||
| bn_numgen | n | ||
| ) |
Routines for the generation of pseudo-random and quasi-random points.
Generate points on a sphere per Marsaglia (1972).
The return code is the number of points generated.
The user is responsible for selecting the numerical generator used to supply pseudo or quasi-random numbers to bg_sph_sample - different types of inputs may be needed depending on the application.