C# 클래스 LibNoise.Model.Plane

Model that defines the surface of a plane. This model returns an output value from a noise module given the coordinates of an input value located on the surface of an ( x, z ) plane. To generate an output value, pass the (x, z) coordinates of an input value to the GetValue() method. This model is useful for creating: - two-dimensional textures - terrain height maps for local areas This plane extends infinitely in both directions.
상속: AbstractModel
파일 보기 프로젝트 열기: everbytes/LibNoise 1 사용 예제들

공개 메소드들

메소드 설명
GetValue ( float x, float z ) : float

Returns the output value from the noise module given the (x, z) coordinates of the specified input value located on the surface of the plane.

Plane ( )

Default constructor

Plane ( IModule module )

Constructor

메소드 상세

GetValue() 공개 메소드

Returns the output value from the noise module given the (x, z) coordinates of the specified input value located on the surface of the plane.
public GetValue ( float x, float z ) : float
x float The x coordinate of the input value
z float The z coordinate of the input value
리턴 float

Plane() 공개 메소드

Default constructor
public Plane ( )

Plane() 공개 메소드

Constructor
public Plane ( IModule module )
module IModule The noise module that is used to generate the output values