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
Показать файл Открыть проект Примеры использования класса

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

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