C# Класс LibNoise.Modifier.ScaleBias

Noise module that applies a scaling factor and a bias to the output value from a source module. The GetValue() method retrieves the output value from the source module, multiplies it with a scaling factor, adds a bias to it, then outputs the value.
Наследование: ModifierModule, IModule3D
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
_bias float
_scale float

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

Метод Описание
GetValue ( float x, float y, float z ) : float

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

ScaleBias ( )
ScaleBias ( IModule source )
ScaleBias ( IModule source, float scale, float bias )

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

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

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

public ScaleBias ( )

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

public ScaleBias ( IModule source )
source IModule

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

public ScaleBias ( IModule source, float scale, float bias )
source IModule
scale float
bias float

Описание свойств

_bias защищенное свойство

the bias to apply to the scaled output value from the source module.
protected float _bias
Результат float

_scale защищенное свойство

the scaling factor to apply to the output value from the source module.
protected float _scale
Результат float