Plane

@addtogroup libnoise @{ @addtogroup models @{ 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 ( @a x, @a z ) plane.

To generate an output value, pass the ( @a x, @a 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.

Constructors

this
this()

Constructor.

this
this(const(Mod) mod)

Constructor

Members

Functions

GetMod
const(Mod) GetMod()

Returns the noise module that is used to generate the output values.

GetValue
double GetValue(double x, double z)

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

SetMod
void SetMod(const(Mod) mod)

Sets the noise module that is used to generate the output values.

Meta