![]() |
Public API Reference |
Random number generator that generates random vector with spherical distribution. More...
#include <csutil/floatrand.h>
Public Member Functions | |
| csRandomVectorGen () | |
| Initialize the random number generator using current time(). | |
| csRandomVectorGen (unsigned int seed) | |
| Initialize the random number generator using given seed. | |
| csVector3 | Get () |
| Get a random vector within unit sphere. | |
| void | Initialize () |
| Initialize the RNG using current time() as the seed value. | |
| void | Initialize (unsigned int new_seed) |
| Initialize the RNG using the supplied seed value. | |
Random number generator that generates random vector with spherical distribution.
Definition at line 91 of file floatrand.h.
| csRandomVectorGen::csRandomVectorGen | ( | ) | [inline] |
Initialize the random number generator using current time().
Definition at line 96 of file floatrand.h.
| csRandomVectorGen::csRandomVectorGen | ( | unsigned int | seed | ) | [inline] |
Initialize the random number generator using given seed.
Definition at line 100 of file floatrand.h.
| csVector3 csRandomVectorGen::Get | ( | ) | [inline] |
Get a random vector within unit sphere.
Definition at line 116 of file floatrand.h.
| void csRandomVectorGen::Initialize | ( | ) | [inline] |
Initialize the RNG using current time() as the seed value.
Definition at line 105 of file floatrand.h.
| void csRandomVectorGen::Initialize | ( | unsigned int | new_seed | ) | [inline] |
Initialize the RNG using the supplied seed value.
Definition at line 110 of file floatrand.h.