-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_geometry_8h_source.html
163 lines (163 loc) · 23.2 KB
/
_geometry_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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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=11"/>
<meta name="generator" content="Doxygen 1.9.3"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Gamedev Framework (gf): Geometry.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" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/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 id="projectrow">
<td id="projectlogo"><img alt="Logo" src="gf_logo.png"/></td>
<td id="projectalign">
<div id="projectname">Gamedev Framework (gf)<span id="projectnumber"> 0.21.0</span>
</div>
<div id="projectbrief">A C++17 framework for 2D games</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.3 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
$(function() {
initMenu('',false,false,'search.php','Search');
});
/* @license-end */
</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">Geometry.h</div></div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="comment">/*</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment"> * Gamedev Framework (gf)</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment"> * Copyright (C) 2016-2021 Julien Bernard</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment"> *</span></div>
<div class="line"><a id="l00005" 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 id="l00006" 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 id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="comment"> * arising from the use of this software.</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="comment"> *</span></div>
<div class="line"><a id="l00009" 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 id="l00010" 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 id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="comment"> * freely, subject to the following restrictions:</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="comment"> *</span></div>
<div class="line"><a id="l00013" 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 id="l00014" 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 id="l00015" 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 id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="comment"> * appreciated but is not required.</span></div>
<div class="line"><a id="l00017" 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 id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="comment"> * misrepresented as being the original software.</span></div>
<div class="line"><a id="l00019" 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 id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="comment"> */</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="preprocessor">#ifndef GF_GEOMETRY_H</span></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="preprocessor">#define GF_GEOMETRY_H</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> </div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="preprocessor">#include <vector></span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> </div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="preprocessor">#include "CoreApi.h"</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="preprocessor">#include "GeometryTypes.h"</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="preprocessor">#include "Heightmap.h"</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="preprocessor">#include "Polygon.h"</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span><span class="preprocessor">#include "Polyline.h"</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span><span class="preprocessor">#include "Random.h"</span></div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span><span class="preprocessor">#include "Span.h"</span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span><span class="preprocessor">#include "Vector.h"</span></div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> </div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacegf.html">gf</a> {</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span><span class="preprocessor">#ifndef DOXYGEN_SHOULD_SKIP_THIS</span></div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span><span class="keyword">inline</span> <span class="keyword">namespace </span>v1 {</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> </div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"><a class="line" href="classgf_1_1_bresenham.html"> 47</a></span> <span class="keyword">class </span>GF_CORE_API <a class="code hl_class" href="classgf_1_1_bresenham.html">Bresenham</a> {</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> <span class="keyword">public</span>:</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"><a class="line" href="classgf_1_1_bresenham.html#a961de3bf3f9e3c10bc99872234412a35"> 55</a></span> <a class="code hl_function" href="classgf_1_1_bresenham.html#a961de3bf3f9e3c10bc99872234412a35">Bresenham</a>(<a class="code hl_class" href="structgf_1_1_vector.html">Vector2i</a> p0, <a class="code hl_class" href="structgf_1_1_vector.html">Vector2i</a> p1);</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> </div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"><a class="line" href="classgf_1_1_bresenham.html#a3264df6d89a1251564ecb2f7a4b1549e"> 63</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classgf_1_1_bresenham.html#a3264df6d89a1251564ecb2f7a4b1549e">step</a>(<a class="code hl_class" href="structgf_1_1_vector.html">Vector2i</a>& res);</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> </div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> <span class="keyword">private</span>:</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> <a class="code hl_class" href="structgf_1_1_vector.html">Vector2i</a> m_p0;</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> <a class="code hl_class" href="structgf_1_1_vector.html">Vector2i</a> m_p1;</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> <a class="code hl_class" href="structgf_1_1_vector.html">Vector2i</a> m_delta;</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> <a class="code hl_class" href="structgf_1_1_vector.html">Vector2i</a> m_step;</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> <span class="keywordtype">int</span> m_error;</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> };</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> </div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"><a class="line" href="group__core__geometry.html#ga0435ef9e174a93ce8baf72f7e6a446f6"> 85</a></span> GF_CORE_API std::vector<Vector2i> <a class="code hl_function" href="group__core__geometry.html#ga0435ef9e174a93ce8baf72f7e6a446f6">generateLine</a>(<a class="code hl_class" href="structgf_1_1_vector.html">Vector2i</a> p0, <a class="code hl_class" href="structgf_1_1_vector.html">Vector2i</a> p1);</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> </div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"><a class="line" href="group__core__procedural__generation.html#ga150a0772fa507409e6ad0edd41b05c0b"> 99</a></span> GF_CORE_API std::vector<Vector2f> <a class="code hl_function" href="group__core__procedural__generation.html#ga150a0772fa507409e6ad0edd41b05c0b">midpointDisplacement1D</a>(<a class="code hl_class" href="structgf_1_1_vector.html">Vector2f</a> p0, <a class="code hl_class" href="structgf_1_1_vector.html">Vector2f</a> p1, <a class="code hl_class" href="classgf_1_1_random.html">Random</a>& random, <span class="keywordtype">unsigned</span> iterations, <a class="code hl_class" href="structgf_1_1_vector.html">Vector2f</a> direction, <span class="keywordtype">float</span> initialFactor = 1.0f, <span class="keywordtype">float</span> reductionFactor = 0.5f);</div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> </div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"><a class="line" href="group__core__procedural__generation.html#ga2ae68a1d87ca584f8ab55215d496113d"> 114</a></span> GF_CORE_API std::vector<Vector2f> <a class="code hl_function" href="group__core__procedural__generation.html#ga150a0772fa507409e6ad0edd41b05c0b">midpointDisplacement1D</a>(<a class="code hl_class" href="structgf_1_1_vector.html">Vector2f</a> p0, <a class="code hl_class" href="structgf_1_1_vector.html">Vector2f</a> p1, <a class="code hl_class" href="classgf_1_1_random.html">Random</a>& random, <span class="keywordtype">unsigned</span> iterations, <span class="keywordtype">float</span> initialFactor = 1.0f, <span class="keywordtype">float</span> reductionFactor = 0.5f);</div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> </div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> </div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"><a class="line" href="group__core__procedural__generation.html#ga00d1254510ee27e0eefd66f92117d7c8"> 137</a></span> GF_CORE_API <a class="code hl_class" href="classgf_1_1_heightmap.html">Heightmap</a> <a class="code hl_function" href="group__core__procedural__generation.html#ga00d1254510ee27e0eefd66f92117d7c8">midpointDisplacement2D</a>(<a class="code hl_class" href="structgf_1_1_vector.html">Vector2i</a> size, <a class="code hl_class" href="classgf_1_1_random.html">Random</a>& random, <a class="code hl_class" href="classgf_1_1_span.html">Span<const double></a> initialValues = <span class="keyword">nullptr</span>);</div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> </div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> </div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"><a class="line" href="group__core__procedural__generation.html#ga07f4a26ee550e2f16efe5b557def753c"> 160</a></span> GF_CORE_API <a class="code hl_class" href="classgf_1_1_heightmap.html">Heightmap</a> <a class="code hl_function" href="group__core__procedural__generation.html#ga07f4a26ee550e2f16efe5b557def753c">diamondSquare2D</a>(<a class="code hl_class" href="structgf_1_1_vector.html">Vector2i</a> size, <a class="code hl_class" href="classgf_1_1_random.html">Random</a>& random, <a class="code hl_class" href="classgf_1_1_span.html">Span<const double></a> initialValues = <span class="keyword">nullptr</span>);</div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> </div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> </div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"><a class="line" href="group__core__geometry.html#gad0882860bafad42eb01275c92a6b7a7b"> 174</a></span> GF_CORE_API <a class="code hl_class" href="classgf_1_1_polygon.html">Polygon</a> <a class="code hl_function" href="group__core__geometry.html#gad0882860bafad42eb01275c92a6b7a7b">convexHull</a>(<a class="code hl_class" href="classgf_1_1_span.html">Span<const Vector2f></a> points);</div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span> </div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span> </div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"><a class="line" href="group__core__geometry.html#ga906d2e07f5a7cbf080350e5d095a2b17"> 187</a></span> GF_CORE_API std::vector<Vector2f> <a class="code hl_function" href="group__core__geometry.html#ga906d2e07f5a7cbf080350e5d095a2b17">simplifyPoints</a>(<a class="code hl_class" href="classgf_1_1_span.html">Span<const Vector2f></a> points, <span class="keywordtype">float</span> distance = <a class="code hl_variable" href="group__core__maths.html#gab4aa74a0cbea2a97c107bc5a1dc63a64">Epsilon</a>);</div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> </div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span> </div>
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"><a class="line" href="group__core__geometry.html#ga418dd37e31d0704d535da505cc524736"> 197</a></span> GF_CORE_API std::vector<Polyline> <a class="code hl_function" href="group__core__geometry.html#ga418dd37e31d0704d535da505cc524736">buildLines</a>(<a class="code hl_class" href="classgf_1_1_span.html">Span<const SegmentI></a> segments);</div>
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno"> 198</span> </div>
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"> 199</span> </div>
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"> 200</span><span class="preprocessor">#ifndef DOXYGEN_SHOULD_SKIP_THIS</span></div>
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno"> 201</span>}</div>
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno"> 202</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno"> 203</span>}</div>
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno"> 204</span> </div>
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno"> 205</span><span class="preprocessor">#endif </span><span class="comment">// GF_GEOMETRY_H</span></div>
<div class="ttc" id="aclassgf_1_1_bresenham_html"><div class="ttname"><a href="classgf_1_1_bresenham.html">gf::Bresenham</a></div><div class="ttdoc">State for the Bresenham's line algorithm.</div><div class="ttdef"><b>Definition:</b> Geometry.h:47</div></div>
<div class="ttc" id="aclassgf_1_1_bresenham_html_a3264df6d89a1251564ecb2f7a4b1549e"><div class="ttname"><a href="classgf_1_1_bresenham.html#a3264df6d89a1251564ecb2f7a4b1549e">gf::Bresenham::step</a></div><div class="ttdeci">bool step(Vector2i &res)</div><div class="ttdoc">Generate a new point on the line.</div></div>
<div class="ttc" id="aclassgf_1_1_bresenham_html_a961de3bf3f9e3c10bc99872234412a35"><div class="ttname"><a href="classgf_1_1_bresenham.html#a961de3bf3f9e3c10bc99872234412a35">gf::Bresenham::Bresenham</a></div><div class="ttdeci">Bresenham(Vector2i p0, Vector2i p1)</div><div class="ttdoc">Constructor.</div></div>
<div class="ttc" id="aclassgf_1_1_heightmap_html"><div class="ttname"><a href="classgf_1_1_heightmap.html">gf::Heightmap</a></div><div class="ttdoc">A heightmap.</div><div class="ttdef"><b>Definition:</b> Heightmap.h:44</div></div>
<div class="ttc" id="aclassgf_1_1_polygon_html"><div class="ttname"><a href="classgf_1_1_polygon.html">gf::Polygon</a></div><div class="ttdoc">A convex polygon.</div><div class="ttdef"><b>Definition:</b> Polygon.h:47</div></div>
<div class="ttc" id="aclassgf_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:47</div></div>
<div class="ttc" id="aclassgf_1_1_span_html"><div class="ttname"><a href="classgf_1_1_span.html">gf::Span</a></div><div class="ttdoc">A span.</div><div class="ttdef"><b>Definition:</b> Span.h:417</div></div>
<div class="ttc" id="agroup__core__geometry_html_ga0435ef9e174a93ce8baf72f7e6a446f6"><div class="ttname"><a href="group__core__geometry.html#ga0435ef9e174a93ce8baf72f7e6a446f6">gf::generateLine</a></div><div class="ttdeci">GF_CORE_API std::vector< Vector2i > generateLine(Vector2i p0, Vector2i p1)</div><div class="ttdoc">Generate a line between two positions.</div></div>
<div class="ttc" id="agroup__core__geometry_html_ga418dd37e31d0704d535da505cc524736"><div class="ttname"><a href="group__core__geometry.html#ga418dd37e31d0704d535da505cc524736">gf::buildLines</a></div><div class="ttdeci">GF_CORE_API std::vector< Polyline > buildLines(Span< const SegmentI > segments)</div><div class="ttdoc">Build a set of lines from a set of segments.</div></div>
<div class="ttc" id="agroup__core__geometry_html_ga906d2e07f5a7cbf080350e5d095a2b17"><div class="ttname"><a href="group__core__geometry.html#ga906d2e07f5a7cbf080350e5d095a2b17">gf::simplifyPoints</a></div><div class="ttdeci">GF_CORE_API std::vector< Vector2f > simplifyPoints(Span< const Vector2f > points, float distance=Epsilon)</div><div class="ttdoc">Simplify a sequence of points.</div></div>
<div class="ttc" id="agroup__core__geometry_html_gad0882860bafad42eb01275c92a6b7a7b"><div class="ttname"><a href="group__core__geometry.html#gad0882860bafad42eb01275c92a6b7a7b">gf::convexHull</a></div><div class="ttdeci">GF_CORE_API Polygon convexHull(Span< const Vector2f > points)</div><div class="ttdoc">Compute the convex hull of a set of points.</div></div>
<div class="ttc" id="agroup__core__maths_html_gab4aa74a0cbea2a97c107bc5a1dc63a64"><div class="ttname"><a href="group__core__maths.html#gab4aa74a0cbea2a97c107bc5a1dc63a64">gf::Epsilon</a></div><div class="ttdeci">constexpr float Epsilon</div><div class="ttdoc">Machine epsilon.</div><div class="ttdef"><b>Definition:</b> Math.h:94</div></div>
<div class="ttc" id="agroup__core__procedural__generation_html_ga00d1254510ee27e0eefd66f92117d7c8"><div class="ttname"><a href="group__core__procedural__generation.html#ga00d1254510ee27e0eefd66f92117d7c8">gf::midpointDisplacement2D</a></div><div class="ttdeci">GF_CORE_API Heightmap midpointDisplacement2D(Vector2i size, Random &random, Span< const double > initialValues=nullptr)</div><div class="ttdoc">2D midpoint displacement</div></div>
<div class="ttc" id="agroup__core__procedural__generation_html_ga07f4a26ee550e2f16efe5b557def753c"><div class="ttname"><a href="group__core__procedural__generation.html#ga07f4a26ee550e2f16efe5b557def753c">gf::diamondSquare2D</a></div><div class="ttdeci">GF_CORE_API Heightmap diamondSquare2D(Vector2i size, Random &random, Span< const double > initialValues=nullptr)</div><div class="ttdoc">2D diamond square</div></div>
<div class="ttc" id="agroup__core__procedural__generation_html_ga150a0772fa507409e6ad0edd41b05c0b"><div class="ttname"><a href="group__core__procedural__generation.html#ga150a0772fa507409e6ad0edd41b05c0b">gf::midpointDisplacement1D</a></div><div class="ttdeci">GF_CORE_API std::vector< Vector2f > midpointDisplacement1D(Vector2f p0, Vector2f p1, Random &random, unsigned iterations, Vector2f direction, float initialFactor=1.0f, float reductionFactor=0.5f)</div><div class="ttdoc">1D midpoint displacement</div></div>
<div class="ttc" id="anamespacegf_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:35</div></div>
<div class="ttc" id="astructgf_1_1_vector_html"><div class="ttname"><a href="structgf_1_1_vector.html">gf::Vector< int, 2 ></a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3
</small></address>
</body>
</html>