Public Member Functions

 SimplexNoiseGenerator ()
 
 SimplexNoiseGenerator (string seed)
 
 SimplexNoiseGenerator (byte[] seed)
 
 SimplexNoiseGenerator (ulong seed)
 
 SimplexNoiseGenerator (int[] seed)
 
void SetSeed (ulong seed)
 
void SetSeed (byte[] seedBytes)
 
void TimeOffset (float time)
 Time should be a value from 0->1. More...
 
void SeedTime (int time)
 Puts the given time in the last sector of the seed. More...
 
string GetSeed ()
 
float coherentNoise (float x, float y, float z)
 
float coherentNoise (float x, float y, float z, int octaves)
 
float coherentNoise (float x, float y, float z, int octaves, int multiplier)
 
float coherentNoise (float x, float y, float z, int octaves, int multiplier, float amplitude)
 
float coherentNoise (float x, float y, float z, int octaves, int multiplier, float amplitude, float lacunarity)
 
float coherentNoise (float x, float y, float z, int octaves, int multiplier, float amplitude, float lacunarity, float persistence)
 
int getDensity (Vector3 loc)
 
float timedNoise (float x, float y, float z)
 
float noise (float x, float y, float z)
 

Public Attributes

float CenterX
 
float CenterZ
 
const float TimeRadius =40f
 

Private Member Functions

byte[] GetBytes (ulong value)
 Little endian. More...
 
float kay (int a)
 
int shuffle (int i, int j, int k)
 
int b (int i, int j, int k, int B)
 
int b (int N, int B)
 
int fastfloor (float n)
 

Private Attributes

const float TwoPi =(float)System.Math.PI*2f
 
int[] A = new int[3]
 
float s
 
float u
 
float v
 
float w
 
int i
 
int j
 
int k
 
float onethird = 0.333333333f
 
float onesixth = 0.166666667f
 
int[] T
 

Constructor & Destructor Documentation

Loonim.SimplexNoiseGenerator.SimplexNoiseGenerator ( )
inline
Loonim.SimplexNoiseGenerator.SimplexNoiseGenerator ( string  seed)
inline
Loonim.SimplexNoiseGenerator.SimplexNoiseGenerator ( byte[]  seed)
inline
Loonim.SimplexNoiseGenerator.SimplexNoiseGenerator ( ulong  seed)
inline
Loonim.SimplexNoiseGenerator.SimplexNoiseGenerator ( int[]  seed)
inline

Member Function Documentation

int Loonim.SimplexNoiseGenerator.b ( int  i,
int  j,
int  k,
int  B 
)
inlineprivate
int Loonim.SimplexNoiseGenerator.b ( int  N,
int  B 
)
inlineprivate
float Loonim.SimplexNoiseGenerator.coherentNoise ( float  x,
float  y,
float  z 
)
inline
float Loonim.SimplexNoiseGenerator.coherentNoise ( float  x,
float  y,
float  z,
int  octaves 
)
inline
float Loonim.SimplexNoiseGenerator.coherentNoise ( float  x,
float  y,
float  z,
int  octaves,
int  multiplier 
)
inline
float Loonim.SimplexNoiseGenerator.coherentNoise ( float  x,
float  y,
float  z,
int  octaves,
int  multiplier,
float  amplitude 
)
inline
float Loonim.SimplexNoiseGenerator.coherentNoise ( float  x,
float  y,
float  z,
int  octaves,
int  multiplier,
float  amplitude,
float  lacunarity 
)
inline
float Loonim.SimplexNoiseGenerator.coherentNoise ( float  x,
float  y,
float  z,
int  octaves,
int  multiplier,
float  amplitude,
float  lacunarity,
float  persistence 
)
inline
int Loonim.SimplexNoiseGenerator.fastfloor ( float  n)
inlineprivate
byte [] Loonim.SimplexNoiseGenerator.GetBytes ( ulong  value)
inlineprivate

Little endian.

int Loonim.SimplexNoiseGenerator.getDensity ( Vector3  loc)
inline
string Loonim.SimplexNoiseGenerator.GetSeed ( )
inline
float Loonim.SimplexNoiseGenerator.kay ( int  a)
inlineprivate
float Loonim.SimplexNoiseGenerator.noise ( float  x,
float  y,
float  z 
)
inline
void Loonim.SimplexNoiseGenerator.SeedTime ( int  time)
inline

Puts the given time in the last sector of the seed.

void Loonim.SimplexNoiseGenerator.SetSeed ( ulong  seed)
inline
void Loonim.SimplexNoiseGenerator.SetSeed ( byte[]  seedBytes)
inline
int Loonim.SimplexNoiseGenerator.shuffle ( int  i,
int  j,
int  k 
)
inlineprivate
float Loonim.SimplexNoiseGenerator.timedNoise ( float  x,
float  y,
float  z 
)
inline
void Loonim.SimplexNoiseGenerator.TimeOffset ( float  time)
inline

Time should be a value from 0->1.

Member Data Documentation

int [] Loonim.SimplexNoiseGenerator.A = new int[3]
private
float Loonim.SimplexNoiseGenerator.CenterX
float Loonim.SimplexNoiseGenerator.CenterZ
int Loonim.SimplexNoiseGenerator.i
private
int Loonim.SimplexNoiseGenerator.j
private
int Loonim.SimplexNoiseGenerator.k
private
float Loonim.SimplexNoiseGenerator.onesixth = 0.166666667f
private
float Loonim.SimplexNoiseGenerator.onethird = 0.333333333f
private
float Loonim.SimplexNoiseGenerator.s
private
int [] Loonim.SimplexNoiseGenerator.T
private
const float Loonim.SimplexNoiseGenerator.TimeRadius =40f
const float Loonim.SimplexNoiseGenerator.TwoPi =(float)System.Math.PI*2f
private
float Loonim.SimplexNoiseGenerator.u
private
float Loonim.SimplexNoiseGenerator.v
private
float Loonim.SimplexNoiseGenerator.w
private