BRL-CAD
|
Go to the source code of this file.
Macros | |
#define | BN_RAND_TABSIZE 4096 |
#define | BN_RAND_TABMASK 0xfff |
#define | BN_RANDSEED(_i, _seed) _i = ((unsigned)_seed) % BN_RAND_TABSIZE |
#define | BN_RANDOM(_i) bn_rand_table[ _i = (_i+1) % BN_RAND_TABSIZE ] |
#define | BN_RANDHALF(_i) (bn_rand_table[ _i = (_i+1) % BN_RAND_TABSIZE ]-0.5) |
#define | BN_RANDHALF_INIT(_p) _p = bn_rand_table |
#define | BN_RANDHALFTABSIZE 16535 |
#define | bn_rand_half(_p) |
#define | bn_rand_init(_p, _seed) |
#define | bn_rand0to1(_q) (bn_rand_half(_q)+0.5) |
#define | BN_SINTABSIZE 2048 |
#define | bn_tab_sin(_a) |
Functions | |
void | bn_mathtab_constant (void) |
For benchmarking purposes, make the random number table predictable. Setting to all zeros keeps dithered values at their original values. More... | |
void | bn_rand_sph_sample (point_t sample, const point_t center, const fastf_t radius) |
Generate a sample point on a sphere per Marsaglia (1972). More... | |
Variables | |
const float | bn_rand_table [BN_RAND_TABSIZE] |
int | bn_randhalftabsize |
float | bn_rand_halftab [BN_RANDHALFTABSIZE] |
const float | bn_sin_table [BN_SINTABSIZE] |