C# Класс 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.
Наследование: AbstractModel
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

Cylinder() публичный Метод

Default constructor.
public Cylinder ( ) : System
Результат System

Cylinder() публичный Метод

Constructor.
public Cylinder ( IModule3D module ) : System
module IModule3D The noise module that is used to generate the output values.
Результат System

GetValue() публичный Метод

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.
Результат float