C# Класс LibNoise.Primitive.BevinsValue

Base class for all value noise generator module
Наследование: PrimitiveModule, IModule3D, IModule2D, IModule1D
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
BevinsValue ( )

0-args constructor.

BevinsValue ( int seed, NoiseQuality quality )

Create a new BevinsValueNoise with given values.

GetValue ( float x ) : float

Generates an output value given the coordinates of the specified input value.

GetValue ( float x, float y ) : float

Generates an output value given the coordinates of the specified input value.

GetValue ( float x, float y, float z ) : float

Generates an output value given the coordinates of the specified input value.

ValueCoherentNoise1D ( float x, long seed, NoiseQuality quality ) : float

Generates a value-coherent-noise value from the coordinates of a one-dimensional input value. The return value ranges from -1.0 to +1.0.

ValueCoherentNoise2D ( float x, float y, long seed, NoiseQuality quality ) : float

Generates a value-coherent-noise value from the coordinates of a two-dimensional input value. The return value ranges from -1.0 to +1.0.

ValueCoherentNoise3D ( float x, float y, float z, long seed, NoiseQuality quality ) : float

Generates a value-coherent-noise value from the coordinates of a three-dimensional input value. The return value ranges from -1.0 to +1.0.

ValueNoise1D ( int x, long seed ) : float

Generates a value-noise value from the coordinates of a one-dimensional input value. The return value ranges from -1.0 to +1.0. A noise function differs from a random-number generator because it always returns the same output value if the same input value is passed to it.

ValueNoise2D ( int x, int y ) : float

Generates a value-noise value from the coordinates of a two-dimensional input value. The return value ranges from -1.0 to +1.0. it use ValueNoise2D(int x, int y, long seed) with a seed number of 0

ValueNoise2D ( int x, int y, long seed ) : float

Generates a value-noise value from the coordinates of a two-dimensional input value. The return value ranges from -1.0 to +1.0. A noise function differs from a random-number generator because it always returns the same output value if the same input value is passed to it.

ValueNoise3D ( int x, int y, int z, long seed ) : float

Generates a value-noise value from the coordinates of a three-dimensional input value. The return value ranges from -1.0 to +1.0. A noise function differs from a random-number generator because it always returns the same output value if the same input value is passed to it.

Приватные методы

Метод Описание
IntValueNoise1D ( int x, long seed ) : int

Generates an integer-noise value from the coordinates of a one-dimensional input value. The return value ranges from 0 to 2147483647. A noise function differs from a random-number generator because it always returns the same output value if the same input value is passed to it.

IntValueNoise2D ( int x, int y, long seed ) : int

Generates an integer-noise value from the coordinates of a two-dimensional input value. The return value ranges from 0 to 2147483647. A noise function differs from a random-number generator because it always returns the same output value if the same input value is passed to it.

IntValueNoise3D ( int x, int y, int z, long seed ) : int

Generates an integer-noise value from the coordinates of a three-dimensional input value. The return value ranges from 0 to 2147483647. A noise function differs from a random-number generator because it always returns the same output value if the same input value is passed to it.

Описание методов

BevinsValue() публичный Метод

0-args constructor.
public BevinsValue ( )

BevinsValue() публичный Метод

Create a new BevinsValueNoise with given values.
public BevinsValue ( int seed, NoiseQuality quality )
seed int Seed.
quality NoiseQuality Quality.

GetValue() публичный Метод

Generates an output value given the coordinates of the specified input value.
public GetValue ( float x ) : float
x float The input coordinate on the x-axis.
Результат float

GetValue() публичный Метод

Generates an output value given the coordinates of the specified input value.
public GetValue ( float x, float y ) : float
x float The input coordinate on the x-axis.
y float The input coordinate on the y-axis.
Результат float

GetValue() публичный Метод

Generates an output value given the coordinates of the specified input value.
public GetValue ( float x, float y, float z ) : float
x float The input coordinate on the x-axis.
y float The input coordinate on the y-axis.
z float The input coordinate on the z-axis.
Результат float

ValueCoherentNoise1D() публичный статический Метод

Generates a value-coherent-noise value from the coordinates of a one-dimensional input value. The return value ranges from -1.0 to +1.0.
public static ValueCoherentNoise1D ( float x, long seed, NoiseQuality quality ) : float
x float The x coordinate of the input value
seed long The random number seed
quality NoiseQuality The quality of the coherent-noise
Результат float

ValueCoherentNoise2D() публичный Метод

Generates a value-coherent-noise value from the coordinates of a two-dimensional input value. The return value ranges from -1.0 to +1.0.
public ValueCoherentNoise2D ( float x, float y, long seed, NoiseQuality quality ) : float
x float The x coordinate of the input value
y float The y coordinate of the input value
seed long The random number seed
quality NoiseQuality The quality of the coherent-noise
Результат float

ValueCoherentNoise3D() публичный статический Метод

Generates a value-coherent-noise value from the coordinates of a three-dimensional input value. The return value ranges from -1.0 to +1.0.
public static ValueCoherentNoise3D ( float x, float y, float z, long seed, NoiseQuality quality ) : float
x float The x coordinate of the input value
y float The y coordinate of the input value
z float The z coordinate of the input value
seed long The random number seed
quality NoiseQuality The quality of the coherent-noise
Результат float

ValueNoise1D() публичный статический Метод

Generates a value-noise value from the coordinates of a one-dimensional input value. The return value ranges from -1.0 to +1.0. A noise function differs from a random-number generator because it always returns the same output value if the same input value is passed to it.
public static ValueNoise1D ( int x, long seed ) : float
x int The x coordinate of the input value
seed long A random number seed
Результат float

ValueNoise2D() публичный Метод

Generates a value-noise value from the coordinates of a two-dimensional input value. The return value ranges from -1.0 to +1.0. it use ValueNoise2D(int x, int y, long seed) with a seed number of 0
public ValueNoise2D ( int x, int y ) : float
x int The x coordinate of the input value
y int The y coordinate of the input value
Результат float

ValueNoise2D() публичный Метод

Generates a value-noise value from the coordinates of a two-dimensional input value. The return value ranges from -1.0 to +1.0. A noise function differs from a random-number generator because it always returns the same output value if the same input value is passed to it.
public ValueNoise2D ( int x, int y, long seed ) : float
x int The x coordinate of the input value
y int The y coordinate of the input value
seed long A random number seed
Результат float

ValueNoise3D() публичный статический Метод

Generates a value-noise value from the coordinates of a three-dimensional input value. The return value ranges from -1.0 to +1.0. A noise function differs from a random-number generator because it always returns the same output value if the same input value is passed to it.
public static ValueNoise3D ( int x, int y, int z, long seed ) : float
x int The x coordinate of the input value
y int The y coordinate of the input value
z int The z coordinate of the input value
seed long A random number seed
Результат float