TranslatePoint

Noise module that moves the coordinates of the input value before returning the output value from a source module.

@image html moduletranslatepoint.png

The GetValue() method moves the ( @a x, @a y, @a z ) coordinates of the input value by a translation amount before returning the output value from the source module. To set the translation amount, call the SetTranslation() method. To set the translation amount to apply to the individual @a x, @a y, or @a z coordinates, call the SetXTranslation(), SetYTranslation() or SetZTranslation() methods, respectively.

This noise module requires one source module.

Constructors

this
this()

Constructor.

Members

Functions

GetSourceModCount
int GetSourceModCount()
Undocumented in source. Be warned that the author may not have intended to support it.
GetValue
double GetValue(double x, double y, double z)
Undocumented in source. Be warned that the author may not have intended to support it.
GetXTranslation
double GetXTranslation()

Returns the translation amount to apply to the @a x coordinate of the input value.

GetYTranslation
double GetYTranslation()

Returns the translation amount to apply to the @a y coordinate of the input value.

GetZTranslation
double GetZTranslation()

Returns the translation amount to apply to the @a z coordinate of the input value.

SetTranslation
void SetTranslation(double translation)

Sets the translation amount to apply to the input value.

SetTranslation
void SetTranslation(double xTranslation, double yTranslation, double zTranslation)

Sets the translation amounts to apply to the ( @a x, @a y, @a z ) coordinates of the input value.

SetXTranslation
void SetXTranslation(double xTranslation)

Sets the translation amount to apply to the @a x coordinate of the input value.

SetYTranslation
void SetYTranslation(double yTranslation)

Sets the translation amount to apply to the @a y coordinate of the input value.

SetZTranslation
void SetZTranslation(double zTranslation)

Sets the translation amount to apply to the @a z coordinate of the input value.

Variables

m_xTranslation
double m_xTranslation;

Translation amount applied to the @a x coordinate of the input value.

m_yTranslation
double m_yTranslation;

Translation amount applied to the @a y coordinate of the input value.

m_zTranslation
double m_zTranslation;

Translation amount applied to the @a z coordinate of the input value.

Inherited Members

From Mod

~this
~this()

Destructor.

GetSourceMod
const(Mod) GetSourceMod(int index)

Returns a reference to a source module connected to this noise module.

GetSourceModCount
int GetSourceModCount()

Returns the number of source modules required by this noise module.

GetValue
double GetValue(double x, double y, double z)

Generates an output value given the coordinates of the specified input value.

SetSourceMod
void SetSourceMod(int index, const(Mod)* sourceMod)

Connects a source module to this noise module.

m_pSourceMod
const(Mod)*[] m_pSourceMod;

An array containing the pointers to each source module required by this noise module.

Meta