C# Class LibNoise.Transformer.TranslatePoint

Noise module that moves the coordinates of the input value before returning the output value from a source module. The GetValue() method moves the ( x, y, z ) coordinates of the input value by a translation amount before returning the output value from the source module.
Inheritance: TransformerModule, IModule3D
Show file Open project: everbytes/LibNoise

Protected Properties

Property Type Description
_sourceModule IModule
_xTranslate float
_yTranslate float
_zTranslate 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.

TranslatePoint ( )

Create a new noise module with default values

TranslatePoint ( IModule source )

Create a new noise module with given values

TranslatePoint ( 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

TranslatePoint() public method

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

TranslatePoint() public method

Create a new noise module with given values
public TranslatePoint ( IModule source )
source IModule the source module

TranslatePoint() public method

Create a new noise module with given values
public TranslatePoint ( IModule source, float x, float y, float z )
source IModule the source module
x float the translation amount to apply to the x coordinate
y float the translation amount to apply to the y coordinate
z float the translation amount to apply to the z coordinate

Property Details

_sourceModule protected property

The source input module
protected IModule _sourceModule
return IModule

_xTranslate protected property

the translation amount to apply to the x coordinate
protected float _xTranslate
return float

_yTranslate protected property

the translation amount to apply to the y coordinate
protected float _yTranslate
return float

_zTranslate protected property

the translation amount to apply to the z coordinate
protected float _zTranslate
return float