.. index:: pair: class; EE::Math::PerlinNoise .. _doxid-class_e_e_1_1_math_1_1_perlin_noise: class EE::Math::PerlinNoise =========================== .. toctree:: :hidden: Overview ~~~~~~~~ Perlin noise can be used to generate gradients, textures and effects. For more information go to `http://en.wikipedia.org/wiki/Perlin_noise `__ \* To get a better understanding of the variables to generate the noise, visit `http://freespace.virgin.net/hugo.elias/models/m_perlin.htm `__. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class PerlinNoise { public: // construction :target:`~PerlinNoise`(); // methods void :ref:`init`(); :ref:`Float` :ref:`getPerlinNoise2D`(:ref:`Float` x, :ref:`Float` y); void :target:`setOctaves`(const int& octaves); void :target:`setPersistence`(const :ref:`Float`& pers); void :target:`setFrequency`(const :ref:`Float`& freq); void :target:`setAmplitude`(const :ref:`Float`& amp); void :target:`setFrequencyOctaveDep`(const bool& dep); void :target:`setAmplitudeOctaveDep`(const bool& dep); int :target:`getOctaves`() const; :ref:`Float` :target:`getPersistence`() const; :ref:`Float` :target:`getFrequency`() const; :ref:`Float` :target:`getAmplitude`() const; bool :target:`getFrequencyOctaveDep`() const; bool :target:`getAmplitudeOctaveDep`() const; }; .. _details-class_e_e_1_1_math_1_1_perlin_noise: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Perlin noise can be used to generate gradients, textures and effects. For more information go to `http://en.wikipedia.org/wiki/Perlin_noise `__ \* To get a better understanding of the variables to generate the noise, visit `http://freespace.virgin.net/hugo.elias/models/m_perlin.htm `__. Methods ------- .. index:: pair: function; init .. _doxid-class_e_e_1_1_math_1_1_perlin_noise_1a9780156a3c71db341abd651db505785c: .. ref-code-block:: cpp :class: doxyrest-title-code-block void init() Reset the initial values .. index:: pair: function; getPerlinNoise2D .. _doxid-class_e_e_1_1_math_1_1_perlin_noise_1a48e88e47d169db6a13980f70ab7f5b89: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`Float` getPerlinNoise2D(:ref:`Float` x, :ref:`Float` y) .. rubric:: Returns: The noise value for the 2D coordinates