C# Class ManicDigger.MapTools.NoiseTools

Provides methods that assist when dealing with noise.
Show file Open project: henon/manic_digger Class Usage Examples

Public Methods

Method Description
FindNoise1 ( int n, int seed ) : double

Finds the next noise.

FindNoise2 ( double x, double y, int seed ) : double

Returns number between -1 and 1.

GetNoise ( double x, double y, double z ) : double

???

Interpolate ( double a, double b, double x ) : double

Interpolates using a, b and x.

InterpolateNoise3d ( double x, double y, double z, int chunksize ) : double[,,]

Returns the interpolated three-dimensional noise for the given values.

Noise ( double x, double y, int seed ) : double

Runs the Noise function for the given x, y and seed values.

Trilinear ( double x, double y, double z, double f000, double f010, double f100, double f110, double f001, double f011, double f101, double f111 ) : double

???

Method Details

FindNoise1() public static method

Finds the next noise.
public static FindNoise1 ( int n, int seed ) : double
n int
seed int
return double

FindNoise2() public static method

Returns number between -1 and 1.
public static FindNoise2 ( double x, double y, int seed ) : double
x double
y double
seed int
return double

GetNoise() public static method

???
public static GetNoise ( double x, double y, double z ) : double
x double
y double
z double
return double

Interpolate() public static method

Interpolates using a, b and x.
public static Interpolate ( double a, double b, double x ) : double
a double
b double
x double
return double

InterpolateNoise3d() public static method

Returns the interpolated three-dimensional noise for the given values.
public static InterpolateNoise3d ( double x, double y, double z, int chunksize ) : double[,,]
x double
y double
z double
chunksize int
return double[,,]

Noise() public static method

Runs the Noise function for the given x, y and seed values.
public static Noise ( double x, double y, int seed ) : double
x double
y double
seed int
return double

Trilinear() public static method

???
public static Trilinear ( double x, double y, double z, double f000, double f010, double f100, double f110, double f001, double f011, double f101, double f111 ) : double
x double
y double
z double
f000 double
f010 double
f100 double
f110 double
f001 double
f011 double
f101 double
f111 double
return double