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

Noise module that outputs 3-dimensional Simplex Perlin noise. This algorithm has a computational cost of O(n+1) where n is the dimension. It's a lost faster than ImprovedPerlin (O(2^n)) Quality is not used here. This noise module outputs values that usually range from -1.0 to +1.0, but there are no guarantees that all output values will exist within that range.
Наследование: ImprovedPerlin, IModule4D, IModule3D, IModule2D
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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.

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

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

SimplexPerlin ( )

0-args constructor

SimplexPerlin ( int seed, NoiseQuality quality )

Create a new ImprovedPerlin with given values

Защищенные методы

Метод Описание
Dot ( int g, float x, float y ) : float

Computes dot product in 2D.

Dot ( int g, float x, float y, float z ) : float

Computes dot product in 3D.

Dot ( int g, float x, float y, float z, float t ) : float

Computes dot product in 4D.

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

Dot() защищенный статический метод

Computes dot product in 2D.
protected static Dot ( int g, float x, float y ) : float
g int 2-vector (grid offset).
x float X coordinates.
y float Y coordinates.
Результат float

Dot() защищенный статический метод

Computes dot product in 3D.
protected static Dot ( int g, float x, float y, float z ) : float
g int 3-vector (grid offset).
x float X coordinates.
y float Y coordinates.
z float Z coordinates.
Результат float

Dot() защищенный статический метод

Computes dot product in 4D.
protected static Dot ( int g, float x, float y, float z, float t ) : float
g int 4-vector (grid offset).
x float X coordinates.
y float Y coordinates.
z float Z coordinates.
t float T coordinates.
Результат 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

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

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

SimplexPerlin() публичный метод

0-args constructor
public SimplexPerlin ( )

SimplexPerlin() публичный метод

Create a new ImprovedPerlin with given values
public SimplexPerlin ( int seed, NoiseQuality quality )
seed int
quality NoiseQuality