C# Class LibNoise.Model.Cylinder

Model that defines the surface of a cylinder. This model returns an output value from a noise module given the coordinates of an input value located on the surface of a cylinder. To generate an output value, pass the (angle, height) coordinates of an input value to the GetValue() method. This model is useful for creating: - seamless textures that can be mapped onto a cylinder This cylinder has a radius of 1.0 unit and has infinite height. It is oriented along the y axis. Its center is located at the origin.
Inheritance: AbstractModel
Datei anzeigen Open project: everbytes/LibNoise Class Usage Examples

Public Methods

Method Description
Cylinder ( ) : System

Default constructor.

Cylinder ( IModule3D module ) : System

Constructor.

GetValue ( float angle, float height ) : float

Returns the output value from the noise module given the (angle, height) coordinates of the specified input value located on the surface of the cylinder. This cylinder has a radius of 1.0 unit and has infinite height. It is oriented along the y axis. Its center is located at the origin.

Method Details

Cylinder() public method

Default constructor.
public Cylinder ( ) : System
return System

Cylinder() public method

Constructor.
public Cylinder ( IModule3D module ) : System
module IModule3D The noise module that is used to generate the output values.
return System

GetValue() public method

Returns the output value from the noise module given the (angle, height) coordinates of the specified input value located on the surface of the cylinder. This cylinder has a radius of 1.0 unit and has infinite height. It is oriented along the y axis. Its center is located at the origin.
public GetValue ( float angle, float height ) : float
angle float The angle around the cylinder's center, in degrees.
height float The height along the y axis.
return float