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
파일 보기 프로젝트 열기: everbytes/LibNoise 1 사용 예제들

공개 메소드들

메소드 설명
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