C# Class fCraft.MapGeneration.ImprovedNoise

Improved Perlin Noise implementation, based on reference Java implementation (Copyright 2002 Ken Perlin). Original: http://mrl.nyu.edu/~perlin/noise/
Exibir arquivo Open project: fragmer/fCraft Class Usage Examples

Public Methods

Method Description
ImprovedNoise ( Random random ) : System
ImprovedNoise ( [ random ) : System
Noise ( double x, double y, double z ) : double

Private Methods

Method Description
Fade ( double t ) : double
Grad ( int hash, double x, double y, double z ) : double
Lerp ( double t, double a, double b ) : double

Method Details

ImprovedNoise() public method

public ImprovedNoise ( Random random ) : System
random System.Random
return System

ImprovedNoise() public method

public ImprovedNoise ( [ random ) : System
random [
return System

Noise() public method

public Noise ( double x, double y, double z ) : double
x double
y double
z double
return double