-
Notifications
You must be signed in to change notification settings - Fork 1
/
Astroid2D_8h_source.html
262 lines (260 loc) · 37.2 KB
/
Astroid2D_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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
<!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=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>DGtal: Astroid2D.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>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
</script>
<script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.3/MathJax.js?config=TeX-MML-AM_CHTML/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.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="projectalign" style="padding-left: 0.5em;">
<div id="projectname">DGtal
 <span id="projectnumber">1.5.beta</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<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:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('Astroid2D_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="headertitle">
<div class="title">Astroid2D.h</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>  </div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  </div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#if defined(Astroid2D_RECURSES)</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#error Recursive header files inclusion detected in Astroid2D.h</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#else </span><span class="comment">// defined(Astroid2D_RECURSES)</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="comment"></span>#define Astroid2D_RECURSES</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  </div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="preprocessor">#if !defined Astroid2D_h</span></div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="preprocessor">#define Astroid2D_h</span></div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  </div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="comment">// Inclusions</span></div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="preprocessor">#include <iostream></span></div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="preprocessor">#include "DGtal/base/Common.h"</span></div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="preprocessor">#include "DGtal/shapes/parametric/StarShaped2D.h"</span></div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="preprocessor">#include <cmath></span></div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  </div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="keyword">namespace </span><a class="code" href="namespaceDGtal.html">DGtal</a></div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> {</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  </div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="comment">// template class Astroid2D</span></div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <span class="comment"></span> <span class="keyword">template</span> <<span class="keyword">typename</span> TSpace></div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="classDGtal_1_1Astroid2D.html"> 61</a></span>  <span class="keyword">class </span><a class="code" href="classDGtal_1_1Astroid2D.html">Astroid2D</a> : <span class="keyword">public</span> <a class="code" href="classDGtal_1_1StarShaped2D.html">StarShaped2D</a><TSpace></div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  {</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="comment">// ----------------------- Standard services ------------------------------</span></div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  </div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="classDGtal_1_1Astroid2D.html#aee24205fe5221280d9783696db1d8bf8"> 66</a></span>  <span class="keyword">typedef</span> TSpace <a class="code" href="classDGtal_1_1Astroid2D.html#aee24205fe5221280d9783696db1d8bf8">Space</a>;</div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="classDGtal_1_1Astroid2D.html#a9a3242e80680efe65790bd6aea000cbe"> 67</a></span>  <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="testTriangulatedSurface_8cpp.html#abb3595c097987c9d2c4f0cc1902df316">Space::RealPoint</a> <a class="code" href="classDGtal_1_1Astroid2D.html#a9a3242e80680efe65790bd6aea000cbe">RealPoint</a>;</div>
<div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="classDGtal_1_1Astroid2D.html#a6f90ea47b5b56e57b64d008db8dcca51"> 68</a></span>  <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classDGtal_1_1PointVector.html">Space::RealVector</a> <a class="code" href="classDGtal_1_1Astroid2D.html#a6f90ea47b5b56e57b64d008db8dcca51">RealVector</a>;</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  </div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="classDGtal_1_1Astroid2D.html#a633ec3f90750c1b8a2ed7e9316db5fda"> 74</a></span>  <a class="code" href="classDGtal_1_1Astroid2D.html#a633ec3f90750c1b8a2ed7e9316db5fda">Astroid2D</a>() = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  </div>
<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="classDGtal_1_1Astroid2D.html#aaa760766f9eeafed212936aa0b5e9b91"> 84</a></span>  <a class="code" href="classDGtal_1_1Astroid2D.html#aaa760766f9eeafed212936aa0b5e9b91">Astroid2D</a>( <span class="keyword">const</span> <span class="keywordtype">double</span> x0, <span class="keyword">const</span> <span class="keywordtype">double</span> y0,</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="keyword">const</span> <span class="keywordtype">double</span> a, <span class="keyword">const</span> <span class="keywordtype">double</span> b );</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  </div>
<div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="classDGtal_1_1Astroid2D.html#a9da70b68f631443494b6f2f17c17ef19"> 94</a></span>  <a class="code" href="classDGtal_1_1Astroid2D.html#a9da70b68f631443494b6f2f17c17ef19">Astroid2D</a>( <span class="keyword">const</span> <a class="code" href="classDGtal_1_1Astroid2D.html#a9a3242e80680efe65790bd6aea000cbe">RealPoint</a>& <a class="code" href="testSimpleRandomAccessRangeFromPoint_8cpp.html#a9ae40316aa447d5a39eb6f76dba59444">aPoint</a>, <span class="keyword">const</span> <span class="keywordtype">double</span> a, <span class="keyword">const</span> <span class="keywordtype">double</span> b );</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  </div>
<div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="classDGtal_1_1Astroid2D.html#abb671fadd88b005a8ebec06624ac2374"> 100</a></span>  <a class="code" href="classDGtal_1_1Astroid2D.html#abb671fadd88b005a8ebec06624ac2374">Astroid2D</a>( <span class="keyword">const</span> <a class="code" href="classDGtal_1_1Astroid2D.html">Astroid2D</a>& other );</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  </div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="classDGtal_1_1Astroid2D.html#acdb7e97d5d2741e8e9b4d42434bfe802"> 108</a></span>  <a class="code" href="classDGtal_1_1Astroid2D.html">Astroid2D</a>& <a class="code" href="classDGtal_1_1Astroid2D.html#acdb7e97d5d2741e8e9b4d42434bfe802">operator= </a>( <span class="keyword">const</span> <a class="code" href="classDGtal_1_1Astroid2D.html">Astroid2D</a>& other ) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  </div>
<div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="classDGtal_1_1Astroid2D.html#af4d86f625af5a2ac13f41e9deb1d87f0"> 113</a></span>  <a class="code" href="classDGtal_1_1Astroid2D.html#af4d86f625af5a2ac13f41e9deb1d87f0">~Astroid2D</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  </div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <span class="comment">// ------------- Implementation of 'StarShaped' services -------------------</span></div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  </div>
<div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="classDGtal_1_1Astroid2D.html#a18347663d645507dd8adfa9299b55706"> 122</a></span>  <a class="code" href="classDGtal_1_1Astroid2D.html#a9a3242e80680efe65790bd6aea000cbe">RealPoint</a> <a class="code" href="classDGtal_1_1Astroid2D.html#a18347663d645507dd8adfa9299b55706">getLowerBound</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span> <span class="keyword"> </span>{</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <span class="keywordflow">return</span> <a class="code" href="classDGtal_1_1Astroid2D.html#a9a3242e80680efe65790bd6aea000cbe">RealPoint</a>( <a class="code" href="classDGtal_1_1Astroid2D.html#a8814ed3556436be8f881e16210029ce7">myCenter</a>[0] - <a class="code" href="classDGtal_1_1Astroid2D.html#a7caf7d290ea6cb32b38759a4a10669eb">myA</a>, <a class="code" href="classDGtal_1_1Astroid2D.html#a8814ed3556436be8f881e16210029ce7">myCenter</a>[1] - <a class="code" href="classDGtal_1_1Astroid2D.html#ab749ad462e3a036bb91d34ca969c1ec3">myB</a> );</div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  }</div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  </div>
<div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="classDGtal_1_1Astroid2D.html#a908f8c8a34e3880d7a8775f3f70ae906"> 131</a></span>  <a class="code" href="classDGtal_1_1Astroid2D.html#a9a3242e80680efe65790bd6aea000cbe">RealPoint</a> <a class="code" href="classDGtal_1_1Astroid2D.html#a908f8c8a34e3880d7a8775f3f70ae906">getUpperBound</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span> <span class="keyword"> </span>{</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <span class="keywordflow">return</span> <a class="code" href="classDGtal_1_1Astroid2D.html#a9a3242e80680efe65790bd6aea000cbe">RealPoint</a>( <a class="code" href="classDGtal_1_1Astroid2D.html#a8814ed3556436be8f881e16210029ce7">myCenter</a>[0] + <a class="code" href="classDGtal_1_1Astroid2D.html#a7caf7d290ea6cb32b38759a4a10669eb">myA</a>, <a class="code" href="classDGtal_1_1Astroid2D.html#a8814ed3556436be8f881e16210029ce7">myCenter</a>[1] + <a class="code" href="classDGtal_1_1Astroid2D.html#ab749ad462e3a036bb91d34ca969c1ec3">myB</a> );</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  }</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  </div>
<div class="line"><a name="l00139"></a><span class="lineno"><a class="line" href="classDGtal_1_1Astroid2D.html#a88130243f7f0ec1a5eb12841257cab29"> 139</a></span>  <a class="code" href="classDGtal_1_1Astroid2D.html#a9a3242e80680efe65790bd6aea000cbe">RealPoint</a> <a class="code" href="classDGtal_1_1Astroid2D.html#a88130243f7f0ec1a5eb12841257cab29">center</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span> <span class="keyword"> </span>{</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <span class="keywordflow">return</span> <a class="code" href="classDGtal_1_1Astroid2D.html#a8814ed3556436be8f881e16210029ce7">myCenter</a>;</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  }</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  </div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <span class="keyword">inline</span></div>
<div class="line"><a name="l00149"></a><span class="lineno"><a class="line" href="classDGtal_1_1Astroid2D.html#a1fcfbefb168af78143709073015300e2"> 149</a></span>  <span class="keywordtype">void</span> <a class="code" href="classDGtal_1_1Astroid2D.html#a1fcfbefb168af78143709073015300e2">moveTo</a>( <span class="keyword">const</span> <a class="code" href="classDGtal_1_1Astroid2D.html#a9a3242e80680efe65790bd6aea000cbe">RealPoint</a>& newCenter )</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  {</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  <a class="code" href="classDGtal_1_1Astroid2D.html#a8814ed3556436be8f881e16210029ce7">myCenter</a> = newCenter;</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  }</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  </div>
<div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="classDGtal_1_1Astroid2D.html#af80ccab9287e45e182158b81ad00c4f9"> 160</a></span>  <span class="keywordtype">double</span> <a class="code" href="classDGtal_1_1Astroid2D.html#af80ccab9287e45e182158b81ad00c4f9">parameter</a>( <span class="keyword">const</span> <a class="code" href="classDGtal_1_1Astroid2D.html#a9a3242e80680efe65790bd6aea000cbe">RealPoint</a> & p ) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  </div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  </div>
<div class="line"><a name="l00169"></a><span class="lineno"><a class="line" href="classDGtal_1_1Astroid2D.html#a34523179e6e6e68f34ee37d17b7a3b6d"> 169</a></span>  <a class="code" href="classDGtal_1_1Astroid2D.html#a9a3242e80680efe65790bd6aea000cbe">RealPoint</a> <a class="code" href="classDGtal_1_1Astroid2D.html#a34523179e6e6e68f34ee37d17b7a3b6d">x</a>( <span class="keyword">const</span> <span class="keywordtype">double</span> t ) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  </div>
<div class="line"><a name="l00177"></a><span class="lineno"><a class="line" href="classDGtal_1_1Astroid2D.html#a46163b18b6badc7a815c8248d5eadc87"> 177</a></span>  <a class="code" href="classDGtal_1_1PointVector.html">RealVector</a> <a class="code" href="classDGtal_1_1Astroid2D.html#a46163b18b6badc7a815c8248d5eadc87">xp</a>( <span class="keyword">const</span> <span class="keywordtype">double</span> t ) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  </div>
<div class="line"><a name="l00184"></a><span class="lineno"><a class="line" href="classDGtal_1_1Astroid2D.html#a2dae22b503474c456eee1ed554632a55"> 184</a></span>  <a class="code" href="classDGtal_1_1PointVector.html">RealVector</a> <a class="code" href="classDGtal_1_1Astroid2D.html#a2dae22b503474c456eee1ed554632a55">xpp</a>( <span class="keyword">const</span> <span class="keywordtype">double</span> t ) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  </div>
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  </div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  <span class="comment">// ------------------------- data -----------------------------------------</span></div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  <span class="keyword">private</span>:</div>
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  </div>
<div class="line"><a name="l00193"></a><span class="lineno"><a class="line" href="classDGtal_1_1Astroid2D.html#a8814ed3556436be8f881e16210029ce7"> 193</a></span>  <a class="code" href="classDGtal_1_1Astroid2D.html#a9a3242e80680efe65790bd6aea000cbe">RealPoint</a> <a class="code" href="classDGtal_1_1Astroid2D.html#a8814ed3556436be8f881e16210029ce7">myCenter</a>;</div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  </div>
<div class="line"><a name="l00198"></a><span class="lineno"><a class="line" href="classDGtal_1_1Astroid2D.html#a7caf7d290ea6cb32b38759a4a10669eb"> 198</a></span>  <span class="keywordtype">double</span> <a class="code" href="classDGtal_1_1Astroid2D.html#a7caf7d290ea6cb32b38759a4a10669eb">myA</a>;</div>
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  </div>
<div class="line"><a name="l00203"></a><span class="lineno"><a class="line" href="classDGtal_1_1Astroid2D.html#ab749ad462e3a036bb91d34ca969c1ec3"> 203</a></span>  <span class="keywordtype">double</span> <a class="code" href="classDGtal_1_1Astroid2D.html#ab749ad462e3a036bb91d34ca969c1ec3">myB</a>;</div>
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  </div>
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  <span class="comment">// ----------------------- Interface --------------------------------------</span></div>
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  </div>
<div class="line"><a name="l00212"></a><span class="lineno"><a class="line" href="classDGtal_1_1Astroid2D.html#ac41cf51fa69e15cd1aed75d855f23958"> 212</a></span>  <span class="keywordtype">void</span> <a class="code" href="classDGtal_1_1Astroid2D.html#ac41cf51fa69e15cd1aed75d855f23958">selfDisplay</a> ( std::ostream & out ) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  </div>
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  </div>
<div class="line"><a name="l00219"></a><span class="lineno"><a class="line" href="classDGtal_1_1Astroid2D.html#a171e89abf7a5f39b63627a7b557f41c2"> 219</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classDGtal_1_1Astroid2D.html#a171e89abf7a5f39b63627a7b557f41c2">isValid</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  </div>
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  <span class="comment">// ------------------------- Hidden services ------------------------------</span></div>
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  <span class="keyword">private</span>:</div>
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  </div>
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  <span class="keyword">inline</span></div>
<div class="line"><a name="l00229"></a><span class="lineno"><a class="line" href="classDGtal_1_1Astroid2D.html#acc688752379662f36c8da7a07b2a0338"> 229</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classDGtal_1_1Astroid2D.html#acc688752379662f36c8da7a07b2a0338">isAlmostEqual</a>( T x, T y )<span class="keyword"> const</span></div>
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span> <span class="keyword"> </span>{</div>
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  <span class="keywordflow">return</span> std::abs(x - y) <= std::numeric_limits<T>::epsilon();</div>
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  }</div>
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  </div>
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  }; <span class="comment">// end of class Astroid2D</span></div>
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  </div>
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  </div>
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  </div>
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
<div class="line"><a name="l00245"></a><span class="lineno"><a class="line" href="namespaceDGtal.html#a7a89cd5501bdf942f7a188b680a16330"> 245</a></span>  std::ostream&</div>
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  <a class="codeRef" href="http://dgtal.org/doc/tools/nightly/namespaceDGtal.html#a66aca9ad97cfa71ddd5b1333a392d50d">operator<< </a>( std::ostream & out, <span class="keyword">const</span> <a class="code" href="classDGtal_1_1Astroid2D.html">Astroid2D<T></a> & <span class="keywordtype">object</span> );</div>
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  </div>
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span> } <span class="comment">// namespace DGtal</span></div>
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  </div>
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  </div>
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span> <span class="comment">// Includes inline functions.</span></div>
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span> <span class="preprocessor">#include "DGtal/shapes/parametric/Astroid2D.ih"</span></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> <span class="comment">// //</span></div>
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span> <span class="comment"></span> </div>
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span> <span class="preprocessor">#endif </span><span class="comment">// !defined Astroid2D_h</span></div>
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  </div>
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span> <span class="preprocessor">#undef Astroid2D_RECURSES</span></div>
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span> <span class="preprocessor">#endif </span><span class="comment">// else defined(Astroid2D_RECURSES)</span></div>
<div class="ttc" id="aclassDGtal_1_1Astroid2D_html"><div class="ttname"><a href="classDGtal_1_1Astroid2D.html">DGtal::Astroid2D</a></div><div class="ttdoc">Aim: Model of the concept StarShaped represents an astroid.</div><div class="ttdef"><b>Definition:</b> <a href="Astroid2D_8h_source.html#l00061">Astroid2D.h:62</a></div></div>
<div class="ttc" id="aclassDGtal_1_1Astroid2D_html_a171e89abf7a5f39b63627a7b557f41c2"><div class="ttname"><a href="classDGtal_1_1Astroid2D.html#a171e89abf7a5f39b63627a7b557f41c2">DGtal::Astroid2D::isValid</a></div><div class="ttdeci">bool isValid() const</div></div>
<div class="ttc" id="aclassDGtal_1_1Astroid2D_html_a18347663d645507dd8adfa9299b55706"><div class="ttname"><a href="classDGtal_1_1Astroid2D.html#a18347663d645507dd8adfa9299b55706">DGtal::Astroid2D::getLowerBound</a></div><div class="ttdeci">RealPoint getLowerBound() const</div><div class="ttdef"><b>Definition:</b> <a href="Astroid2D_8h_source.html#l00122">Astroid2D.h:122</a></div></div>
<div class="ttc" id="aclassDGtal_1_1Astroid2D_html_a1fcfbefb168af78143709073015300e2"><div class="ttname"><a href="classDGtal_1_1Astroid2D.html#a1fcfbefb168af78143709073015300e2">DGtal::Astroid2D::moveTo</a></div><div class="ttdeci">void moveTo(const RealPoint &newCenter)</div><div class="ttdef"><b>Definition:</b> <a href="Astroid2D_8h_source.html#l00149">Astroid2D.h:149</a></div></div>
<div class="ttc" id="aclassDGtal_1_1Astroid2D_html_a2dae22b503474c456eee1ed554632a55"><div class="ttname"><a href="classDGtal_1_1Astroid2D.html#a2dae22b503474c456eee1ed554632a55">DGtal::Astroid2D::xpp</a></div><div class="ttdeci">RealVector xpp(const double t) const</div></div>
<div class="ttc" id="aclassDGtal_1_1Astroid2D_html_a34523179e6e6e68f34ee37d17b7a3b6d"><div class="ttname"><a href="classDGtal_1_1Astroid2D.html#a34523179e6e6e68f34ee37d17b7a3b6d">DGtal::Astroid2D::x</a></div><div class="ttdeci">RealPoint x(const double t) const</div></div>
<div class="ttc" id="aclassDGtal_1_1Astroid2D_html_a46163b18b6badc7a815c8248d5eadc87"><div class="ttname"><a href="classDGtal_1_1Astroid2D.html#a46163b18b6badc7a815c8248d5eadc87">DGtal::Astroid2D::xp</a></div><div class="ttdeci">RealVector xp(const double t) const</div></div>
<div class="ttc" id="aclassDGtal_1_1Astroid2D_html_a633ec3f90750c1b8a2ed7e9316db5fda"><div class="ttname"><a href="classDGtal_1_1Astroid2D.html#a633ec3f90750c1b8a2ed7e9316db5fda">DGtal::Astroid2D::Astroid2D</a></div><div class="ttdeci">Astroid2D()=delete</div></div>
<div class="ttc" id="aclassDGtal_1_1Astroid2D_html_a6f90ea47b5b56e57b64d008db8dcca51"><div class="ttname"><a href="classDGtal_1_1Astroid2D.html#a6f90ea47b5b56e57b64d008db8dcca51">DGtal::Astroid2D::RealVector</a></div><div class="ttdeci">Space::RealVector RealVector</div><div class="ttdef"><b>Definition:</b> <a href="Astroid2D_8h_source.html#l00068">Astroid2D.h:68</a></div></div>
<div class="ttc" id="aclassDGtal_1_1Astroid2D_html_a7caf7d290ea6cb32b38759a4a10669eb"><div class="ttname"><a href="classDGtal_1_1Astroid2D.html#a7caf7d290ea6cb32b38759a4a10669eb">DGtal::Astroid2D::myA</a></div><div class="ttdeci">double myA</div><div class="ttdef"><b>Definition:</b> <a href="Astroid2D_8h_source.html#l00198">Astroid2D.h:198</a></div></div>
<div class="ttc" id="aclassDGtal_1_1Astroid2D_html_a88130243f7f0ec1a5eb12841257cab29"><div class="ttname"><a href="classDGtal_1_1Astroid2D.html#a88130243f7f0ec1a5eb12841257cab29">DGtal::Astroid2D::center</a></div><div class="ttdeci">RealPoint center() const</div><div class="ttdef"><b>Definition:</b> <a href="Astroid2D_8h_source.html#l00139">Astroid2D.h:139</a></div></div>
<div class="ttc" id="aclassDGtal_1_1Astroid2D_html_a8814ed3556436be8f881e16210029ce7"><div class="ttname"><a href="classDGtal_1_1Astroid2D.html#a8814ed3556436be8f881e16210029ce7">DGtal::Astroid2D::myCenter</a></div><div class="ttdeci">RealPoint myCenter</div><div class="ttdef"><b>Definition:</b> <a href="Astroid2D_8h_source.html#l00193">Astroid2D.h:193</a></div></div>
<div class="ttc" id="aclassDGtal_1_1Astroid2D_html_a908f8c8a34e3880d7a8775f3f70ae906"><div class="ttname"><a href="classDGtal_1_1Astroid2D.html#a908f8c8a34e3880d7a8775f3f70ae906">DGtal::Astroid2D::getUpperBound</a></div><div class="ttdeci">RealPoint getUpperBound() const</div><div class="ttdef"><b>Definition:</b> <a href="Astroid2D_8h_source.html#l00131">Astroid2D.h:131</a></div></div>
<div class="ttc" id="aclassDGtal_1_1Astroid2D_html_a9a3242e80680efe65790bd6aea000cbe"><div class="ttname"><a href="classDGtal_1_1Astroid2D.html#a9a3242e80680efe65790bd6aea000cbe">DGtal::Astroid2D::RealPoint</a></div><div class="ttdeci">Space::RealPoint RealPoint</div><div class="ttdef"><b>Definition:</b> <a href="Astroid2D_8h_source.html#l00067">Astroid2D.h:67</a></div></div>
<div class="ttc" id="aclassDGtal_1_1Astroid2D_html_a9da70b68f631443494b6f2f17c17ef19"><div class="ttname"><a href="classDGtal_1_1Astroid2D.html#a9da70b68f631443494b6f2f17c17ef19">DGtal::Astroid2D::Astroid2D</a></div><div class="ttdeci">Astroid2D(const RealPoint &aPoint, const double a, const double b)</div></div>
<div class="ttc" id="aclassDGtal_1_1Astroid2D_html_aaa760766f9eeafed212936aa0b5e9b91"><div class="ttname"><a href="classDGtal_1_1Astroid2D.html#aaa760766f9eeafed212936aa0b5e9b91">DGtal::Astroid2D::Astroid2D</a></div><div class="ttdeci">Astroid2D(const double x0, const double y0, const double a, const double b)</div></div>
<div class="ttc" id="aclassDGtal_1_1Astroid2D_html_ab749ad462e3a036bb91d34ca969c1ec3"><div class="ttname"><a href="classDGtal_1_1Astroid2D.html#ab749ad462e3a036bb91d34ca969c1ec3">DGtal::Astroid2D::myB</a></div><div class="ttdeci">double myB</div><div class="ttdef"><b>Definition:</b> <a href="Astroid2D_8h_source.html#l00203">Astroid2D.h:203</a></div></div>
<div class="ttc" id="aclassDGtal_1_1Astroid2D_html_abb671fadd88b005a8ebec06624ac2374"><div class="ttname"><a href="classDGtal_1_1Astroid2D.html#abb671fadd88b005a8ebec06624ac2374">DGtal::Astroid2D::Astroid2D</a></div><div class="ttdeci">Astroid2D(const Astroid2D &other)</div></div>
<div class="ttc" id="aclassDGtal_1_1Astroid2D_html_ac41cf51fa69e15cd1aed75d855f23958"><div class="ttname"><a href="classDGtal_1_1Astroid2D.html#ac41cf51fa69e15cd1aed75d855f23958">DGtal::Astroid2D::selfDisplay</a></div><div class="ttdeci">void selfDisplay(std::ostream &out) const</div></div>
<div class="ttc" id="aclassDGtal_1_1Astroid2D_html_acc688752379662f36c8da7a07b2a0338"><div class="ttname"><a href="classDGtal_1_1Astroid2D.html#acc688752379662f36c8da7a07b2a0338">DGtal::Astroid2D::isAlmostEqual</a></div><div class="ttdeci">bool isAlmostEqual(T x, T y) const</div><div class="ttdef"><b>Definition:</b> <a href="Astroid2D_8h_source.html#l00229">Astroid2D.h:229</a></div></div>
<div class="ttc" id="aclassDGtal_1_1Astroid2D_html_acdb7e97d5d2741e8e9b4d42434bfe802"><div class="ttname"><a href="classDGtal_1_1Astroid2D.html#acdb7e97d5d2741e8e9b4d42434bfe802">DGtal::Astroid2D::operator=</a></div><div class="ttdeci">Astroid2D & operator=(const Astroid2D &other)=delete</div></div>
<div class="ttc" id="aclassDGtal_1_1Astroid2D_html_aee24205fe5221280d9783696db1d8bf8"><div class="ttname"><a href="classDGtal_1_1Astroid2D.html#aee24205fe5221280d9783696db1d8bf8">DGtal::Astroid2D::Space</a></div><div class="ttdeci">TSpace Space</div><div class="ttdef"><b>Definition:</b> <a href="Astroid2D_8h_source.html#l00066">Astroid2D.h:66</a></div></div>
<div class="ttc" id="aclassDGtal_1_1Astroid2D_html_af4d86f625af5a2ac13f41e9deb1d87f0"><div class="ttname"><a href="classDGtal_1_1Astroid2D.html#af4d86f625af5a2ac13f41e9deb1d87f0">DGtal::Astroid2D::~Astroid2D</a></div><div class="ttdeci">~Astroid2D()=default</div></div>
<div class="ttc" id="aclassDGtal_1_1Astroid2D_html_af80ccab9287e45e182158b81ad00c4f9"><div class="ttname"><a href="classDGtal_1_1Astroid2D.html#af80ccab9287e45e182158b81ad00c4f9">DGtal::Astroid2D::parameter</a></div><div class="ttdeci">double parameter(const RealPoint &p) const</div></div>
<div class="ttc" id="aclassDGtal_1_1PointVector_html"><div class="ttname"><a href="classDGtal_1_1PointVector.html">DGtal::PointVector</a></div><div class="ttdoc">Aim: Implements basic operations that will be used in Point and Vector classes.</div><div class="ttdef"><b>Definition:</b> <a href="PointVector_8h_source.html#l00592">PointVector.h:593</a></div></div>
<div class="ttc" id="aclassDGtal_1_1StarShaped2D_html"><div class="ttname"><a href="classDGtal_1_1StarShaped2D.html">DGtal::StarShaped2D</a></div><div class="ttdef"><b>Definition:</b> <a href="StarShaped2D_8h_source.html#l00074">StarShaped2D.h:75</a></div></div>
<div class="ttc" id="anamespaceDGtal_html"><div class="ttname"><a href="namespaceDGtal.html">DGtal</a></div><div class="ttdoc">DGtal is the top-level namespace which contains all DGtal functions and types.</div></div>
<div class="ttc" id="anamespaceDGtal_html_a66aca9ad97cfa71ddd5b1333a392d50d"><div class="ttname"><a href="http://dgtal.org/doc/tools/nightly/namespaceDGtal.html#a66aca9ad97cfa71ddd5b1333a392d50d">DGtal::operator<<</a></div><div class="ttdeci">std::ostream & operator<<(std::ostream &out, const ATu0v1< TKSpace, TLinearAlgebra > &object)</div></div>
<div class="ttc" id="atestSimpleRandomAccessRangeFromPoint_8cpp_html_a9ae40316aa447d5a39eb6f76dba59444"><div class="ttname"><a href="testSimpleRandomAccessRangeFromPoint_8cpp.html#a9ae40316aa447d5a39eb6f76dba59444">aPoint</a></div><div class="ttdeci">const Point aPoint(3, 4)</div></div>
<div class="ttc" id="atestTriangulatedSurface_8cpp_html_abb3595c097987c9d2c4f0cc1902df316"><div class="ttname"><a href="testTriangulatedSurface_8cpp.html#abb3595c097987c9d2c4f0cc1902df316">RealPoint</a></div><div class="ttdeci">PointVector< 3, double > RealPoint</div><div class="ttdef"><b>Definition:</b> <a href="testTriangulatedSurface_8cpp_source.html#l00051">testTriangulatedSurface.cpp:51</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_f2cd1aeea1cfa982bb13a5f95fa4218c.html">DGtal</a></li><li class="navelem"><a class="el" href="dir_b5cedd3610db960cb0235f10a76b8ff0.html">shapes</a></li><li class="navelem"><a class="el" href="dir_399699993fff7c2f4ed171da804e88fb.html">parametric</a></li><li class="navelem"><b>Astroid2D.h</b></li>
<li class="footer">Generated on Sat Nov 9 2024 12:44:32 for DGtal by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
</ul>
</div>
</body>
</html>