C# Class LibNoise.Transformer.RotatePoint

Noise module that rotates the input value around the origin before returning the output value from a source module. The GetValue() method rotates the coordinates of the input value around the origin before returning the output value from the source module. To set the rotation angles, call the SetAngles() method. To set the rotation angle around the individual x, y, or z axes, set the XAngle, YAngle or ZAngle properties, respectively. The coordinate system of the input value is assumed to be "left-handed" (x increases to the right, y increases upward, and z increases inward.)
Inheritance: TransformerModule, IModule3D
Datei anzeigen Open project: everbytes/LibNoise

Public Methods

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

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

RotatePoint ( ) : System

Create a new noise module with default values

RotatePoint ( IModule source ) : System

Create a new noise module with given values

RotatePoint ( IModule source, float xAngle, float yAngle, float zAngle ) : System

Create a new noise module with the given values

SetAngles ( float xAngle, float yAngle, float zAngle ) : void

Sets the rotation angles around all three axes to apply to the input value.

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

RotatePoint() public method

Create a new noise module with default values
public RotatePoint ( ) : System
return System

RotatePoint() public method

Create a new noise module with given values
public RotatePoint ( IModule source ) : System
source IModule the source module
return System

RotatePoint() public method

Create a new noise module with the given values
public RotatePoint ( IModule source, float xAngle, float yAngle, float zAngle ) : System
source IModule The input source module
xAngle float the x rotation angle applied to the input value, in degrees.
yAngle float the y rotation angle applied to the input value, in degrees.
zAngle float the z rotation angle applied to the input value, in degrees.
return System

SetAngles() public method

Sets the rotation angles around all three axes to apply to the input value.
public SetAngles ( float xAngle, float yAngle, float zAngle ) : void
xAngle float the x rotation angle applied to the input value, in degrees.
yAngle float the y rotation angle applied to the input value, in degrees.
zAngle float the z rotation angle applied to the input value, in degrees.
return void