XII Release 0.1.0
Loading...
Searching...
No Matches
xiiSimdRandom Struct Reference

Noise based random number generator that generates 4 pseudo random values at once. More...

#include <SimdRandom.h>

Static Public Member Functions

static xiiSimdVec4u UInt (const xiiSimdVec4i &vPosition, const xiiSimdVec4u &vSeed=xiiSimdVec4u::MakeZero())
 Returns 4 random uint32 values at position, ie. ranging from 0 to (2 ^ 32) - 1.
 
static xiiSimdVec4f FloatZeroToOne (const xiiSimdVec4i &vPosition, const xiiSimdVec4u &vSeed=xiiSimdVec4u::MakeZero())
 Returns 4 random float values in range [0.0 ; 1.0], ie. including zero and one.
 
static xiiSimdVec4f FloatMinMax (const xiiSimdVec4i &vPosition, const xiiSimdVec4f &vMinValue, const xiiSimdVec4f &vMaxValue, const xiiSimdVec4u &vSeed=xiiSimdVec4u::MakeZero())
 Returns 4 random float values in range [fMinValue ; fMaxValue].
 

Detailed Description

Noise based random number generator that generates 4 pseudo random values at once.

Does not keep any internal state but relies on the user to provide different positions for each call. The seed parameter can be used to further alter the noise function.


The documentation for this struct was generated from the following files: