Line

@addtogroup libnoise @{ @addtogroup models @{ Model that defines the displacement of a line segment.

This model returns an output value from a noise module given the one-dimensional coordinate of an input value located on a line segment, which can be used as displacements.

This class is useful for creating: - roads and rivers - disaffected college students

To generate an output value, pass an input value between 0.0 and 1.0 to the GetValue() method. 0.0 represents the start position of the line segment and 1.0 represents the end position of the line segment.

Constructors

this
this()

Constructor.

this
this(const(Mod) mod)

Constructor

Members

Functions

GetAttenuate
bool GetAttenuate()

Returns a flag indicating whether the output value is to be attenuated (moved toward 0.0) as the ends of the line segment are approached by the input value.

GetMod
const(Mod) GetMod()

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

GetValue
double GetValue(double p)

Returns the output value from the noise module given the one-dimensional coordinate of the specified input value located on the line segment.

SetAttenuate
void SetAttenuate(bool att)

Sets a flag indicating that the output value is to be attenuated (moved toward 0.0) as the ends of the line segment are approached.

SetEndPoint
void SetEndPoint(double x, double y, double z)

Sets the position ( @a x, @a y, @a z ) of the end of the line segment to choose values along.

SetMod
void SetMod(const(Mod) mod)

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

SetStartPoint
void SetStartPoint(double x, double y, double z)

Sets the position ( @a x, @a y, @a z ) of the start of the line segment to choose values along.

Meta