diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-03-30 06:03:57 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-03-30 08:04:20 +0400 |
commit | faf529d03689c0c472ee5895625cd2902915cfd6 (patch) | |
tree | 04416880217ef8cf4eec0fcd4a1a6b5e699d680d /source/blender/blenlib/BLI_rand.h | |
parent | a6e8137983d74ebff785ee134f635e1a08f58237 (diff) |
BLI_rand: Add BLI_rng_get_float_unit_v3, was static rayshade func
Diffstat (limited to 'source/blender/blenlib/BLI_rand.h')
-rw-r--r-- | source/blender/blenlib/BLI_rand.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_rand.h b/source/blender/blenlib/BLI_rand.h index 378beff3aa0..20d5f8d8abf 100644 --- a/source/blender/blenlib/BLI_rand.h +++ b/source/blender/blenlib/BLI_rand.h @@ -49,6 +49,7 @@ void BLI_rng_srandom(struct RNG *rng, unsigned int seed); int BLI_rng_get_int(struct RNG *rng); double BLI_rng_get_double(struct RNG *rng); float BLI_rng_get_float(struct RNG *rng); +void BLI_rng_get_float_unit_v3(struct RNG *rng, float v[3]); void BLI_rng_shuffle_array(struct RNG *rng, void *data, int elemSize, int numElems); /** Note that skipping is as slow as generating n numbers! */ @@ -62,6 +63,7 @@ int BLI_rand(void); /** Return a pseudo-random number N where 0.0f<=N<1.0f */ float BLI_frand(void); +void BLI_frand_unit_v3(float v[3]); /** Return a pseudo-random (hash) float from an integer value */ float BLI_hash_frand(unsigned int seed); |