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
파일 보기 프로젝트 열기: everbytes/LibNoise 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
_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