C# Class AForge.Math.PerlinNoise

Perlin Noise function
Afficher le fichier Open project: holisticware-admin/MonoVersal.AForgeNET Class Usage Examples

Méthodes publiques

Méthode Description
Function ( double x ) : double

1-D Perlin noise function.

Function2D ( double x, double y ) : double

2-D Perlin noise function.

PerlinNoise ( ) : System

Initializes a new instance of the PerlinNoise class.

PerlinNoise ( int octaves, double persistence ) : System

Initializes a new instance of the PerlinNoise class.

PerlinNoise ( int octaves, double persistence, double initFrequency, double initAmplitude ) : System

Initializes a new instance of the PerlinNoise class.

Private Methods

Méthode Description
CosineInterpolate ( double x1, double x2, double a ) : double

Cosine interpolation.

Noise ( int x ) : double

Ordinary noise function

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

Smoothed noise.

SmoothedNoise ( double x, double y ) : double

Method Details

Function() public méthode

1-D Perlin noise function.
public Function ( double x ) : double
x double x value.
Résultat double

Function2D() public méthode

2-D Perlin noise function.
public Function2D ( double x, double y ) : double
x double x value.
y double y value.
Résultat double

PerlinNoise() public méthode

Initializes a new instance of the PerlinNoise class.
public PerlinNoise ( ) : System
Résultat System

PerlinNoise() public méthode

Initializes a new instance of the PerlinNoise class.
public PerlinNoise ( int octaves, double persistence ) : System
octaves int Number of octaves (see property).
persistence double Persistence value (see property).
Résultat System

PerlinNoise() public méthode

Initializes a new instance of the PerlinNoise class.
public PerlinNoise ( int octaves, double persistence, double initFrequency, double initAmplitude ) : System
octaves int Number of octaves (see property).
persistence double Persistence value (see property).
initFrequency double Initial frequency (see property).
initAmplitude double Initial amplitude (see property).
Résultat System