RotatePoint

Noise module that rotates the input value around the origin before returning the output value from a source module.

@image html modulerotatepoint.png

The GetValue() method rotates the coordinates of the input value around the origin before returning the output value from the source module. To set the rotation angles, call the SetAngles() method. To set the rotation angle around the individual @a x, @a y, or @a z axes, call the SetXAngle(), SetYAngle() or SetZAngle() methods, respectively.

The coordinate system of the input value is assumed to be "left-handed" (@a x increases to the right, @a y increases upward, and @a z increases inward.)

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.
GetXAngle
double GetXAngle()

Returns the rotation angle around the @a x axis to apply to the input value.

GetYAngle
double GetYAngle()

Returns the rotation angle around the @a y axis to apply to the input value.

GetZAngle
double GetZAngle()

Returns the rotation angle around the @a z axis to apply to the input value.

SetAngles
void SetAngles(double xAngle, double yAngle, double zAngle)

Sets the rotation angles around all three axes to apply to the input value.

SetXAngle
void SetXAngle(double xAngle)

Sets the rotation angle around the @a x axis to apply to the input value.

SetYAngle
void SetYAngle(double yAngle)

Sets the rotation angle around the @a y axis to apply to the input value.

SetZAngle
void SetZAngle(double zAngle)

Sets the rotation angle around the @a z axis to apply to the input value.

Variables

m_x1Matrix
double m_x1Matrix;

An entry within the 3x3 rotation matrix used for rotating the input value.

m_x2Matrix
double m_x2Matrix;

An entry within the 3x3 rotation matrix used for rotating the input value.

m_x3Matrix
double m_x3Matrix;

An entry within the 3x3 rotation matrix used for rotating the input value.

m_xAngle
double m_xAngle;

@a x rotation angle applied to the input value, in degrees.

m_y1Matrix
double m_y1Matrix;

An entry within the 3x3 rotation matrix used for rotating the input value.

m_y2Matrix
double m_y2Matrix;

An entry within the 3x3 rotation matrix used for rotating the input value.

m_y3Matrix
double m_y3Matrix;

An entry within the 3x3 rotation matrix used for rotating the input value.

m_yAngle
double m_yAngle;

@a y rotation angle applied to the input value, in degrees.

m_z1Matrix
double m_z1Matrix;

An entry within the 3x3 rotation matrix used for rotating the input value.

m_z2Matrix
double m_z2Matrix;

An entry within the 3x3 rotation matrix used for rotating the input value.

m_z3Matrix
double m_z3Matrix;

An entry within the 3x3 rotation matrix used for rotating the input value.

m_zAngle
double m_zAngle;

@a z rotation angle applied to the input value, in degrees.

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