191 |
|
/* Convert 1-dimensional random variable to N-dimensional */ |
192 |
|
extern void SDmultiSamp(double t[], int n, double randX); |
193 |
|
|
194 |
– |
/* Map a [0,1]^2 square to a unit radius disk */ |
195 |
– |
extern void SDsquare2disk(double ds[2], double seedx, double seedy); |
196 |
– |
|
197 |
– |
/* Map point on unit disk to a unit square in [0,1]^2 range */ |
198 |
– |
extern void SDdisk2square(double sq[2], double diskx, double disky); |
199 |
– |
|
194 |
|
/***************************************************************** |
195 |
|
* The calls below are the ones most applications require. |
196 |
|
* All directions are assumed to be unit vectors. |