C# Class ManicDigger.MapTools.NoiseTools

Provides methods that assist when dealing with noise.
Afficher le fichier Open project: henon/manic_digger Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

FindNoise2() public static méthode

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

GetNoise() public static méthode

???
public static GetNoise ( double x, double y, double z ) : double
x double
y double
z double
Résultat double

Interpolate() public static méthode

Interpolates using a, b and x.
public static Interpolate ( double a, double b, double x ) : double
a double
b double
x double
Résultat double

InterpolateNoise3d() public static méthode

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
Résultat double[,,]

Noise() public static méthode

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
Résultat double

Trilinear() public static méthode

???
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
Résultat double