C# Class LibNoise.Transformer.ScalePoint

Noise module that scales the coordinates of the input value before returning the output value from a source module. The GetValue() method multiplies the (x, y, z) coordinates of the input value with a scaling factor before returning the output value from the source module.
Inheritance: TransformerModule, IModule3D
ファイルを表示 Open project: everbytes/LibNoise

Protected Properties

Property Type Description
_sourceModule IModule
_xScale float
_yScale float
_zScale float

Public Methods

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

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

ScalePoint ( )

Create a new noise module with default values

ScalePoint ( IModule source )
ScalePoint ( IModule source, float x, float y, float z )

Create a new noise module with given values

Method Details

GetValue() public method

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.
return float

ScalePoint() public method

Create a new noise module with default values
public ScalePoint ( )

ScalePoint() public method

public ScalePoint ( IModule source )
source IModule

ScalePoint() public method

Create a new noise module with given values
public ScalePoint ( IModule source, float x, float y, float z )
source IModule the source module
x float the scaling factor applied to the x coordinate
y float the scaling factor applied to the y coordinate
z float the scaling factor applied to the z coordinate

Property Details

_sourceModule protected_oe property

The source input module
protected IModule _sourceModule
return IModule

_xScale protected_oe property

the scaling factor applied to the x coordinate
protected float _xScale
return float

_yScale protected_oe property

the scaling factor applied to the y coordinate
protected float _yScale
return float

_zScale protected_oe property

the scaling factor applied to the z coordinate
protected float _zScale
return float