LayerProcGen v0.1.0
Layer-based infinite procedural generation
Loading...
Searching...
No Matches
RandomHash

Public Member Functions

uint GetHash (byte[] buf)
 
uint GetHash (int a)
 
uint GetHash (int a, int b)
 
uint GetHash (int a, int b, int c)
 
uint GetHash (int a, int b, int c, int d)
 
uint GetHash (params int[] buf)
 
uint GetHash (params uint[] buf)
 
uint GetHash (uint a)
 
uint GetHash (uint a, uint b)
 
uint GetHash (uint a, uint b, uint c)
 
uint GetHash (uint a, uint b, uint c, uint d)
 
int GetInt (int data)
 
int GetInt (int x, int y)
 
int GetInt (int x, int y, int z)
 
int GetInt (params int[] data)
 
 RandomHash (int seed)
 
 RandomHash (uint seed)
 
float Range (float min, float max, int data)
 
float Range (float min, float max, int x, int y)
 
float Range (float min, float max, int x, int y, int z)
 
float Range (float min, float max, params int[] data)
 
int Range (int min, int max, int data)
 
int Range (int min, int max, int x, int y)
 
int Range (int min, int max, int x, int y, int z)
 
int Range (int min, int max, params int[] data)
 
float Value (int data)
 
float Value (int x, int y)
 
float Value (int x, int y, int z)
 
float Value (params int[] data)
 

Static Public Member Functions

static uint CalcSubHash (uint value, byte[] buf, int index)
 
static uint CalcSubHash (uint value, uint readValue)
 
static uint RotateLeft (uint value, int count)
 

Public Attributes

uint seed
 

Static Public Attributes

const uint Prime1 = 2654435761U
 
const uint Prime2 = 2246822519U
 
const uint Prime3 = 3266489917U
 
const uint Prime4 = 668265263U
 
const uint Prime5 = 374761393U