-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_noises_8h_source.html
124 lines (124 loc) · 113 KB
/
_noises_8h_source.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Gamedev Framework (gf): Noises.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
</script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="custom.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="gf_logo.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Gamedev Framework (gf)
 <span id="projectnumber">0.6.0</span>
</div>
<div id="projectbrief">A C++11 framework for 2D games</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_6d069d519ae9d12fa11dd8e685586b60.html">gf</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">Noises.h</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Gamedev Framework (gf)</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * Copyright (C) 2016-2017 Julien Bernard</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> *</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * This software is provided 'as-is', without any express or implied</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * warranty. In no event will the authors be held liable for any damages</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * arising from the use of this software.</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> *</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * Permission is granted to anyone to use this software for any purpose,</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * including commercial applications, and to alter it and redistribute it</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * freely, subject to the following restrictions:</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> *</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * 1. The origin of this software must not be misrepresented; you must not</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * claim that you wrote the original software. If you use this software</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> * in a product, an acknowledgment in the product documentation would be</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * appreciated but is not required.</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> * 2. Altered source versions must be plainly marked as such, and must not be</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> * misrepresented as being the original software.</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> * 3. This notice may not be removed or altered from any source distribution.</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> */</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#</span><span class="preprocessor">ifndef</span> <span class="preprocessor">GF_NOISES_H</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#</span><span class="preprocessor">define</span> <span class="preprocessor">GF_NOISES_H</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#</span><span class="preprocessor">include</span> <span class="preprocessor"><</span><span class="preprocessor">cstddef</span><span class="preprocessor">></span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#</span><span class="preprocessor">include</span> <span class="preprocessor"><</span><span class="preprocessor">cstdint</span><span class="preprocessor">></span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#</span><span class="preprocessor">include</span> <span class="preprocessor"><</span><span class="preprocessor">array</span><span class="preprocessor">></span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#</span><span class="preprocessor">include</span> <span class="preprocessor"><</span><span class="preprocessor">functional</span><span class="preprocessor">></span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#</span><span class="preprocessor">include</span> <span class="preprocessor"><</span><span class="preprocessor">vector</span><span class="preprocessor">></span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#</span><span class="preprocessor">include</span> <a class="code" href="_math_8h.html">"Math.h"</a></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#</span><span class="preprocessor">include</span> <a class="code" href="_noise_8h.html">"Noise.h"</a></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#</span><span class="preprocessor">include</span> <a class="code" href="_portability_8h.html">"Portability.h"</a></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#</span><span class="preprocessor">include</span> <a class="code" href="_vector_8h.html">"Vector.h"</a></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> </div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="keyword">namespace</span> <a class="code" href="namespacegf.html">gf</a> {</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="preprocessor">#</span><span class="preprocessor">ifndef</span> <span class="preprocessor">DOXYGEN_SHOULD_SKIP_THIS</span></div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="keyword">inline</span> <span class="keyword">namespace</span> v1 {</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="preprocessor">#</span><span class="preprocessor">endif</span></div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keyword">class</span> <a class="code" href="classgf_1_1_random.html">Random</a>;</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> </div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="comment">/**</span></div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="comment"> * @ingroup core</span></div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="comment"> * @brief Value 2D noise</span></div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="comment"> *</span></div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="comment"> * [Value noise](https://en.wikipedia.org/wiki/Value_noise) is a</span></div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="comment"> * lattice-based noise based on values.</span></div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="comment"> */</span></div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="classgf_1_1_value_noise2_d.html"> 50</a></span>  <span class="keyword">class</span> <a class="code" href="_portability_8h.html#a0169111e0ff1d9fe0f23dee89e904d57">GF_API</a> <a class="code" href="classgf_1_1_value_noise2_d.html">ValueNoise2D</a> : <span class="keyword">public</span> <a class="code" href="classgf_1_1_noise2_d.html">Noise2D</a> {</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="comment">/**</span></div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="comment"> * @brief Constructor</span></div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="comment"> *</span></div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <span class="comment"> * @param random A random engine</span></div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="comment"> * @param step A step</span></div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <span class="comment"> *</span></div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span> <span class="comment"> * @sa gf::Step</span></div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="comment"> */</span></div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <a class="code" href="classgf_1_1_value_noise2_d.html#a869f257a0df91b33265a36653b162637">ValueNoise2D</a>(<a class="code" href="classgf_1_1_random.html">Random</a>& random, Step<<span class="keywordtype">double</span>> step);</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span> </div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classgf_1_1_value_noise2_d.html#a42cdc3a21317452a7e30670b6cf62ab3">getValue</a>(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y) <span class="keyword">override</span>;</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> </div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  Step<<span class="keywordtype">double</span>> m_step;</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  std::array<uint8_t, 256> m_perm;</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  std::array<<span class="keywordtype">double</span>, 256> m_values;</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span> </div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="keywordtype">double</span> at(uint8_t i, uint8_t j) <span class="keyword">const</span>;</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  };</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span> </div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span> </div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="comment">/**</span></div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span> <span class="comment"> * @ingroup core</span></div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span> <span class="comment"> * @brief Gradient 2D noise</span></div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span> <span class="comment"> *</span></div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span> <span class="comment"> * [Gradient noise](https://en.wikipedia.org/wiki/Gradient_noise) is a</span></div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span> <span class="comment"> * lattice-based noise based on gradients.</span></div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span> <span class="comment"> */</span></div><div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="classgf_1_1_gradient_noise2_d.html"> 80</a></span>  <span class="keyword">class</span> <a class="code" href="_portability_8h.html#a0169111e0ff1d9fe0f23dee89e904d57">GF_API</a> <a class="code" href="classgf_1_1_gradient_noise2_d.html">GradientNoise2D</a> : <span class="keyword">public</span> <a class="code" href="classgf_1_1_noise2_d.html">Noise2D</a> {</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="comment">/**</span></div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span> <span class="comment"> * @brief Constructor</span></div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span> <span class="comment"> *</span></div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span> <span class="comment"> * @param random A random engine</span></div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span> <span class="comment"> * @param step A step</span></div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span> <span class="comment"> *</span></div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span> <span class="comment"> * @sa gf::Step</span></div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span> <span class="comment"> */</span></div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <a class="code" href="classgf_1_1_gradient_noise2_d.html#a1e8b15f2059253a9fa145770500af547">GradientNoise2D</a>(<a class="code" href="classgf_1_1_random.html">Random</a>& random, Step<<span class="keywordtype">double</span>> step);</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span> </div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classgf_1_1_gradient_noise2_d.html#a23bfcda346af235e25fc6f1c66ccb84f">getValue</a>(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y) <span class="keyword">override</span>;</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span> </div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  Step<<span class="keywordtype">double</span>> m_step;</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  std::array<uint8_t, 256> m_perm;</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  std::array<Vector2d, 256> m_gradients2D;</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span> </div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="keyword">const</span> Vector2d& at(uint8_t i, uint8_t j) <span class="keyword">const</span>;</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  };</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span> </div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="comment">/**</span></div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span> <span class="comment"> * @ingroup core</span></div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span> <span class="comment"> * @brief Gradient 3D noise</span></div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span> <span class="comment"> *</span></div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span> <span class="comment"> * [Gradient noise](https://en.wikipedia.org/wiki/Gradient_noise) is a</span></div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span> <span class="comment"> * lattice-based noise based on gradients.</span></div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span> <span class="comment"> */</span></div><div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="classgf_1_1_gradient_noise3_d.html"> 109</a></span>  <span class="keyword">class</span> <a class="code" href="_portability_8h.html#a0169111e0ff1d9fe0f23dee89e904d57">GF_API</a> <a class="code" href="classgf_1_1_gradient_noise3_d.html">GradientNoise3D</a> : <span class="keyword">public</span> <a class="code" href="classgf_1_1_noise3_d.html">Noise3D</a> {</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <span class="comment">/**</span></div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span> <span class="comment"> * @brief Constructor</span></div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span> <span class="comment"> *</span></div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span> <span class="comment"> * @param random A random engine</span></div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span> <span class="comment"> * @param step A step</span></div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span> <span class="comment"> *</span></div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span> <span class="comment"> * @sa gf::Step</span></div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span> <span class="comment"> */</span></div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <a class="code" href="classgf_1_1_gradient_noise3_d.html#ae819def44d0b13693fff192189f79828">GradientNoise3D</a>(<a class="code" href="classgf_1_1_random.html">Random</a>& random, Step<<span class="keywordtype">double</span>> step);</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span> </div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classgf_1_1_gradient_noise3_d.html#a7f1b26765db03610aeebf77c7d2048db">getValue</a>(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y, <span class="keywordtype">double</span> z) <span class="keyword">override</span>;</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span> </div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  Step<<span class="keywordtype">double</span>> m_step;</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  std::array<uint8_t, 256> m_perm;</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  std::array<Vector3d, 256> m_gradients3D;</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span> </div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="keyword">const</span> Vector3d& at(uint8_t i, uint8_t j, uint8_t k) <span class="keyword">const</span>;</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  };</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span> </div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <span class="comment">/**</span></div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span> <span class="comment"> * @ingroup core</span></div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span> <span class="comment"> * @brief Better gradient 2D noise</span></div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span> <span class="comment"> *</span></div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span> <span class="comment"> * An implementation of the better gradient noise of Kensler et al.,</span></div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span> <span class="comment"> * especially the new hash function and filter kernel. This noise is</span></div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span> <span class="comment"> * slower than gradient noise but gives better results.</span></div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span> <span class="comment"> *</span></div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span> <span class="comment"> * @sa [Better Gradient Noise. A. Kensler, A. Knoll, P. Shirley. 2008](https://www.cs.utah.edu/~aek/research/noise.pdf)</span></div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span> <span class="comment"> */</span></div><div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="classgf_1_1_better_gradient_noise2_d.html"> 141</a></span>  <span class="keyword">class</span> <a class="code" href="_portability_8h.html#a0169111e0ff1d9fe0f23dee89e904d57">GF_API</a> <a class="code" href="classgf_1_1_better_gradient_noise2_d.html">BetterGradientNoise2D</a> : <span class="keyword">public</span> <a class="code" href="classgf_1_1_noise2_d.html">Noise2D</a> {</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <span class="comment">/**</span></div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span> <span class="comment"> * @brief Constructor</span></div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span> <span class="comment"> *</span></div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span> <span class="comment"> * @param random A random engine</span></div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span> <span class="comment"> */</span></div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <a class="code" href="classgf_1_1_better_gradient_noise2_d.html#ac6d9083abe11fe815326100744098842">BetterGradientNoise2D</a>(<a class="code" href="classgf_1_1_random.html">Random</a>& random);</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span> </div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classgf_1_1_better_gradient_noise2_d.html#a5e1ce865e77d05f1913f3bd1a585a884">getValue</a>(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y) <span class="keyword">override</span>;</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span> </div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  std::array<uint8_t, 256> m_permX;</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  std::array<uint8_t, 256> m_permY;</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  std::array<Vector2d, 256> m_gradients2D;</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span> </div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <span class="keyword">const</span> Vector2d& at(uint8_t i, uint8_t j) <span class="keyword">const</span>;</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  };</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span> </div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <span class="comment">/**</span></div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span> <span class="comment"> * @ingroup core</span></div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span> <span class="comment"> * @brief Fractal 2D noise</span></div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span> <span class="comment"> *</span></div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span> <span class="comment"> * Fractal noise is based of fractional Brownian motion (fBm). It consists</span></div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span> <span class="comment"> * in adding several octaves of a basic noise at different amplitudes.</span></div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span> <span class="comment"> *</span></div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span> <span class="comment"> */</span></div><div class="line"><a name="l00168"></a><span class="lineno"><a class="line" href="classgf_1_1_fractal_noise2_d.html"> 168</a></span>  <span class="keyword">class</span> <a class="code" href="_portability_8h.html#a0169111e0ff1d9fe0f23dee89e904d57">GF_API</a> <a class="code" href="classgf_1_1_fractal_noise2_d.html">FractalNoise2D</a> : <span class="keyword">public</span> <a class="code" href="classgf_1_1_noise2_d.html">Noise2D</a> {</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  <span class="comment">/**</span></div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span> <span class="comment"> * @brief Constructor</span></div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span> <span class="comment"> *</span></div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span> <span class="comment"> * @param noise The basic noise function</span></div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span> <span class="comment"> * @param scale The scale factor</span></div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span> <span class="comment"> * @param octaves The number of octaves</span></div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span> <span class="comment"> * @param lacunarity The factor applied to frequency</span></div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span> <span class="comment"> * @param persistence The factor applied to amplitude</span></div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span> <span class="comment"> * @param dimension The contrast between the layers</span></div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span> <span class="comment"> */</span></div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  <a class="code" href="classgf_1_1_fractal_noise2_d.html#aff1b249b0169bb807cd024db7f32a478">FractalNoise2D</a>(<a class="code" href="classgf_1_1_noise2_d.html">Noise2D</a>& noise, <span class="keywordtype">double</span> scale, std::size_t octaves = 8, <span class="keywordtype">double</span> lacunarity = 2.0, <span class="keywordtype">double</span> persistence = 0.5, <span class="keywordtype">double</span></div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  dimension = 1.0);</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span> </div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classgf_1_1_fractal_noise2_d.html#a1289318aa87038f6748ae2ecd2d70eda">getValue</a>(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y) <span class="keyword">override</span>;</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span> </div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  <a class="code" href="classgf_1_1_noise2_d.html">Noise2D</a>& m_noise;</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  <span class="keywordtype">double</span> m_scale;</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  std::size_t m_octaves;</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  <span class="keywordtype">double</span> m_lacunarity;</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  <span class="keywordtype">double</span> m_persistence;</div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  <span class="keywordtype">double</span> m_dimension;</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  };</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span> </div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span> </div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  <span class="comment">/**</span></div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span> <span class="comment"> * @ingroup core</span></div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span> <span class="comment"> * @brief Fractal 3D noise</span></div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span> <span class="comment"> *</span></div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span> <span class="comment"> * Fractal noise is based of fractional Brownian motion (fBm). It consists</span></div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span> <span class="comment"> * in adding several octaves of a basic noise at different amplitudes.</span></div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span> <span class="comment"> *</span></div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span> <span class="comment"> */</span></div><div class="line"><a name="l00203"></a><span class="lineno"><a class="line" href="classgf_1_1_fractal_noise3_d.html"> 203</a></span>  <span class="keyword">class</span> <a class="code" href="_portability_8h.html#a0169111e0ff1d9fe0f23dee89e904d57">GF_API</a> <a class="code" href="classgf_1_1_fractal_noise3_d.html">FractalNoise3D</a> : <span class="keyword">public</span> <a class="code" href="classgf_1_1_noise3_d.html">Noise3D</a> {</div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  <span class="comment">/**</span></div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span> <span class="comment"> * @brief Constructor</span></div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span> <span class="comment"> *</span></div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span> <span class="comment"> * @param noise The basic noise function</span></div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span> <span class="comment"> * @param scale The scale factor</span></div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span> <span class="comment"> * @param octaves The number of octaves</span></div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span> <span class="comment"> * @param lacunarity The factor applied to frequency</span></div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span> <span class="comment"> * @param persistence The factor applied to amplitude</span></div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span> <span class="comment"> * @param dimension The contrast between the layers</span></div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span> <span class="comment"> */</span></div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  <a class="code" href="classgf_1_1_fractal_noise3_d.html#a43cb9e8afeb9eee85506f33f8d4eacfc">FractalNoise3D</a>(<a class="code" href="classgf_1_1_noise3_d.html">Noise3D</a>& noise, <span class="keywordtype">double</span> scale, std::size_t octaves = 8, <span class="keywordtype">double</span> lacunarity = 2.0, <span class="keywordtype">double</span> persistence = 0.5, <span class="keywordtype">double</span> dimension = 1.0);</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span> </div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classgf_1_1_fractal_noise3_d.html#a89e9776ba4d785ac42609af68220db74">getValue</a>(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y, <span class="keywordtype">double</span> z) <span class="keyword">override</span>;</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span> </div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  <a class="code" href="classgf_1_1_noise3_d.html">Noise3D</a>& m_noise;</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  <span class="keywordtype">double</span> m_scale;</div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  std::size_t m_octaves;</div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  <span class="keywordtype">double</span> m_lacunarity;</div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  <span class="keywordtype">double</span> m_persistence;</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  <span class="keywordtype">double</span> m_dimension;</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  };</div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span> </div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span> </div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  <span class="comment">/**</span></div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span> <span class="comment"> * @ingroup core</span></div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span> <span class="comment"> * @brief Perlin 2D noise</span></div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span> <span class="comment"> *</span></div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span> <span class="comment"> * [Perlin noise](https://en.wikipedia.org/wiki/Perlin_noise) is the</span></div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span> <span class="comment"> * combination of a fractal noise and a gradient noise.</span></div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span> <span class="comment"> *</span></div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span> <span class="comment"> * @sa gf::GradientNoise2D, gf::FractalNoise2D</span></div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span> <span class="comment"> */</span></div><div class="line"><a name="l00238"></a><span class="lineno"><a class="line" href="classgf_1_1_perlin_noise2_d.html"> 238</a></span>  <span class="keyword">class</span> <a class="code" href="_portability_8h.html#a0169111e0ff1d9fe0f23dee89e904d57">GF_API</a> <a class="code" href="classgf_1_1_perlin_noise2_d.html">PerlinNoise2D</a> : <span class="keyword">public</span> <a class="code" href="classgf_1_1_noise2_d.html">Noise2D</a> {</div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  <span class="comment">/**</span></div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span> <span class="comment"> * @brief Constructor</span></div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span> <span class="comment"> *</span></div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span> <span class="comment"> * @param random A random engine</span></div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span> <span class="comment"> * @param scale The scale factor</span></div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span> <span class="comment"> * @param octaves The number of octaves</span></div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span> <span class="comment"> */</span></div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  <a class="code" href="classgf_1_1_perlin_noise2_d.html#a627f4f63bb3425ff2eee6b9196e78f33">PerlinNoise2D</a>(<a class="code" href="classgf_1_1_random.html">Random</a>& random, <span class="keywordtype">double</span> scale, std::size_t octaves = 8);</div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span> </div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classgf_1_1_perlin_noise2_d.html#a1a4808d7826d038a697e5a4348256b89">getValue</a>(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y) <span class="keyword">override</span>;</div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span> </div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  <a class="code" href="classgf_1_1_gradient_noise2_d.html">GradientNoise2D</a> m_gradient;</div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  <a class="code" href="classgf_1_1_fractal_noise2_d.html">FractalNoise2D</a> m_fractal;</div><div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  };</div><div class="line"><a name="l00255"></a><span class="lineno"> 255</span> </div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  <span class="comment">/**</span></div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span> <span class="comment"> * @ingroup core</span></div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span> <span class="comment"> * @brief Perlin 3D noise</span></div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span> <span class="comment"> *</span></div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span> <span class="comment"> * [Perlin noise](https://en.wikipedia.org/wiki/Perlin_noise) is the</span></div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span> <span class="comment"> * combination of a fractal noise and a gradient noise.</span></div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span> <span class="comment"> *</span></div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span> <span class="comment"> * @sa gf::GradientNoise3D, gf::FractalNoise3D</span></div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span> <span class="comment"> */</span></div><div class="line"><a name="l00265"></a><span class="lineno"><a class="line" href="classgf_1_1_perlin_noise3_d.html"> 265</a></span>  <span class="keyword">class</span> <a class="code" href="_portability_8h.html#a0169111e0ff1d9fe0f23dee89e904d57">GF_API</a> <a class="code" href="classgf_1_1_perlin_noise3_d.html">PerlinNoise3D</a> : <span class="keyword">public</span> <a class="code" href="classgf_1_1_noise3_d.html">Noise3D</a> {</div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  <span class="comment">/**</span></div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span> <span class="comment"> * @brief Constructor</span></div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span> <span class="comment"> *</span></div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span> <span class="comment"> * @param random A random engine</span></div><div class="line"><a name="l00271"></a><span class="lineno"> 271</span> <span class="comment"> * @param scale The scale factor</span></div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span> <span class="comment"> * @param octaves The number of octaves</span></div><div class="line"><a name="l00273"></a><span class="lineno"> 273</span> <span class="comment"> */</span></div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  <a class="code" href="classgf_1_1_perlin_noise3_d.html#a775f2928c19e1f2852b89b8ad25e9693">PerlinNoise3D</a>(<a class="code" href="classgf_1_1_random.html">Random</a>& random, <span class="keywordtype">double</span> scale, std::size_t octaves = 8);</div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span> </div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classgf_1_1_perlin_noise3_d.html#abac860f0e8c09854797999a2c3605b21">getValue</a>(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y, <span class="keywordtype">double</span> z) <span class="keyword">override</span>;</div><div class="line"><a name="l00277"></a><span class="lineno"> 277</span> </div><div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  <a class="code" href="classgf_1_1_gradient_noise3_d.html">GradientNoise3D</a> m_gradient;</div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  <a class="code" href="classgf_1_1_fractal_noise3_d.html">FractalNoise3D</a> m_fractal;</div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  };</div><div class="line"><a name="l00282"></a><span class="lineno"> 282</span> </div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span> </div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  <span class="comment">/**</span></div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span> <span class="comment"> * @ingroup core</span></div><div class="line"><a name="l00286"></a><span class="lineno"> 286</span> <span class="comment"> * @brief Simplex 2D noise</span></div><div class="line"><a name="l00287"></a><span class="lineno"> 287</span> <span class="comment"> *</span></div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span> <span class="comment"> * [Simplex noise](https://en.wikipedia.org/wiki/Simplex_noise) is a lattice</span></div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span> <span class="comment"> * noise based on gradients put on a simplex.</span></div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span> <span class="comment"> *</span></div><div class="line"><a name="l00291"></a><span class="lineno"> 291</span> <span class="comment"> * This implementation is limited to 2D noise and is *not* submitted to the</span></div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span> <span class="comment"> * patent that covers simplex noise.</span></div><div class="line"><a name="l00293"></a><span class="lineno"> 293</span> <span class="comment"> *</span></div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span> <span class="comment"> * @sa gf::GradientNoise2D</span></div><div class="line"><a name="l00295"></a><span class="lineno"> 295</span> <span class="comment"> */</span></div><div class="line"><a name="l00296"></a><span class="lineno"><a class="line" href="classgf_1_1_simplex_noise2_d.html"> 296</a></span>  <span class="keyword">class</span> <a class="code" href="_portability_8h.html#a0169111e0ff1d9fe0f23dee89e904d57">GF_API</a> <a class="code" href="classgf_1_1_simplex_noise2_d.html">SimplexNoise2D</a> : <span class="keyword">public</span> <a class="code" href="classgf_1_1_noise2_d.html">Noise2D</a> {</div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  <span class="comment">/**</span></div><div class="line"><a name="l00299"></a><span class="lineno"> 299</span> <span class="comment"> * @brief Constructor</span></div><div class="line"><a name="l00300"></a><span class="lineno"> 300</span> <span class="comment"> *</span></div><div class="line"><a name="l00301"></a><span class="lineno"> 301</span> <span class="comment"> * @param random A random engine</span></div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span> <span class="comment"> */</span></div><div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  <a class="code" href="classgf_1_1_simplex_noise2_d.html#ac534c01315cde966f9bc0f3978dcffa5">SimplexNoise2D</a>(<a class="code" href="classgf_1_1_random.html">Random</a>& random);</div><div class="line"><a name="l00304"></a><span class="lineno"> 304</span> </div><div class="line"><a name="l00305"></a><span class="lineno"> 305</span>  <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classgf_1_1_simplex_noise2_d.html#a477a07e0ad7730fafb301907cc0ebf6c">getValue</a>(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y) <span class="keyword">override</span>;</div><div class="line"><a name="l00306"></a><span class="lineno"> 306</span> </div><div class="line"><a name="l00307"></a><span class="lineno"> 307</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00308"></a><span class="lineno"> 308</span>  std::array<uint8_t, 256> m_perm;</div><div class="line"><a name="l00309"></a><span class="lineno"> 309</span> </div><div class="line"><a name="l00310"></a><span class="lineno"> 310</span>  <span class="keyword">const</span> Vector2d& at(uint8_t i, uint8_t j) <span class="keyword">const</span>;</div><div class="line"><a name="l00311"></a><span class="lineno"> 311</span>  };</div><div class="line"><a name="l00312"></a><span class="lineno"> 312</span> </div><div class="line"><a name="l00313"></a><span class="lineno"> 313</span> </div><div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  <span class="comment">/**</span></div><div class="line"><a name="l00315"></a><span class="lineno"> 315</span> <span class="comment"> * @ingroup core</span></div><div class="line"><a name="l00316"></a><span class="lineno"> 316</span> <span class="comment"> * @brief OpenSimplex 2D noise</span></div><div class="line"><a name="l00317"></a><span class="lineno"> 317</span> <span class="comment"> *</span></div><div class="line"><a name="l00318"></a><span class="lineno"> 318</span> <span class="comment"> * [OpenSimplex noise](https://en.wikipedia.org/wiki/OpenSimplex_noise) is a lattice</span></div><div class="line"><a name="l00319"></a><span class="lineno"> 319</span> <span class="comment"> * noise very similar to simplex noise.</span></div><div class="line"><a name="l00320"></a><span class="lineno"> 320</span> <span class="comment"> *</span></div><div class="line"><a name="l00321"></a><span class="lineno"> 321</span> <span class="comment"> * @sa gf::SimplexNoise2D</span></div><div class="line"><a name="l00322"></a><span class="lineno"> 322</span> <span class="comment"> */</span></div><div class="line"><a name="l00323"></a><span class="lineno"><a class="line" href="classgf_1_1_open_simplex_noise2_d.html"> 323</a></span>  <span class="keyword">class</span> <a class="code" href="_portability_8h.html#a0169111e0ff1d9fe0f23dee89e904d57">GF_API</a> <a class="code" href="classgf_1_1_open_simplex_noise2_d.html">OpenSimplexNoise2D</a> : <span class="keyword">public</span> <a class="code" href="classgf_1_1_noise2_d.html">Noise2D</a> {</div><div class="line"><a name="l00324"></a><span class="lineno"> 324</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00325"></a><span class="lineno"> 325</span>  <span class="comment">/**</span></div><div class="line"><a name="l00326"></a><span class="lineno"> 326</span> <span class="comment"> * @brief Constructor</span></div><div class="line"><a name="l00327"></a><span class="lineno"> 327</span> <span class="comment"> *</span></div><div class="line"><a name="l00328"></a><span class="lineno"> 328</span> <span class="comment"> * @param random A random engine</span></div><div class="line"><a name="l00329"></a><span class="lineno"> 329</span> <span class="comment"> */</span></div><div class="line"><a name="l00330"></a><span class="lineno"> 330</span>  <a class="code" href="classgf_1_1_open_simplex_noise2_d.html#a299e04a6e7bac90a9e3952dd960b53fe">OpenSimplexNoise2D</a>(<a class="code" href="classgf_1_1_random.html">Random</a>& random);</div><div class="line"><a name="l00331"></a><span class="lineno"> 331</span> </div><div class="line"><a name="l00332"></a><span class="lineno"> 332</span>  <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classgf_1_1_open_simplex_noise2_d.html#acf5d2bdb65a1339752a39f896e1dc01e">getValue</a>(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y) <span class="keyword">override</span>;</div><div class="line"><a name="l00333"></a><span class="lineno"> 333</span> </div><div class="line"><a name="l00334"></a><span class="lineno"> 334</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00335"></a><span class="lineno"> 335</span>  std::array<uint8_t, 256> m_perm;</div><div class="line"><a name="l00336"></a><span class="lineno"> 336</span> </div><div class="line"><a name="l00337"></a><span class="lineno"> 337</span>  <span class="keyword">const</span> Vector2d& at(uint8_t i, uint8_t j) <span class="keyword">const</span>;</div><div class="line"><a name="l00338"></a><span class="lineno"> 338</span>  };</div><div class="line"><a name="l00339"></a><span class="lineno"> 339</span> </div><div class="line"><a name="l00340"></a><span class="lineno"> 340</span>  <span class="comment">/**</span></div><div class="line"><a name="l00341"></a><span class="lineno"> 341</span> <span class="comment"> * @ingroup core</span></div><div class="line"><a name="l00342"></a><span class="lineno"> 342</span> <span class="comment"> * @brief OpenSimplex3D noise</span></div><div class="line"><a name="l00343"></a><span class="lineno"> 343</span> <span class="comment"> *</span></div><div class="line"><a name="l00344"></a><span class="lineno"> 344</span> <span class="comment"> * [OpenSimplex noise](https://en.wikipedia.org/wiki/OpenSimplex_noise) is a lattice</span></div><div class="line"><a name="l00345"></a><span class="lineno"> 345</span> <span class="comment"> * noise very similar to simplex noise.</span></div><div class="line"><a name="l00346"></a><span class="lineno"> 346</span> <span class="comment"> *</span></div><div class="line"><a name="l00347"></a><span class="lineno"> 347</span> <span class="comment"> * @sa gf::SimplexNoise</span></div><div class="line"><a name="l00348"></a><span class="lineno"> 348</span> <span class="comment"> */</span></div><div class="line"><a name="l00349"></a><span class="lineno"><a class="line" href="classgf_1_1_open_simplex_noise3_d.html"> 349</a></span>  <span class="keyword">class</span> <a class="code" href="_portability_8h.html#a0169111e0ff1d9fe0f23dee89e904d57">GF_API</a> <a class="code" href="classgf_1_1_open_simplex_noise3_d.html">OpenSimplexNoise3D</a> : <span class="keyword">public</span> <a class="code" href="classgf_1_1_noise3_d.html">Noise3D</a> {</div><div class="line"><a name="l00350"></a><span class="lineno"> 350</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00351"></a><span class="lineno"> 351</span>  <span class="comment">/**</span></div><div class="line"><a name="l00352"></a><span class="lineno"> 352</span> <span class="comment"> * @brief Constructor</span></div><div class="line"><a name="l00353"></a><span class="lineno"> 353</span> <span class="comment"> *</span></div><div class="line"><a name="l00354"></a><span class="lineno"> 354</span> <span class="comment"> * @param random A random engine</span></div><div class="line"><a name="l00355"></a><span class="lineno"> 355</span> <span class="comment"> */</span></div><div class="line"><a name="l00356"></a><span class="lineno"> 356</span>  <a class="code" href="classgf_1_1_open_simplex_noise3_d.html#a8b902790ad9cec8fe0cba6a0e557d496">OpenSimplexNoise3D</a>(<a class="code" href="classgf_1_1_random.html">Random</a>& random);</div><div class="line"><a name="l00357"></a><span class="lineno"> 357</span> </div><div class="line"><a name="l00358"></a><span class="lineno"> 358</span>  <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classgf_1_1_open_simplex_noise3_d.html#a19fa005a2687947254e62faa49a38040">getValue</a>(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y, <span class="keywordtype">double</span> z) <span class="keyword">override</span>;</div><div class="line"><a name="l00359"></a><span class="lineno"> 359</span> </div><div class="line"><a name="l00360"></a><span class="lineno"> 360</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00361"></a><span class="lineno"> 361</span>  std::array<uint8_t, 256> m_perm;</div><div class="line"><a name="l00362"></a><span class="lineno"> 362</span> </div><div class="line"><a name="l00363"></a><span class="lineno"> 363</span>  <span class="keyword">const</span> Vector3d& at(uint8_t i, uint8_t j, uint8_t k) <span class="keyword">const</span>;</div><div class="line"><a name="l00364"></a><span class="lineno"> 364</span>  };</div><div class="line"><a name="l00365"></a><span class="lineno"> 365</span> </div><div class="line"><a name="l00366"></a><span class="lineno"> 366</span>  <span class="comment">/**</span></div><div class="line"><a name="l00367"></a><span class="lineno"> 367</span> <span class="comment"> * @ingroup core</span></div><div class="line"><a name="l00368"></a><span class="lineno"> 368</span> <span class="comment"> * @brief Wavelet 3D noise</span></div><div class="line"><a name="l00369"></a><span class="lineno"> 369</span> <span class="comment"> *</span></div><div class="line"><a name="l00370"></a><span class="lineno"> 370</span> <span class="comment"> * @sa [Wavelet Noise. Robert L. Cook, Tony DeRose, Pixar Animation Studios.](https://graphics.pixar.com/library/WaveletNoise/paper.pdf)</span></div><div class="line"><a name="l00371"></a><span class="lineno"> 371</span> <span class="comment"> */</span></div><div class="line"><a name="l00372"></a><span class="lineno"><a class="line" href="classgf_1_1_wavelet_noise3_d.html"> 372</a></span>  <span class="keyword">class</span> <a class="code" href="_portability_8h.html#a0169111e0ff1d9fe0f23dee89e904d57">GF_API</a> <a class="code" href="classgf_1_1_wavelet_noise3_d.html">WaveletNoise3D</a> : <span class="keyword">public</span> <a class="code" href="classgf_1_1_noise3_d.html">Noise3D</a> {</div><div class="line"><a name="l00373"></a><span class="lineno"> 373</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00374"></a><span class="lineno"> 374</span>  <span class="comment">/**</span></div><div class="line"><a name="l00375"></a><span class="lineno"> 375</span> <span class="comment"> * @brief Constructor</span></div><div class="line"><a name="l00376"></a><span class="lineno"> 376</span> <span class="comment"> *</span></div><div class="line"><a name="l00377"></a><span class="lineno"> 377</span> <span class="comment"> * @param random A random engine</span></div><div class="line"><a name="l00378"></a><span class="lineno"> 378</span> <span class="comment"> * @param n Wavelet tile size</span></div><div class="line"><a name="l00379"></a><span class="lineno"> 379</span> <span class="comment"> */</span></div><div class="line"><a name="l00380"></a><span class="lineno"> 380</span>  <a class="code" href="classgf_1_1_wavelet_noise3_d.html#ab3dd2fa965498edb82bd7adafb19b587">WaveletNoise3D</a>(<a class="code" href="classgf_1_1_random.html">Random</a>& random, std::ptrdiff_t n = 32);</div><div class="line"><a name="l00381"></a><span class="lineno"> 381</span> </div><div class="line"><a name="l00382"></a><span class="lineno"> 382</span>  <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classgf_1_1_wavelet_noise3_d.html#aa2b256aee7fb8d24402a8ca498abc44c">getValue</a>(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y, <span class="keywordtype">double</span> z) <span class="keyword">override</span>;</div><div class="line"><a name="l00383"></a><span class="lineno"> 383</span> </div><div class="line"><a name="l00384"></a><span class="lineno"> 384</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00385"></a><span class="lineno"> 385</span>  std::ptrdiff_t m_n;</div><div class="line"><a name="l00386"></a><span class="lineno"> 386</span>  std::vector<<span class="keywordtype">double</span>> m_data;</div><div class="line"><a name="l00387"></a><span class="lineno"> 387</span>  };</div><div class="line"><a name="l00388"></a><span class="lineno"> 388</span> </div><div class="line"><a name="l00389"></a><span class="lineno"> 389</span>  <span class="comment">/**</span></div><div class="line"><a name="l00390"></a><span class="lineno"> 390</span> <span class="comment"> * @ingroup core</span></div><div class="line"><a name="l00391"></a><span class="lineno"> 391</span> <span class="comment"> * @brief Worley 2D noise</span></div><div class="line"><a name="l00392"></a><span class="lineno"> 392</span> <span class="comment"> *</span></div><div class="line"><a name="l00393"></a><span class="lineno"> 393</span> <span class="comment"> * [Worley noise](https://en.wikipedia.org/wiki/Worley_noise) is a point</span></div><div class="line"><a name="l00394"></a><span class="lineno"> 394</span> <span class="comment"> * based noise. It is also known as Voronoi noise or cellular noise or</span></div><div class="line"><a name="l00395"></a><span class="lineno"> 395</span> <span class="comment"> * simply cell noise.</span></div><div class="line"><a name="l00396"></a><span class="lineno"> 396</span> <span class="comment"> */</span></div><div class="line"><a name="l00397"></a><span class="lineno"><a class="line" href="classgf_1_1_worley_noise2_d.html"> 397</a></span>  <span class="keyword">class</span> <a class="code" href="_portability_8h.html#a0169111e0ff1d9fe0f23dee89e904d57">GF_API</a> WorleyNoise2D : <span class="keyword">public</span> <a class="code" href="classgf_1_1_noise2_d.html">Noise2D</a> {</div><div class="line"><a name="l00398"></a><span class="lineno"> 398</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00399"></a><span class="lineno"> 399</span>  <span class="comment">/**</span></div><div class="line"><a name="l00400"></a><span class="lineno"> 400</span> <span class="comment"> * @brief Constructor</span></div><div class="line"><a name="l00401"></a><span class="lineno"> 401</span> <span class="comment"> *</span></div><div class="line"><a name="l00402"></a><span class="lineno"> 402</span> <span class="comment"> * @param random A random engine</span></div><div class="line"><a name="l00403"></a><span class="lineno"> 403</span> <span class="comment"> * @param count The number of points</span></div><div class="line"><a name="l00404"></a><span class="lineno"> 404</span> <span class="comment"> * @param distance A distance function</span></div><div class="line"><a name="l00405"></a><span class="lineno"> 405</span> <span class="comment"> * @param coeffs The coefficients for the noise</span></div><div class="line"><a name="l00406"></a><span class="lineno"> 406</span> <span class="comment"> */</span></div><div class="line"><a name="l00407"></a><span class="lineno"> 407</span>  <a class="code" href="classgf_1_1_worley_noise2_d.html#ab57c65d91676aeed305c0d4c17007f82">WorleyNoise2D</a>(<a class="code" href="classgf_1_1_random.html">Random</a>& random, std::size_t count, <a class="code" href="classgf_1_1_worley_noise2_d.html#ab57c65d91676aeed305c0d4c17007f82">Distance2</a><<span class="keywordtype">double</span>> <a class="code" href="classgf_1_1_worley_noise2_d.html#ab57c65d91676aeed305c0d4c17007f82">distance</a>, <a class="code" href="classgf_1_1_worley_noise2_d.html#ab57c65d91676aeed305c0d4c17007f82">std</a>::<a class="code" href="classgf_1_1_worley_noise2_d.html#ab57c65d91676aeed305c0d4c17007f82">vector</a><<span class="keywordtype">double</span>> <a class="code" href="classgf_1_1_worley_noise2_d.html#ab57c65d91676aeed305c0d4c17007f82">coeffs</a>);</div><div class="line"><a name="l00408"></a><span class="lineno"> 408</span> </div><div class="line"><a name="l00409"></a><span class="lineno"> 409</span>  <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classgf_1_1_worley_noise2_d.html#a0d3189af625c4619ea04cfb953d6e3bf">getValue</a>(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y) <span class="keyword">override</span>;</div><div class="line"><a name="l00410"></a><span class="lineno"> 410</span> </div><div class="line"><a name="l00411"></a><span class="lineno"> 411</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00412"></a><span class="lineno"> 412</span>  std::size_t m_count;</div><div class="line"><a name="l00413"></a><span class="lineno"> 413</span>  Distance2<<span class="keywordtype">double</span>> m_distance;</div><div class="line"><a name="l00414"></a><span class="lineno"> 414</span>  std::vector<<span class="keywordtype">double</span>> m_coeffs;</div><div class="line"><a name="l00415"></a><span class="lineno"> 415</span>  std::vector<Vector2d> m_cells;</div><div class="line"><a name="l00416"></a><span class="lineno"> 416</span>  };</div><div class="line"><a name="l00417"></a><span class="lineno"> 417</span> </div><div class="line"><a name="l00418"></a><span class="lineno"> 418</span> </div><div class="line"><a name="l00419"></a><span class="lineno"> 419</span>  <span class="comment">/**</span></div><div class="line"><a name="l00420"></a><span class="lineno"> 420</span> <span class="comment"> * @ingroup core</span></div><div class="line"><a name="l00421"></a><span class="lineno"> 421</span> <span class="comment"> * @brief Multi Fractal 2D noise</span></div><div class="line"><a name="l00422"></a><span class="lineno"> 422</span> <span class="comment"> *</span></div><div class="line"><a name="l00423"></a><span class="lineno"> 423</span> <span class="comment"> */</span></div><div class="line"><a name="l00424"></a><span class="lineno"><a class="line" href="classgf_1_1_multifractal2_d.html"> 424</a></span>  <span class="keyword">class</span> <a class="code" href="_portability_8h.html#a0169111e0ff1d9fe0f23dee89e904d57">GF_API</a> <a class="code" href="classgf_1_1_multifractal2_d.html">Multifractal2D</a> : <span class="keyword">public</span> <a class="code" href="classgf_1_1_noise2_d.html">Noise2D</a> {</div><div class="line"><a name="l00425"></a><span class="lineno"> 425</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00426"></a><span class="lineno"> 426</span>  <span class="comment">/**</span></div><div class="line"><a name="l00427"></a><span class="lineno"> 427</span> <span class="comment"> * @brief Constructor</span></div><div class="line"><a name="l00428"></a><span class="lineno"> 428</span> <span class="comment"> *</span></div><div class="line"><a name="l00429"></a><span class="lineno"> 429</span> <span class="comment"> * @param noise The basic noise function</span></div><div class="line"><a name="l00430"></a><span class="lineno"> 430</span> <span class="comment"> * @param scale The scale factor</span></div><div class="line"><a name="l00431"></a><span class="lineno"> 431</span> <span class="comment"> * @param octaves The number of octaves</span></div><div class="line"><a name="l00432"></a><span class="lineno"> 432</span> <span class="comment"> * @param lacunarity The factor applied to frequency</span></div><div class="line"><a name="l00433"></a><span class="lineno"> 433</span> <span class="comment"> * @param persistence The factor applied to amplitude</span></div><div class="line"><a name="l00434"></a><span class="lineno"> 434</span> <span class="comment"> * @param dimension The contrast between the layers</span></div><div class="line"><a name="l00435"></a><span class="lineno"> 435</span> <span class="comment"> */</span></div><div class="line"><a name="l00436"></a><span class="lineno"> 436</span>  <a class="code" href="classgf_1_1_multifractal2_d.html#a4dc21eafd421277b8a5c743a5897c2be">Multifractal2D</a>(<a class="code" href="classgf_1_1_noise2_d.html">Noise2D</a>& noise, <span class="keywordtype">double</span> scale, std::size_t octaves = 8, <span class="keywordtype">double</span> lacunarity = 2.0, <span class="keywordtype">double</span> persistence = 0.5, <span class="keywordtype">double</span> dimension = 1.0);</div><div class="line"><a name="l00437"></a><span class="lineno"> 437</span> </div><div class="line"><a name="l00438"></a><span class="lineno"> 438</span>  <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classgf_1_1_multifractal2_d.html#a89564f0b5ebaa850e7783ba5b8bbad13">getValue</a>(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y) <span class="keyword">override</span>;</div><div class="line"><a name="l00439"></a><span class="lineno"> 439</span> </div><div class="line"><a name="l00440"></a><span class="lineno"> 440</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00441"></a><span class="lineno"> 441</span>  <a class="code" href="classgf_1_1_noise2_d.html">Noise2D</a>& m_noise;</div><div class="line"><a name="l00442"></a><span class="lineno"> 442</span>  <span class="keywordtype">double</span> m_scale;</div><div class="line"><a name="l00443"></a><span class="lineno"> 443</span>  std::size_t m_octaves;</div><div class="line"><a name="l00444"></a><span class="lineno"> 444</span>  <span class="keywordtype">double</span> m_lacunarity;</div><div class="line"><a name="l00445"></a><span class="lineno"> 445</span>  <span class="keywordtype">double</span> m_persistence;</div><div class="line"><a name="l00446"></a><span class="lineno"> 446</span>  <span class="keywordtype">double</span> m_dimension;</div><div class="line"><a name="l00447"></a><span class="lineno"> 447</span>  };</div><div class="line"><a name="l00448"></a><span class="lineno"> 448</span> </div><div class="line"><a name="l00449"></a><span class="lineno"> 449</span> </div><div class="line"><a name="l00450"></a><span class="lineno"> 450</span>  <span class="comment">/**</span></div><div class="line"><a name="l00451"></a><span class="lineno"> 451</span> <span class="comment"> * @ingroup core</span></div><div class="line"><a name="l00452"></a><span class="lineno"> 452</span> <span class="comment"> * @brief Hetero Terrain 2D noise</span></div><div class="line"><a name="l00453"></a><span class="lineno"> 453</span> <span class="comment"> *</span></div><div class="line"><a name="l00454"></a><span class="lineno"> 454</span> <span class="comment"> */</span></div><div class="line"><a name="l00455"></a><span class="lineno"><a class="line" href="classgf_1_1_hetero_terrain2_d.html"> 455</a></span>  <span class="keyword">class</span> <a class="code" href="_portability_8h.html#a0169111e0ff1d9fe0f23dee89e904d57">GF_API</a> <a class="code" href="classgf_1_1_hetero_terrain2_d.html">HeteroTerrain2D</a> : <span class="keyword">public</span> <a class="code" href="classgf_1_1_noise2_d.html">Noise2D</a> {</div><div class="line"><a name="l00456"></a><span class="lineno"> 456</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00457"></a><span class="lineno"> 457</span>  <span class="comment">/**</span></div><div class="line"><a name="l00458"></a><span class="lineno"> 458</span> <span class="comment"> * @brief Constructor</span></div><div class="line"><a name="l00459"></a><span class="lineno"> 459</span> <span class="comment"> *</span></div><div class="line"><a name="l00460"></a><span class="lineno"> 460</span> <span class="comment"> * @param noise The basic noise function</span></div><div class="line"><a name="l00461"></a><span class="lineno"> 461</span> <span class="comment"> * @param scale The scale factor</span></div><div class="line"><a name="l00462"></a><span class="lineno"> 462</span> <span class="comment"> * @param offset The offset</span></div><div class="line"><a name="l00463"></a><span class="lineno"> 463</span> <span class="comment"> * @param octaves The number of octaves</span></div><div class="line"><a name="l00464"></a><span class="lineno"> 464</span> <span class="comment"> * @param lacunarity The factor applied to frequency</span></div><div class="line"><a name="l00465"></a><span class="lineno"> 465</span> <span class="comment"> * @param persistence The factor applied to amplitude</span></div><div class="line"><a name="l00466"></a><span class="lineno"> 466</span> <span class="comment"> * @param dimension The contrast between the layers</span></div><div class="line"><a name="l00467"></a><span class="lineno"> 467</span> <span class="comment"> */</span></div><div class="line"><a name="l00468"></a><span class="lineno"> 468</span>  <a class="code" href="classgf_1_1_hetero_terrain2_d.html#aa6eeeb98d77ae85643e71b656d2ce61f">HeteroTerrain2D</a>(<a class="code" href="classgf_1_1_noise2_d.html">Noise2D</a>& noise, <span class="keywordtype">double</span> scale, <span class="keywordtype">double</span> offset = 0.0, std::size_t octaves = 8, <span class="keywordtype">double</span> lacunarity = 2.0, <span class="keywordtype">double</span> persistence = 0.5, <span class="keywordtype">double</span> dimension = 1.0);</div><div class="line"><a name="l00469"></a><span class="lineno"> 469</span> </div><div class="line"><a name="l00470"></a><span class="lineno"> 470</span>  <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classgf_1_1_hetero_terrain2_d.html#a0ad69590f51b7f4172792cbacec14bad">getValue</a>(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y) <span class="keyword">override</span>;</div><div class="line"><a name="l00471"></a><span class="lineno"> 471</span> </div><div class="line"><a name="l00472"></a><span class="lineno"> 472</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00473"></a><span class="lineno"> 473</span>  <a class="code" href="classgf_1_1_noise2_d.html">Noise2D</a>& m_noise;</div><div class="line"><a name="l00474"></a><span class="lineno"> 474</span>  <span class="keywordtype">double</span> m_scale;</div><div class="line"><a name="l00475"></a><span class="lineno"> 475</span>  <span class="keywordtype">double</span> m_offset;</div><div class="line"><a name="l00476"></a><span class="lineno"> 476</span>  std::size_t m_octaves;</div><div class="line"><a name="l00477"></a><span class="lineno"> 477</span>  <span class="keywordtype">double</span> m_lacunarity;</div><div class="line"><a name="l00478"></a><span class="lineno"> 478</span>  <span class="keywordtype">double</span> m_persistence;</div><div class="line"><a name="l00479"></a><span class="lineno"> 479</span>  <span class="keywordtype">double</span> m_dimension;</div><div class="line"><a name="l00480"></a><span class="lineno"> 480</span>  };</div><div class="line"><a name="l00481"></a><span class="lineno"> 481</span> </div><div class="line"><a name="l00482"></a><span class="lineno"> 482</span>  <span class="comment">/**</span></div><div class="line"><a name="l00483"></a><span class="lineno"> 483</span> <span class="comment"> * @ingroup core</span></div><div class="line"><a name="l00484"></a><span class="lineno"> 484</span> <span class="comment"> * @brief Hybrid Multifractal 2D noise</span></div><div class="line"><a name="l00485"></a><span class="lineno"> 485</span> <span class="comment"> *</span></div><div class="line"><a name="l00486"></a><span class="lineno"> 486</span> <span class="comment"> */</span></div><div class="line"><a name="l00487"></a><span class="lineno"><a class="line" href="classgf_1_1_hybrid_multifractal2_d.html"> 487</a></span>  <span class="keyword">class</span> <a class="code" href="_portability_8h.html#a0169111e0ff1d9fe0f23dee89e904d57">GF_API</a> <a class="code" href="classgf_1_1_hybrid_multifractal2_d.html">HybridMultifractal2D</a> : <span class="keyword">public</span> <a class="code" href="classgf_1_1_noise2_d.html">Noise2D</a> {</div><div class="line"><a name="l00488"></a><span class="lineno"> 488</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00489"></a><span class="lineno"> 489</span>  <span class="comment">/**</span></div><div class="line"><a name="l00490"></a><span class="lineno"> 490</span> <span class="comment"> * @brief Constructor</span></div><div class="line"><a name="l00491"></a><span class="lineno"> 491</span> <span class="comment"> *</span></div><div class="line"><a name="l00492"></a><span class="lineno"> 492</span> <span class="comment"> * @param noise The basic noise function</span></div><div class="line"><a name="l00493"></a><span class="lineno"> 493</span> <span class="comment"> * @param scale The scale factor</span></div><div class="line"><a name="l00494"></a><span class="lineno"> 494</span> <span class="comment"> * @param offset The offset</span></div><div class="line"><a name="l00495"></a><span class="lineno"> 495</span> <span class="comment"> * @param octaves The number of octaves</span></div><div class="line"><a name="l00496"></a><span class="lineno"> 496</span> <span class="comment"> * @param lacunarity The factor applied to frequency</span></div><div class="line"><a name="l00497"></a><span class="lineno"> 497</span> <span class="comment"> * @param persistence The factor applied to amplitude</span></div><div class="line"><a name="l00498"></a><span class="lineno"> 498</span> <span class="comment"> * @param dimension The contrast between the layers</span></div><div class="line"><a name="l00499"></a><span class="lineno"> 499</span> <span class="comment"> */</span></div><div class="line"><a name="l00500"></a><span class="lineno"> 500</span>  <a class="code" href="classgf_1_1_hybrid_multifractal2_d.html#aee66cce759568d3f808af696a4680613">HybridMultifractal2D</a>(<a class="code" href="classgf_1_1_noise2_d.html">Noise2D</a>& noise, <span class="keywordtype">double</span> scale, <span class="keywordtype">double</span> offset = 0.0, std::size_t octaves = 8, <span class="keywordtype">double</span> lacunarity = 2.0, <span class="keywordtype">double</span> persistence = 0.5, <span class="keywordtype">double</span> dimension = 1.0);</div><div class="line"><a name="l00501"></a><span class="lineno"> 501</span> </div><div class="line"><a name="l00502"></a><span class="lineno"> 502</span>  <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classgf_1_1_hybrid_multifractal2_d.html#aa3552570495377a1f54e942212719ef4">getValue</a>(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y) <span class="keyword">override</span>;</div><div class="line"><a name="l00503"></a><span class="lineno"> 503</span> </div><div class="line"><a name="l00504"></a><span class="lineno"> 504</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00505"></a><span class="lineno"> 505</span>  <a class="code" href="classgf_1_1_noise2_d.html">Noise2D</a>& m_noise;</div><div class="line"><a name="l00506"></a><span class="lineno"> 506</span>  <span class="keywordtype">double</span> m_scale;</div><div class="line"><a name="l00507"></a><span class="lineno"> 507</span>  <span class="keywordtype">double</span> m_offset;</div><div class="line"><a name="l00508"></a><span class="lineno"> 508</span>  std::size_t m_octaves;</div><div class="line"><a name="l00509"></a><span class="lineno"> 509</span>  <span class="keywordtype">double</span> m_lacunarity;</div><div class="line"><a name="l00510"></a><span class="lineno"> 510</span>  <span class="keywordtype">double</span> m_persistence;</div><div class="line"><a name="l00511"></a><span class="lineno"> 511</span>  <span class="keywordtype">double</span> m_dimension;</div><div class="line"><a name="l00512"></a><span class="lineno"> 512</span>  };</div><div class="line"><a name="l00513"></a><span class="lineno"> 513</span> </div><div class="line"><a name="l00514"></a><span class="lineno"> 514</span>  <span class="comment">/**</span></div><div class="line"><a name="l00515"></a><span class="lineno"> 515</span> <span class="comment"> * @ingroup core</span></div><div class="line"><a name="l00516"></a><span class="lineno"> 516</span> <span class="comment"> * @brief Ridged Multifractal 2D noise</span></div><div class="line"><a name="l00517"></a><span class="lineno"> 517</span> <span class="comment"> *</span></div><div class="line"><a name="l00518"></a><span class="lineno"> 518</span> <span class="comment"> */</span></div><div class="line"><a name="l00519"></a><span class="lineno"><a class="line" href="classgf_1_1_ridged_multifractal2_d.html"> 519</a></span>  <span class="keyword">class</span> <a class="code" href="_portability_8h.html#a0169111e0ff1d9fe0f23dee89e904d57">GF_API</a> <a class="code" href="classgf_1_1_ridged_multifractal2_d.html">RidgedMultifractal2D</a> : <span class="keyword">public</span> <a class="code" href="classgf_1_1_noise2_d.html">Noise2D</a> {</div><div class="line"><a name="l00520"></a><span class="lineno"> 520</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00521"></a><span class="lineno"> 521</span>  <span class="comment">/**</span></div><div class="line"><a name="l00522"></a><span class="lineno"> 522</span> <span class="comment"> * @brief Constructor</span></div><div class="line"><a name="l00523"></a><span class="lineno"> 523</span> <span class="comment"> *</span></div><div class="line"><a name="l00524"></a><span class="lineno"> 524</span> <span class="comment"> * @param noise The basic noise function</span></div><div class="line"><a name="l00525"></a><span class="lineno"> 525</span> <span class="comment"> * @param scale The scale factor</span></div><div class="line"><a name="l00526"></a><span class="lineno"> 526</span> <span class="comment"> * @param offset The offset</span></div><div class="line"><a name="l00527"></a><span class="lineno"> 527</span> <span class="comment"> * @param gain The gain</span></div><div class="line"><a name="l00528"></a><span class="lineno"> 528</span> <span class="comment"> * @param octaves The number of octaves</span></div><div class="line"><a name="l00529"></a><span class="lineno"> 529</span> <span class="comment"> * @param lacunarity The factor applied to frequency</span></div><div class="line"><a name="l00530"></a><span class="lineno"> 530</span> <span class="comment"> * @param persistence The factor applied to amplitude</span></div><div class="line"><a name="l00531"></a><span class="lineno"> 531</span> <span class="comment"> * @param dimension The contrast between the layers</span></div><div class="line"><a name="l00532"></a><span class="lineno"> 532</span> <span class="comment"> */</span></div><div class="line"><a name="l00533"></a><span class="lineno"> 533</span>  <a class="code" href="classgf_1_1_ridged_multifractal2_d.html#a848d0186d6716147a10fbf498913dbb3">RidgedMultifractal2D</a>(<a class="code" href="classgf_1_1_noise2_d.html">Noise2D</a>& noise, <span class="keywordtype">double</span> scale, <span class="keywordtype">double</span> offset = 1.0, <span class="keywordtype">double</span> gain = 1.0, std::size_t octaves = 8, <span class="keywordtype">double</span> lacunarity = 2.0, <span class="keywordtype">double</span> persistence = 0.5, <span class="keywordtype">double</span> dimension = 1.0);</div><div class="line"><a name="l00534"></a><span class="lineno"> 534</span> </div><div class="line"><a name="l00535"></a><span class="lineno"> 535</span>  <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classgf_1_1_ridged_multifractal2_d.html#a31e0db554a080dcdb85d266f490cf222">getValue</a>(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y) <span class="keyword">override</span>;</div><div class="line"><a name="l00536"></a><span class="lineno"> 536</span> </div><div class="line"><a name="l00537"></a><span class="lineno"> 537</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00538"></a><span class="lineno"> 538</span>  <a class="code" href="classgf_1_1_noise2_d.html">Noise2D</a>& m_noise;</div><div class="line"><a name="l00539"></a><span class="lineno"> 539</span>  <span class="keywordtype">double</span> m_scale;</div><div class="line"><a name="l00540"></a><span class="lineno"> 540</span>  <span class="keywordtype">double</span> m_offset;</div><div class="line"><a name="l00541"></a><span class="lineno"> 541</span>  <span class="keywordtype">double</span> m_gain;</div><div class="line"><a name="l00542"></a><span class="lineno"> 542</span>  std::size_t m_octaves;</div><div class="line"><a name="l00543"></a><span class="lineno"> 543</span>  <span class="keywordtype">double</span> m_lacunarity;</div><div class="line"><a name="l00544"></a><span class="lineno"> 544</span>  <span class="keywordtype">double</span> m_persistence;</div><div class="line"><a name="l00545"></a><span class="lineno"> 545</span>  <span class="keywordtype">double</span> m_dimension;</div><div class="line"><a name="l00546"></a><span class="lineno"> 546</span>  };</div><div class="line"><a name="l00547"></a><span class="lineno"> 547</span> </div><div class="line"><a name="l00548"></a><span class="lineno"> 548</span>  <span class="comment">/**</span></div><div class="line"><a name="l00549"></a><span class="lineno"> 549</span> <span class="comment"> * @ingroup core</span></div><div class="line"><a name="l00550"></a><span class="lineno"> 550</span> <span class="comment"> * @brief An adapter that make a 2D noise from a 3D noise</span></div><div class="line"><a name="l00551"></a><span class="lineno"> 551</span> <span class="comment"> *</span></div><div class="line"><a name="l00552"></a><span class="lineno"> 552</span> <span class="comment"> * The 3D point is taken on a plane defined by a normal and a point. The</span></div><div class="line"><a name="l00553"></a><span class="lineno"> 553</span> <span class="comment"> * 3D point has the same @f$ x @f$ and @f$ y @f$ coordinates as the</span></div><div class="line"><a name="l00554"></a><span class="lineno"> 554</span> <span class="comment"> * 2D point, and the plane is used to determine the @f$ z @f$ coordinate.</span></div><div class="line"><a name="l00555"></a><span class="lineno"> 555</span> <span class="comment"> *</span></div><div class="line"><a name="l00556"></a><span class="lineno"> 556</span> <span class="comment"> * By default, the @f$ z = 0 @f$ plane is used.</span></div><div class="line"><a name="l00557"></a><span class="lineno"> 557</span> <span class="comment"> */</span></div><div class="line"><a name="l00558"></a><span class="lineno"><a class="line" href="classgf_1_1_noise3_d_to2_d_adapter.html"> 558</a></span>  <span class="keyword">class</span> <a class="code" href="_portability_8h.html#a0169111e0ff1d9fe0f23dee89e904d57">GF_API</a> <a class="code" href="classgf_1_1_noise3_d_to2_d_adapter.html">Noise3DTo2DAdapter</a> : <span class="keyword">public</span> <a class="code" href="classgf_1_1_noise2_d.html">Noise2D</a> {</div><div class="line"><a name="l00559"></a><span class="lineno"> 559</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00560"></a><span class="lineno"> 560</span>  <span class="comment">/**</span></div><div class="line"><a name="l00561"></a><span class="lineno"> 561</span> <span class="comment"> * @brief Constructor</span></div><div class="line"><a name="l00562"></a><span class="lineno"> 562</span> <span class="comment"> *</span></div><div class="line"><a name="l00563"></a><span class="lineno"> 563</span> <span class="comment"> * @param noise The original 3D noise</span></div><div class="line"><a name="l00564"></a><span class="lineno"> 564</span> <span class="comment"> * @param normal The normal of the 3D plane</span></div><div class="line"><a name="l00565"></a><span class="lineno"> 565</span> <span class="comment"> * @param point The point of the 3D plane</span></div><div class="line"><a name="l00566"></a><span class="lineno"> 566</span> <span class="comment"> */</span></div><div class="line"><a name="l00567"></a><span class="lineno"> 567</span>  <a class="code" href="classgf_1_1_noise3_d_to2_d_adapter.html#a1347c1b9596eb1d561f292683c49e058">Noise3DTo2DAdapter</a>(<a class="code" href="classgf_1_1_noise3_d.html">Noise3D</a>& noise, Vector3d normal = <a class="code" href="classgf_1_1_noise3_d_to2_d_adapter.html#a1347c1b9596eb1d561f292683c49e058">Vector3d</a>(0.0, 0.0, 1.0), Vector3d point = <a class="code" href="classgf_1_1_noise3_d_to2_d_adapter.html#a1347c1b9596eb1d561f292683c49e058">Vector3d</a>(0.0, 0.0, 0.0));</div><div class="line"><a name="l00568"></a><span class="lineno"> 568</span> </div><div class="line"><a name="l00569"></a><span class="lineno"> 569</span>  <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classgf_1_1_noise3_d_to2_d_adapter.html#a5321be1d1fa088f5aa5e1985273aacc4">getValue</a>(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y) <span class="keyword">override</span>;</div><div class="line"><a name="l00570"></a><span class="lineno"> 570</span> </div><div class="line"><a name="l00571"></a><span class="lineno"> 571</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00572"></a><span class="lineno"> 572</span>  <a class="code" href="classgf_1_1_noise3_d.html">Noise3D</a>& m_noise;</div><div class="line"><a name="l00573"></a><span class="lineno"> 573</span>  Vector3d m_normal;</div><div class="line"><a name="l00574"></a><span class="lineno"> 574</span>  Vector3d m_point;</div><div class="line"><a name="l00575"></a><span class="lineno"> 575</span>  };</div><div class="line"><a name="l00576"></a><span class="lineno"> 576</span> </div><div class="line"><a name="l00577"></a><span class="lineno"> 577</span> <span class="preprocessor">#</span><span class="preprocessor">ifndef</span> <span class="preprocessor">DOXYGEN_SHOULD_SKIP_THIS</span></div><div class="line"><a name="l00578"></a><span class="lineno"> 578</span> }</div><div class="line"><a name="l00579"></a><span class="lineno"> 579</span> <span class="preprocessor">#</span><span class="preprocessor">endif</span></div><div class="line"><a name="l00580"></a><span class="lineno"> 580</span> }</div><div class="line"><a name="l00581"></a><span class="lineno"> 581</span> </div><div class="line"><a name="l00582"></a><span class="lineno"> 582</span> <span class="preprocessor">#</span><span class="preprocessor">endif</span> <span class="comment">// GF_NOISES_H</span></div><div class="ttc" id="classgf_1_1_random_html"><div class="ttname"><a href="classgf_1_1_random.html">gf::Random</a></div><div class="ttdoc">A random engine. </div><div class="ttdef"><b>Definition:</b> Random.h:43</div></div>
<div class="ttc" id="classgf_1_1_value_noise2_d_html_a869f257a0df91b33265a36653b162637"><div class="ttname"><a href="classgf_1_1_value_noise2_d.html#a869f257a0df91b33265a36653b162637">gf::ValueNoise2D::ValueNoise2D</a></div><div class="ttdeci">ValueNoise2D(Random &random, Step< double > step)</div><div class="ttdoc">Constructor. </div></div>
<div class="ttc" id="classgf_1_1_ridged_multifractal2_d_html_a31e0db554a080dcdb85d266f490cf222"><div class="ttname"><a href="classgf_1_1_ridged_multifractal2_d.html#a31e0db554a080dcdb85d266f490cf222">gf::RidgedMultifractal2D::getValue</a></div><div class="ttdeci">virtual double getValue(double x, double y) override</div><div class="ttdoc">Take a 2D noise value. </div></div>
<div class="ttc" id="classgf_1_1_ridged_multifractal2_d_html_a848d0186d6716147a10fbf498913dbb3"><div class="ttname"><a href="classgf_1_1_ridged_multifractal2_d.html#a848d0186d6716147a10fbf498913dbb3">gf::RidgedMultifractal2D::RidgedMultifractal2D</a></div><div class="ttdeci">RidgedMultifractal2D(Noise2D &noise, double scale, double offset=1.0, double gain=1.0, std::size_t octaves=8, double lacunarity=2.0, double persistence=0.5, double dimension=1.0)</div><div class="ttdoc">Constructor. </div></div>
<div class="ttc" id="classgf_1_1_worley_noise2_d_html_ab57c65d91676aeed305c0d4c17007f82"><div class="ttname"><a href="classgf_1_1_worley_noise2_d.html#ab57c65d91676aeed305c0d4c17007f82">gf::WorleyNoise2D::WorleyNoise2D</a></div><div class="ttdeci">WorleyNoise2D(Random &random, std::size_t count, Distance2< double > distance, std::vector< double > coeffs)</div><div class="ttdoc">Constructor. </div></div>
<div class="ttc" id="classgf_1_1_noise3_d_to2_d_adapter_html_a5321be1d1fa088f5aa5e1985273aacc4"><div class="ttname"><a href="classgf_1_1_noise3_d_to2_d_adapter.html#a5321be1d1fa088f5aa5e1985273aacc4">gf::Noise3DTo2DAdapter::getValue</a></div><div class="ttdeci">virtual double getValue(double x, double y) override</div><div class="ttdoc">Take a 2D noise value. </div></div>
<div class="ttc" id="classgf_1_1_multifractal2_d_html_a89564f0b5ebaa850e7783ba5b8bbad13"><div class="ttname"><a href="classgf_1_1_multifractal2_d.html#a89564f0b5ebaa850e7783ba5b8bbad13">gf::Multifractal2D::getValue</a></div><div class="ttdeci">virtual double getValue(double x, double y) override</div><div class="ttdoc">Take a 2D noise value. </div></div>
<div class="ttc" id="classgf_1_1_hybrid_multifractal2_d_html_aa3552570495377a1f54e942212719ef4"><div class="ttname"><a href="classgf_1_1_hybrid_multifractal2_d.html#aa3552570495377a1f54e942212719ef4">gf::HybridMultifractal2D::getValue</a></div><div class="ttdeci">virtual double getValue(double x, double y) override</div><div class="ttdoc">Take a 2D noise value. </div></div>
<div class="ttc" id="classgf_1_1_better_gradient_noise2_d_html_a5e1ce865e77d05f1913f3bd1a585a884"><div class="ttname"><a href="classgf_1_1_better_gradient_noise2_d.html#a5e1ce865e77d05f1913f3bd1a585a884">gf::BetterGradientNoise2D::getValue</a></div><div class="ttdeci">virtual double getValue(double x, double y) override</div><div class="ttdoc">Take a 2D noise value. </div></div>
<div class="ttc" id="classgf_1_1_wavelet_noise3_d_html_ab3dd2fa965498edb82bd7adafb19b587"><div class="ttname"><a href="classgf_1_1_wavelet_noise3_d.html#ab3dd2fa965498edb82bd7adafb19b587">gf::WaveletNoise3D::WaveletNoise3D</a></div><div class="ttdeci">WaveletNoise3D(Random &random, std::ptrdiff_t n=32)</div><div class="ttdoc">Constructor. </div></div>
<div class="ttc" id="classgf_1_1_perlin_noise2_d_html_a1a4808d7826d038a697e5a4348256b89"><div class="ttname"><a href="classgf_1_1_perlin_noise2_d.html#a1a4808d7826d038a697e5a4348256b89">gf::PerlinNoise2D::getValue</a></div><div class="ttdeci">virtual double getValue(double x, double y) override</div><div class="ttdoc">Take a 2D noise value. </div></div>
<div class="ttc" id="classgf_1_1_gradient_noise3_d_html"><div class="ttname"><a href="classgf_1_1_gradient_noise3_d.html">gf::GradientNoise3D</a></div><div class="ttdoc">Gradient 3D noise. </div><div class="ttdef"><b>Definition:</b> Noises.h:109</div></div>
<div class="ttc" id="classgf_1_1_gradient_noise2_d_html"><div class="ttname"><a href="classgf_1_1_gradient_noise2_d.html">gf::GradientNoise2D</a></div><div class="ttdoc">Gradient 2D noise. </div><div class="ttdef"><b>Definition:</b> Noises.h:80</div></div>
<div class="ttc" id="classgf_1_1_fractal_noise3_d_html_a43cb9e8afeb9eee85506f33f8d4eacfc"><div class="ttname"><a href="classgf_1_1_fractal_noise3_d.html#a43cb9e8afeb9eee85506f33f8d4eacfc">gf::FractalNoise3D::FractalNoise3D</a></div><div class="ttdeci">FractalNoise3D(Noise3D &noise, double scale, std::size_t octaves=8, double lacunarity=2.0, double persistence=0.5, double dimension=1.0)</div><div class="ttdoc">Constructor. </div></div>
<div class="ttc" id="classgf_1_1_hetero_terrain2_d_html_a0ad69590f51b7f4172792cbacec14bad"><div class="ttname"><a href="classgf_1_1_hetero_terrain2_d.html#a0ad69590f51b7f4172792cbacec14bad">gf::HeteroTerrain2D::getValue</a></div><div class="ttdeci">virtual double getValue(double x, double y) override</div><div class="ttdoc">Take a 2D noise value. </div></div>
<div class="ttc" id="classgf_1_1_hetero_terrain2_d_html_aa6eeeb98d77ae85643e71b656d2ce61f"><div class="ttname"><a href="classgf_1_1_hetero_terrain2_d.html#aa6eeeb98d77ae85643e71b656d2ce61f">gf::HeteroTerrain2D::HeteroTerrain2D</a></div><div class="ttdeci">HeteroTerrain2D(Noise2D &noise, double scale, double offset=0.0, std::size_t octaves=8, double lacunarity=2.0, double persistence=0.5, double dimension=1.0)</div><div class="ttdoc">Constructor. </div></div>
<div class="ttc" id="classgf_1_1_worley_noise2_d_html_a0d3189af625c4619ea04cfb953d6e3bf"><div class="ttname"><a href="classgf_1_1_worley_noise2_d.html#a0d3189af625c4619ea04cfb953d6e3bf">gf::WorleyNoise2D::getValue</a></div><div class="ttdeci">virtual double getValue(double x, double y) override</div><div class="ttdoc">Take a 2D noise value. </div></div>
<div class="ttc" id="classgf_1_1_noise2_d_html"><div class="ttname"><a href="classgf_1_1_noise2_d.html">gf::Noise2D</a></div><div class="ttdoc">2D A noise function </div><div class="ttdef"><b>Definition:</b> Noise.h:35</div></div>
<div class="ttc" id="classgf_1_1_noise3_d_html"><div class="ttname"><a href="classgf_1_1_noise3_d.html">gf::Noise3D</a></div><div class="ttdoc">3D A noise function </div><div class="ttdef"><b>Definition:</b> Noise.h:71</div></div>
<div class="ttc" id="classgf_1_1_open_simplex_noise3_d_html_a19fa005a2687947254e62faa49a38040"><div class="ttname"><a href="classgf_1_1_open_simplex_noise3_d.html#a19fa005a2687947254e62faa49a38040">gf::OpenSimplexNoise3D::getValue</a></div><div class="ttdeci">virtual double getValue(double x, double y, double z) override</div><div class="ttdoc">Take a 3D noise value. </div></div>
<div class="ttc" id="classgf_1_1_ridged_multifractal2_d_html"><div class="ttname"><a href="classgf_1_1_ridged_multifractal2_d.html">gf::RidgedMultifractal2D</a></div><div class="ttdoc">Ridged Multifractal 2D noise. </div><div class="ttdef"><b>Definition:</b> Noises.h:519</div></div>
<div class="ttc" id="classgf_1_1_open_simplex_noise3_d_html"><div class="ttname"><a href="classgf_1_1_open_simplex_noise3_d.html">gf::OpenSimplexNoise3D</a></div><div class="ttdoc">OpenSimplex3D noise. </div><div class="ttdef"><b>Definition:</b> Noises.h:349</div></div>
<div class="ttc" id="classgf_1_1_gradient_noise2_d_html_a1e8b15f2059253a9fa145770500af547"><div class="ttname"><a href="classgf_1_1_gradient_noise2_d.html#a1e8b15f2059253a9fa145770500af547">gf::GradientNoise2D::GradientNoise2D</a></div><div class="ttdeci">GradientNoise2D(Random &random, Step< double > step)</div><div class="ttdoc">Constructor. </div></div>
<div class="ttc" id="classgf_1_1_open_simplex_noise2_d_html"><div class="ttname"><a href="classgf_1_1_open_simplex_noise2_d.html">gf::OpenSimplexNoise2D</a></div><div class="ttdoc">OpenSimplex 2D noise. </div><div class="ttdef"><b>Definition:</b> Noises.h:323</div></div>
<div class="ttc" id="classgf_1_1_fractal_noise2_d_html_a1289318aa87038f6748ae2ecd2d70eda"><div class="ttname"><a href="classgf_1_1_fractal_noise2_d.html#a1289318aa87038f6748ae2ecd2d70eda">gf::FractalNoise2D::getValue</a></div><div class="ttdeci">virtual double getValue(double x, double y) override</div><div class="ttdoc">Take a 2D noise value. </div></div>
<div class="ttc" id="classgf_1_1_value_noise2_d_html_a42cdc3a21317452a7e30670b6cf62ab3"><div class="ttname"><a href="classgf_1_1_value_noise2_d.html#a42cdc3a21317452a7e30670b6cf62ab3">gf::ValueNoise2D::getValue</a></div><div class="ttdeci">virtual double getValue(double x, double y) override</div><div class="ttdoc">Take a 2D noise value. </div></div>
<div class="ttc" id="classgf_1_1_gradient_noise3_d_html_ae819def44d0b13693fff192189f79828"><div class="ttname"><a href="classgf_1_1_gradient_noise3_d.html#ae819def44d0b13693fff192189f79828">gf::GradientNoise3D::GradientNoise3D</a></div><div class="ttdeci">GradientNoise3D(Random &random, Step< double > step)</div><div class="ttdoc">Constructor. </div></div>
<div class="ttc" id="classgf_1_1_hybrid_multifractal2_d_html_aee66cce759568d3f808af696a4680613"><div class="ttname"><a href="classgf_1_1_hybrid_multifractal2_d.html#aee66cce759568d3f808af696a4680613">gf::HybridMultifractal2D::HybridMultifractal2D</a></div><div class="ttdeci">HybridMultifractal2D(Noise2D &noise, double scale, double offset=0.0, std::size_t octaves=8, double lacunarity=2.0, double persistence=0.5, double dimension=1.0)</div><div class="ttdoc">Constructor. </div></div>
<div class="ttc" id="classgf_1_1_open_simplex_noise3_d_html_a8b902790ad9cec8fe0cba6a0e557d496"><div class="ttname"><a href="classgf_1_1_open_simplex_noise3_d.html#a8b902790ad9cec8fe0cba6a0e557d496">gf::OpenSimplexNoise3D::OpenSimplexNoise3D</a></div><div class="ttdeci">OpenSimplexNoise3D(Random &random)</div><div class="ttdoc">Constructor. </div></div>
<div class="ttc" id="classgf_1_1_perlin_noise3_d_html_a775f2928c19e1f2852b89b8ad25e9693"><div class="ttname"><a href="classgf_1_1_perlin_noise3_d.html#a775f2928c19e1f2852b89b8ad25e9693">gf::PerlinNoise3D::PerlinNoise3D</a></div><div class="ttdeci">PerlinNoise3D(Random &random, double scale, std::size_t octaves=8)</div><div class="ttdoc">Constructor. </div></div>
<div class="ttc" id="namespacegf_html"><div class="ttname"><a href="namespacegf.html">gf</a></div><div class="ttdoc">The namespace for gf classes. </div><div class="ttdef"><b>Definition:</b> Action.h:34</div></div>
<div class="ttc" id="classgf_1_1_perlin_noise2_d_html_a627f4f63bb3425ff2eee6b9196e78f33"><div class="ttname"><a href="classgf_1_1_perlin_noise2_d.html#a627f4f63bb3425ff2eee6b9196e78f33">gf::PerlinNoise2D::PerlinNoise2D</a></div><div class="ttdeci">PerlinNoise2D(Random &random, double scale, std::size_t octaves=8)</div><div class="ttdoc">Constructor. </div></div>
<div class="ttc" id="classgf_1_1_perlin_noise2_d_html"><div class="ttname"><a href="classgf_1_1_perlin_noise2_d.html">gf::PerlinNoise2D</a></div><div class="ttdoc">Perlin 2D noise. </div><div class="ttdef"><b>Definition:</b> Noises.h:238</div></div>
<div class="ttc" id="classgf_1_1_perlin_noise3_d_html"><div class="ttname"><a href="classgf_1_1_perlin_noise3_d.html">gf::PerlinNoise3D</a></div><div class="ttdoc">Perlin 3D noise. </div><div class="ttdef"><b>Definition:</b> Noises.h:265</div></div>
<div class="ttc" id="classgf_1_1_gradient_noise3_d_html_a7f1b26765db03610aeebf77c7d2048db"><div class="ttname"><a href="classgf_1_1_gradient_noise3_d.html#a7f1b26765db03610aeebf77c7d2048db">gf::GradientNoise3D::getValue</a></div><div class="ttdeci">virtual double getValue(double x, double y, double z) override</div><div class="ttdoc">Take a 3D noise value. </div></div>
<div class="ttc" id="classgf_1_1_perlin_noise3_d_html_abac860f0e8c09854797999a2c3605b21"><div class="ttname"><a href="classgf_1_1_perlin_noise3_d.html#abac860f0e8c09854797999a2c3605b21">gf::PerlinNoise3D::getValue</a></div><div class="ttdeci">virtual double getValue(double x, double y, double z) override</div><div class="ttdoc">Take a 3D noise value. </div></div>
<div class="ttc" id="classgf_1_1_fractal_noise2_d_html_aff1b249b0169bb807cd024db7f32a478"><div class="ttname"><a href="classgf_1_1_fractal_noise2_d.html#aff1b249b0169bb807cd024db7f32a478">gf::FractalNoise2D::FractalNoise2D</a></div><div class="ttdeci">FractalNoise2D(Noise2D &noise, double scale, std::size_t octaves=8, double lacunarity=2.0, double persistence=0.5, double dimension=1.0)</div><div class="ttdoc">Constructor. </div></div>
<div class="ttc" id="classgf_1_1_fractal_noise3_d_html_a89e9776ba4d785ac42609af68220db74"><div class="ttname"><a href="classgf_1_1_fractal_noise3_d.html#a89e9776ba4d785ac42609af68220db74">gf::FractalNoise3D::getValue</a></div><div class="ttdeci">virtual double getValue(double x, double y, double z) override</div><div class="ttdoc">Take a 3D noise value. </div></div>
<div class="ttc" id="classgf_1_1_fractal_noise3_d_html"><div class="ttname"><a href="classgf_1_1_fractal_noise3_d.html">gf::FractalNoise3D</a></div><div class="ttdoc">Fractal 3D noise. </div><div class="ttdef"><b>Definition:</b> Noises.h:203</div></div>
<div class="ttc" id="classgf_1_1_gradient_noise2_d_html_a23bfcda346af235e25fc6f1c66ccb84f"><div class="ttname"><a href="classgf_1_1_gradient_noise2_d.html#a23bfcda346af235e25fc6f1c66ccb84f">gf::GradientNoise2D::getValue</a></div><div class="ttdeci">virtual double getValue(double x, double y) override</div><div class="ttdoc">Take a 2D noise value. </div></div>
<div class="ttc" id="classgf_1_1_fractal_noise2_d_html"><div class="ttname"><a href="classgf_1_1_fractal_noise2_d.html">gf::FractalNoise2D</a></div><div class="ttdoc">Fractal 2D noise. </div><div class="ttdef"><b>Definition:</b> Noises.h:168</div></div>
<div class="ttc" id="classgf_1_1_open_simplex_noise2_d_html_a299e04a6e7bac90a9e3952dd960b53fe"><div class="ttname"><a href="classgf_1_1_open_simplex_noise2_d.html#a299e04a6e7bac90a9e3952dd960b53fe">gf::OpenSimplexNoise2D::OpenSimplexNoise2D</a></div><div class="ttdeci">OpenSimplexNoise2D(Random &random)</div><div class="ttdoc">Constructor. </div></div>
<div class="ttc" id="classgf_1_1_simplex_noise2_d_html_a477a07e0ad7730fafb301907cc0ebf6c"><div class="ttname"><a href="classgf_1_1_simplex_noise2_d.html#a477a07e0ad7730fafb301907cc0ebf6c">gf::SimplexNoise2D::getValue</a></div><div class="ttdeci">virtual double getValue(double x, double y) override</div><div class="ttdoc">Take a 2D noise value. </div></div>
<div class="ttc" id="classgf_1_1_noise3_d_to2_d_adapter_html_a1347c1b9596eb1d561f292683c49e058"><div class="ttname"><a href="classgf_1_1_noise3_d_to2_d_adapter.html#a1347c1b9596eb1d561f292683c49e058">gf::Noise3DTo2DAdapter::Noise3DTo2DAdapter</a></div><div class="ttdeci">Noise3DTo2DAdapter(Noise3D &noise, Vector3d normal=Vector3d(0.0, 0.0, 1.0), Vector3d point=Vector3d(0.0, 0.0, 0.0))</div><div class="ttdoc">Constructor. </div></div>
<div class="ttc" id="classgf_1_1_wavelet_noise3_d_html"><div class="ttname"><a href="classgf_1_1_wavelet_noise3_d.html">gf::WaveletNoise3D</a></div><div class="ttdoc">Wavelet 3D noise. </div><div class="ttdef"><b>Definition:</b> Noises.h:372</div></div>
<div class="ttc" id="classgf_1_1_noise3_d_to2_d_adapter_html"><div class="ttname"><a href="classgf_1_1_noise3_d_to2_d_adapter.html">gf::Noise3DTo2DAdapter</a></div><div class="ttdoc">An adapter that make a 2D noise from a 3D noise. </div><div class="ttdef"><b>Definition:</b> Noises.h:558</div></div>
<div class="ttc" id="classgf_1_1_value_noise2_d_html"><div class="ttname"><a href="classgf_1_1_value_noise2_d.html">gf::ValueNoise2D</a></div><div class="ttdoc">Value 2D noise. </div><div class="ttdef"><b>Definition:</b> Noises.h:50</div></div>
<div class="ttc" id="classgf_1_1_simplex_noise2_d_html_ac534c01315cde966f9bc0f3978dcffa5"><div class="ttname"><a href="classgf_1_1_simplex_noise2_d.html#ac534c01315cde966f9bc0f3978dcffa5">gf::SimplexNoise2D::SimplexNoise2D</a></div><div class="ttdeci">SimplexNoise2D(Random &random)</div><div class="ttdoc">Constructor. </div></div>
<div class="ttc" id="classgf_1_1_hybrid_multifractal2_d_html"><div class="ttname"><a href="classgf_1_1_hybrid_multifractal2_d.html">gf::HybridMultifractal2D</a></div><div class="ttdoc">Hybrid Multifractal 2D noise. </div><div class="ttdef"><b>Definition:</b> Noises.h:487</div></div>
<div class="ttc" id="classgf_1_1_simplex_noise2_d_html"><div class="ttname"><a href="classgf_1_1_simplex_noise2_d.html">gf::SimplexNoise2D</a></div><div class="ttdoc">Simplex 2D noise. </div><div class="ttdef"><b>Definition:</b> Noises.h:296</div></div>
<div class="ttc" id="_portability_8h_html_a0169111e0ff1d9fe0f23dee89e904d57"><div class="ttname"><a href="_portability_8h.html#a0169111e0ff1d9fe0f23dee89e904d57">GF_API</a></div><div class="ttdeci">#define GF_API</div><div class="ttdef"><b>Definition:</b> Portability.h:35</div></div>
<div class="ttc" id="classgf_1_1_open_simplex_noise2_d_html_acf5d2bdb65a1339752a39f896e1dc01e"><div class="ttname"><a href="classgf_1_1_open_simplex_noise2_d.html#acf5d2bdb65a1339752a39f896e1dc01e">gf::OpenSimplexNoise2D::getValue</a></div><div class="ttdeci">virtual double getValue(double x, double y) override</div><div class="ttdoc">Take a 2D noise value. </div></div>
<div class="ttc" id="classgf_1_1_multifractal2_d_html_a4dc21eafd421277b8a5c743a5897c2be"><div class="ttname"><a href="classgf_1_1_multifractal2_d.html#a4dc21eafd421277b8a5c743a5897c2be">gf::Multifractal2D::Multifractal2D</a></div><div class="ttdeci">Multifractal2D(Noise2D &noise, double scale, std::size_t octaves=8, double lacunarity=2.0, double persistence=0.5, double dimension=1.0)</div><div class="ttdoc">Constructor. </div></div>
<div class="ttc" id="classgf_1_1_better_gradient_noise2_d_html"><div class="ttname"><a href="classgf_1_1_better_gradient_noise2_d.html">gf::BetterGradientNoise2D</a></div><div class="ttdoc">Better gradient 2D noise. </div><div class="ttdef"><b>Definition:</b> Noises.h:141</div></div>
<div class="ttc" id="classgf_1_1_multifractal2_d_html"><div class="ttname"><a href="classgf_1_1_multifractal2_d.html">gf::Multifractal2D</a></div><div class="ttdoc">Multi Fractal 2D noise. </div><div class="ttdef"><b>Definition:</b> Noises.h:424</div></div>
<div class="ttc" id="classgf_1_1_wavelet_noise3_d_html_aa2b256aee7fb8d24402a8ca498abc44c"><div class="ttname"><a href="classgf_1_1_wavelet_noise3_d.html#aa2b256aee7fb8d24402a8ca498abc44c">gf::WaveletNoise3D::getValue</a></div><div class="ttdeci">virtual double getValue(double x, double y, double z) override</div><div class="ttdoc">Take a 3D noise value. </div></div>
<div class="ttc" id="classgf_1_1_better_gradient_noise2_d_html_ac6d9083abe11fe815326100744098842"><div class="ttname"><a href="classgf_1_1_better_gradient_noise2_d.html#ac6d9083abe11fe815326100744098842">gf::BetterGradientNoise2D::BetterGradientNoise2D</a></div><div class="ttdeci">BetterGradientNoise2D(Random &random)</div><div class="ttdoc">Constructor. </div></div>
<div class="ttc" id="classgf_1_1_hetero_terrain2_d_html"><div class="ttname"><a href="classgf_1_1_hetero_terrain2_d.html">gf::HeteroTerrain2D</a></div><div class="ttdoc">Hetero Terrain 2D noise. </div><div class="ttdef"><b>Definition:</b> Noises.h:455</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>