C# Class fCraft.PerlinNoise3D

Implementation of 3D Perlin Noise after Ken Perlin's reference implementation.
Datei anzeigen Open project: GlennMR/800craft

Public Methods

Method Description
Compute ( float x, float y, float z ) : float
InitNoiseFunctions ( [ rand ) : void
PerlinNoise3D ( [ rand ) : System

Private Methods

Method Description
Fade ( float t ) : float
Grad ( int hashCode, float x, float y, float z ) : float
Lerp ( float alpha, float a, float b ) : float
Noise ( float x, float y, float z ) : float

Method Details

Compute() public method

public Compute ( float x, float y, float z ) : float
x float
y float
z float
return float

InitNoiseFunctions() public method

public InitNoiseFunctions ( [ rand ) : void
rand [
return void

PerlinNoise3D() public method

public PerlinNoise3D ( [ rand ) : System
rand [
return System