HDK
|
#include <UT_BRJ.h>
Public Types | |
template<typename T > | |
using | noiseVector = ut_BRJNoiseVector< DIM, T > |
using | uvec = ut_BRJNoiseVector< DIM, uint > |
using | fvec = ut_BRJNoiseVector< DIM, float > |
Public Member Functions | |
UT_BRJ ()=default | |
UT_BRJ (uint seed, uint count=0) | |
Initialize using a seed and an optional count. More... | |
void | setSeed (uint seed, uint count=0) |
Set the seed (and possibly the sequence number) More... | |
SYS_FORCE_INLINE void | reset (uint count=0) |
Reset the sequence of numbers (possibly with an offset) More... | |
SYS_FORCE_INLINE fvec | fx () |
Get the float value and advance the state. More... | |
SYS_FORCE_INLINE fvec | operator() () |
Convenience operator to get the float value and advance the state. More... | |
Static Public Member Functions | |
static uvec | ux (uint seed, uint index) |
Stateless computation of the random number. More... | |
using UT_BRJ< DIM >::fvec = ut_BRJNoiseVector<DIM, float> |
using UT_BRJ< DIM >::noiseVector = ut_BRJNoiseVector<DIM, T> |
using UT_BRJ< DIM >::uvec = ut_BRJNoiseVector<DIM, uint> |
Default constructor doesn't initialize any data - you need to call setSeed() before using.
|
inline |
|
inline |
|
inline |
Set the seed (and possibly the sequence number)
Stateless computation of the random number.