C# Class LibNoise.Operator.Rotate

Provides a noise module that rotates the input value around the origin before returning the output value from a source module. [OPERATOR]
Inheritance: ModuleBase
Mostra file Open project: simonwittber/LibNoise-Unity Class Usage Examples

Public Methods

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

Returns the output value for the given input coordinates.

Rotate ( ) : System

Initializes a new instance of Rotate.

Rotate ( float x, float y, float z, ModuleBase input ) : System

Initializes a new instance of Rotate.

Private Methods

Method Description
SetAngles ( float x, float y, float z ) : void

Sets the rotation angles.

Method Details

GetValue() public method

Returns the output value for the given input coordinates.
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

Rotate() public method

Initializes a new instance of Rotate.
public Rotate ( ) : System
return System

Rotate() public method

Initializes a new instance of Rotate.
public Rotate ( float x, float y, float z, ModuleBase input ) : System
x float The rotation around the x-axis.
y float The rotation around the y-axis.
z float The rotation around the z-axis.
input ModuleBase The input module.
return System