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

Copyright (c) Theophilus Eriata. All Rights Reserved. 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

Copyright (c) Theophilus Eriata. All Rights Reserved.

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.

Member Function Documentation

◆ UInt()

XII_FORCE_INLINE xiiSimdVec4u xiiSimdRandom::UInt ( const xiiSimdVec4i & vPosition,
const xiiSimdVec4u & vSeed = xiiSimdVec4u::MakeZero() )
static

Returns 4 random uint32 values at position, ie. ranging from 0 to (2 ^ 32) - 1.

Copyright (c) Theophilus Eriata. All Rights Reserved.


The documentation for this struct was generated from the following files:
  • /home/runner/work/XII/XII/Source/Engine/Foundation/SimdMath/SimdRandom.h
  • /home/runner/work/XII/XII/Source/Engine/Foundation/SimdMath/Implementation/SimdRandom_inl.h