aboutsummaryrefslogtreecommitdiffstats
path: root/doc/html/LinearTransformations_8h_source.html
blob: 0dc0da42003b6095629d81100c2ab7359bae99ff (plain) (blame)
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
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
<!-- HTML header for doxygen 1.8.3.1-->
<!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.6"/>
<title>Templates -- Meow: meowpp/math/LinearTransformations.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="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="stylesheet.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="logo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">Templates -- Meow
   &#160;<span id="projectnumber">204.13.18</span>
   </div>
   <div id="projectbrief">A C++ template contains kinds of interesting classes and functions</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
</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">
$(document).ready(function(){initNavTree('LinearTransformations_8h_source.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">LinearTransformations.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="LinearTransformations_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef   math_LinearTransformations_H__</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define   math_LinearTransformations_H__</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="LinearTransformation_8h.html">LinearTransformation.h</a>&quot;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="Matrix_8h.html">Matrix.h</a>&quot;</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="math_2utility_8h.html">utility.h</a>&quot;</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &quot;../Self.h&quot;</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &quot;../geo/Vectors.h&quot;</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;</div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &lt;cstdlib&gt;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;</div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="keyword">namespace </span>meow {</div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> Scalar&gt;</div>
<div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="classmeow_1_1Rotation3D.html">   20</a></span>&#160;<span class="keyword">class </span><a class="code" href="classmeow_1_1Rotation3D.html">Rotation3D</a>: <span class="keyword">public</span> <a class="code" href="classmeow_1_1LinearTransformation.html">LinearTransformation</a>&lt;Scalar&gt; {</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;  <span class="keyword">struct </span>Myself {</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;    <a class="code" href="classmeow_1_1Vector3D.html">Vector3D&lt;Scalar&gt;</a> theta_;</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;    <span class="keywordtype">bool</span>              need_;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;    Myself(): theta_(0, 0, 0), need_(<span class="keyword">true</span>) {</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;    }</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;    Myself(Myself <span class="keyword">const</span>&amp; b): theta_(b.theta_), need_(b.need_) {</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    }</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    ~Myself() {</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    }</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;  };</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;  <a class="code" href="classmeow_1_1Self.html">Self&lt;Myself&gt;</a> <span class="keyword">const</span> <span class="keyword">self</span>;</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;  <span class="keywordtype">void</span> calcMatrix()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    <span class="keywordflow">if</span> (self-&gt;need_) {</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;      <a class="code" href="classmeow_1_1Matrix.html">Matrix&lt;Scalar&gt;</a> tmp(3, 3, 0.0);</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;      <span class="keywordflow">if</span> (<a class="code" href="namespacemeow.html#ab9456533c0ae85fba812bfb5b017c8d2">noEPS</a>(self-&gt;theta_.length2()) == 0) {</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;        tmp.<a class="code" href="classmeow_1_1Matrix.html#abc6f5c824ee47cb15094729ca91f2e7c">identitied</a>();</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;      }</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;      <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;        <a class="code" href="classmeow_1_1Vector3D.html">Vector3D&lt;double&gt;</a> axis (self-&gt;theta_.normalize());</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;        <span class="keywordtype">double</span>           angle(self-&gt;theta_.length());</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;        <span class="keywordtype">double</span>           cs(cos(angle / 2.0));</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;        <span class="keywordtype">double</span>           sn(sin(angle / 2.0));</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;        tmp.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(0, 0, 2*(<a class="code" href="namespacemeow.html#a1954e235973a2ac79a7a72a4b7d25573">squ</a>(axis.x())-1.0)*<a class="code" href="namespacemeow.html#a1954e235973a2ac79a7a72a4b7d25573">squ</a>(sn) + 1);</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;        tmp.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(1, 1, 2*(<a class="code" href="namespacemeow.html#a1954e235973a2ac79a7a72a4b7d25573">squ</a>(axis.y())-1.0)*<a class="code" href="namespacemeow.html#a1954e235973a2ac79a7a72a4b7d25573">squ</a>(sn) + 1);</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;        tmp.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(2, 2, 2*(<a class="code" href="namespacemeow.html#a1954e235973a2ac79a7a72a4b7d25573">squ</a>(axis.z())-1.0)*<a class="code" href="namespacemeow.html#a1954e235973a2ac79a7a72a4b7d25573">squ</a>(sn) + 1);</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;        tmp.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(0, 1, 2*axis.x()*axis.y()*<a class="code" href="namespacemeow.html#a1954e235973a2ac79a7a72a4b7d25573">squ</a>(sn) - 2*axis.z()*cs*sn);</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;        tmp.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(1, 0, 2*axis.y()*axis.x()*<a class="code" href="namespacemeow.html#a1954e235973a2ac79a7a72a4b7d25573">squ</a>(sn) + 2*axis.z()*cs*sn);</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;        tmp.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(0, 2, 2*axis.x()*axis.z()*<a class="code" href="namespacemeow.html#a1954e235973a2ac79a7a72a4b7d25573">squ</a>(sn) + 2*axis.y()*cs*sn);</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        tmp.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(2, 0, 2*axis.z()*axis.x()*<a class="code" href="namespacemeow.html#a1954e235973a2ac79a7a72a4b7d25573">squ</a>(sn) - 2*axis.y()*cs*sn);</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;        tmp.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(1, 2, 2*axis.y()*axis.z()*<a class="code" href="namespacemeow.html#a1954e235973a2ac79a7a72a4b7d25573">squ</a>(sn) - 2*axis.x()*cs*sn);</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;        tmp.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(2, 1, 2*axis.z()*axis.y()*<a class="code" href="namespacemeow.html#a1954e235973a2ac79a7a72a4b7d25573">squ</a>(sn) + 2*axis.x()*cs*sn);</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;      }</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;      ((<a class="code" href="classmeow_1_1Rotation3D.html">Rotation3D</a>*)<span class="keyword">this</span>)-&gt;LinearTransformation&lt;Scalar&gt;::matrix(tmp);</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;      <span class="keyword">self</span>()-&gt;need_ = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    }</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;  }</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="classmeow_1_1Rotation3D.html#a90c102c7f74e8a36ac0d24bef6b06337">   69</a></span>&#160;  <a class="code" href="classmeow_1_1Rotation3D.html#a90c102c7f74e8a36ac0d24bef6b06337">Rotation3D</a>(): <a class="code" href="classmeow_1_1LinearTransformation.html">LinearTransformation</a>&lt;Scalar&gt;(3u, 3u, 3u), self() {</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;  }</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;</div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="classmeow_1_1Rotation3D.html#ab566bace2339705305d7e18c36116d2a">   75</a></span>&#160;  <a class="code" href="classmeow_1_1Rotation3D.html#ab566bace2339705305d7e18c36116d2a">Rotation3D</a>(<a class="code" href="classmeow_1_1Rotation3D.html">Rotation3D</a> <span class="keyword">const</span>&amp; b): <a class="code" href="classmeow_1_1LinearTransformation.html">LinearTransformation</a>&lt;Scalar&gt;(b),</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;  self(b.self, <a class="code" href="classmeow_1_1Self.html">Self</a>&lt;Myself&gt;::COPY_FROM) {</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;  }</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div>
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="classmeow_1_1Rotation3D.html#aa9ce2a9c913ea08ba7fb43aed4784a2b">   82</a></span>&#160;  <a class="code" href="classmeow_1_1Rotation3D.html#aa9ce2a9c913ea08ba7fb43aed4784a2b">~Rotation3D</a>() {</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;  }</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;</div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="classmeow_1_1Rotation3D.html#a8ce437d591d81cc81be959d6f27e71c9">   91</a></span>&#160;  <a class="code" href="classmeow_1_1Rotation3D.html">Rotation3D</a>&amp; <a class="code" href="classmeow_1_1Rotation3D.html#a8ce437d591d81cc81be959d6f27e71c9">copyFrom</a>(<a class="code" href="classmeow_1_1Rotation3D.html">Rotation3D</a> <span class="keyword">const</span>&amp; b) {</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    <a class="code" href="classmeow_1_1LinearTransformation.html#afb3ea3e2653152b7b5a8bbad952d3f0e">LinearTransformation&lt;Scalar&gt;::copyFrom</a>(b);</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    <span class="keyword">self</span>().<a class="code" href="classmeow_1_1Rotation3D.html#a8ce437d591d81cc81be959d6f27e71c9">copyFrom</a>(b.self);</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;  }</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;</div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="classmeow_1_1Rotation3D.html#ac2919c38518ea677a85df8757bd8f0d9">  103</a></span>&#160;  <a class="code" href="classmeow_1_1Rotation3D.html">Rotation3D</a>&amp; <a class="code" href="classmeow_1_1Rotation3D.html#ac2919c38518ea677a85df8757bd8f0d9">referenceFrom</a>(<a class="code" href="classmeow_1_1Rotation3D.html">Rotation3D</a> <span class="keyword">const</span>&amp; b) {</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;    <a class="code" href="classmeow_1_1LinearTransformation.html#a573c034e179570f7a1c41f0c1de54c87">LinearTransformation&lt;Scalar&gt;::referenceFrom</a>(b);</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    <span class="keyword">self</span>().<a class="code" href="classmeow_1_1Rotation3D.html#ac2919c38518ea677a85df8757bd8f0d9">referenceFrom</a>(b.self);</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;  }</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;</div>
<div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="classmeow_1_1Rotation3D.html#ac6488df50303b564262065350186549a">  112</a></span>&#160;  Scalar <a class="code" href="classmeow_1_1Rotation3D.html#ac6488df50303b564262065350186549a">parameter</a>(<span class="keywordtype">size_t</span> i)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Rotation3D.html#aeceaa78749d4bd9f5d638591298073dd">theta</a>(i);</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;  }</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;</div>
<div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="classmeow_1_1Rotation3D.html#a0a7c3b7f605caf7bc54f80b25b317972">  119</a></span>&#160;  Scalar <a class="code" href="classmeow_1_1Rotation3D.html#a0a7c3b7f605caf7bc54f80b25b317972">parameter</a>(<span class="keywordtype">size_t</span> i, Scalar <span class="keyword">const</span>&amp; s) {</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Rotation3D.html#aeceaa78749d4bd9f5d638591298073dd">theta</a>(i, s);</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;  }</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;</div>
<div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="classmeow_1_1Rotation3D.html#aeceaa78749d4bd9f5d638591298073dd">  131</a></span>&#160;  Scalar <span class="keyword">const</span>&amp; <a class="code" href="classmeow_1_1Rotation3D.html#aeceaa78749d4bd9f5d638591298073dd">theta</a>(<span class="keywordtype">size_t</span> i)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">self</span>-&gt;theta_(i);</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;  }</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;</div>
<div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="classmeow_1_1Rotation3D.html#a77a863b230bcacdfaf5a534f17268170">  144</a></span>&#160;  Scalar <span class="keyword">const</span>&amp; <a class="code" href="classmeow_1_1Rotation3D.html#a77a863b230bcacdfaf5a534f17268170">theta</a>(<span class="keywordtype">size_t</span> i, Scalar <span class="keyword">const</span>&amp; s) {</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="classmeow_1_1Rotation3D.html#aeceaa78749d4bd9f5d638591298073dd">theta</a>(i) != s) {</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;      <span class="keywordflow">if</span>      (i == 0) <span class="keyword">self</span>()-&gt;theta_.x(s);</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;      <span class="keywordflow">else</span> <span class="keywordflow">if</span> (i == 1) <span class="keyword">self</span>()-&gt;theta_.y(s);</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;      <span class="keywordflow">else</span> <span class="keywordflow">if</span> (i == 2) <span class="keyword">self</span>()-&gt;theta_.z(s);</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;      <span class="keyword">self</span>()-&gt;need_ = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;    }</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Rotation3D.html#aeceaa78749d4bd9f5d638591298073dd">theta</a>(i);</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;  }</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;</div>
<div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="classmeow_1_1Rotation3D.html#a757a196f261a28693061c5e16be97ab6">  160</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classmeow_1_1Rotation3D.html#a757a196f261a28693061c5e16be97ab6">axisAngle</a>(<a class="code" href="classmeow_1_1Vector.html">Vector&lt;Scalar&gt;</a> <span class="keyword">const</span>&amp; axis, Scalar <span class="keyword">const</span>&amp; angle) {</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;    <a class="code" href="classmeow_1_1Vector.html">Vector&lt;Scalar&gt;</a> n(axis.<a class="code" href="classmeow_1_1Vector.html#ab675b777186dd4903367bc77922893ee">normalize</a>());</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i &lt; 3; i++) {</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;      <a class="code" href="classmeow_1_1Rotation3D.html#aeceaa78749d4bd9f5d638591298073dd">theta</a>(i, n(i) * angle);</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;    }</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;  }</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;</div>
<div class="line"><a name="l00171"></a><span class="lineno"><a class="line" href="classmeow_1_1Rotation3D.html#a29ca99627654b9d136c12f6e0e2c91c5">  171</a></span>&#160;  <a class="code" href="classmeow_1_1Rotation3D.html">Rotation3D</a>&amp; <a class="code" href="classmeow_1_1Rotation3D.html#a29ca99627654b9d136c12f6e0e2c91c5">add</a>(<a class="code" href="classmeow_1_1Rotation3D.html">Rotation3D</a> <span class="keyword">const</span>&amp; r) {</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i &lt; 3; i++) {</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;      <a class="code" href="classmeow_1_1Rotation3D.html#aeceaa78749d4bd9f5d638591298073dd">theta</a>(i, r.<a class="code" href="classmeow_1_1Rotation3D.html#aeceaa78749d4bd9f5d638591298073dd">theta</a>(i));</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;    }</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;    <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;  }</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;</div>
<div class="line"><a name="l00213"></a><span class="lineno"><a class="line" href="classmeow_1_1Rotation3D.html#a566ebd46881ef0165aab55a4cf4ca169">  213</a></span>&#160;  <a class="code" href="classmeow_1_1Matrix.html">Matrix&lt;Scalar&gt;</a> <a class="code" href="classmeow_1_1Rotation3D.html#a566ebd46881ef0165aab55a4cf4ca169">transformate</a>(<a class="code" href="classmeow_1_1Matrix.html">Matrix&lt;Scalar&gt;</a> <span class="keyword">const</span>&amp; x)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;    calcMatrix();</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1LinearTransformation.html#aeab1cf88fc67a1857504bd2fb18519f5">LinearTransformation&lt;Scalar&gt;::matrix</a>() * x;</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;  }</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;</div>
<div class="line"><a name="l00243"></a><span class="lineno"><a class="line" href="classmeow_1_1Rotation3D.html#a4846e5870c41f3694678d8acf032b8df">  243</a></span>&#160;  <a class="code" href="classmeow_1_1Matrix.html">Matrix&lt;Scalar&gt;</a> <a class="code" href="classmeow_1_1Rotation3D.html#a4846e5870c41f3694678d8acf032b8df">jacobian</a>(<a class="code" href="classmeow_1_1Matrix.html">Matrix&lt;Scalar&gt;</a> <span class="keyword">const</span>&amp; x)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;    calcMatrix();</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1LinearTransformation.html#aeab1cf88fc67a1857504bd2fb18519f5">LinearTransformation&lt;Scalar&gt;::matrix</a>();</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;  }</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;</div>
<div class="line"><a name="l00320"></a><span class="lineno"><a class="line" href="classmeow_1_1Rotation3D.html#a201c56debd6cc0f4e75cb06148197726">  320</a></span>&#160;  <a class="code" href="classmeow_1_1Matrix.html">Matrix&lt;Scalar&gt;</a> <a class="code" href="classmeow_1_1Rotation3D.html#a201c56debd6cc0f4e75cb06148197726">jacobian</a>(<a class="code" href="classmeow_1_1Matrix.html">Matrix&lt;Scalar&gt;</a> <span class="keyword">const</span>&amp; x, <span class="keywordtype">size_t</span> i)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;    calcMatrix();</div>
<div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;    <a class="code" href="classmeow_1_1Matrix.html">Matrix&lt;Scalar&gt;</a> mid(3u, 3u, Scalar(0.0));</div>
<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;    <span class="keywordflow">if</span> (i == 0) {</div>
<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;      mid.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(1, 2, Scalar(-1.0));</div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;      mid.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(2, 1, Scalar( 1.0));</div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;    }</div>
<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;    <span class="keywordflow">else</span> <span class="keywordflow">if</span>(i == 1) {</div>
<div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;      mid.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(0, 2, Scalar( 1.0));</div>
<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;      mid.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(2, 0, Scalar(-1.0));</div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;    }</div>
<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;    <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;      mid.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(0, 1, Scalar(-1.0));</div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;      mid.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(1, 0, Scalar( 1.0));</div>
<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;    }</div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;    <span class="keywordflow">return</span> mid * <a class="code" href="classmeow_1_1LinearTransformation.html#aeab1cf88fc67a1857504bd2fb18519f5">LinearTransformation&lt;Scalar&gt;::matrix</a>() * x;</div>
<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;  }</div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;</div>
<div class="line"><a name="l00344"></a><span class="lineno"><a class="line" href="classmeow_1_1Rotation3D.html#aa872f44ce5b53faadddc9493697cfe13">  344</a></span>&#160;  <a class="code" href="classmeow_1_1Matrix.html">Matrix&lt;Scalar&gt;</a> <a class="code" href="classmeow_1_1Rotation3D.html#aa872f44ce5b53faadddc9493697cfe13">transformateInv</a>(<a class="code" href="classmeow_1_1Matrix.html">Matrix&lt;Scalar&gt;</a> <span class="keyword">const</span>&amp; x)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Rotation3D.html#a513851c5d53274b76fd9511ba1aea484">matrixInv</a>() * x;</div>
<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;  }</div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;</div>
<div class="line"><a name="l00354"></a><span class="lineno"><a class="line" href="classmeow_1_1Rotation3D.html#ae12a31cabc1260bd7256734f0e04acfb">  354</a></span>&#160;  <a class="code" href="classmeow_1_1Matrix.html">Matrix&lt;Scalar&gt;</a> <a class="code" href="classmeow_1_1Rotation3D.html#ae12a31cabc1260bd7256734f0e04acfb">jacobianInv</a>(<a class="code" href="classmeow_1_1Matrix.html">Matrix&lt;Scalar&gt;</a> <span class="keyword">const</span>&amp; x)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Rotation3D.html#a513851c5d53274b76fd9511ba1aea484">matrixInv</a>();</div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;  }</div>
<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;</div>
<div class="line"><a name="l00365"></a><span class="lineno"><a class="line" href="classmeow_1_1Rotation3D.html#af2a38c66668f6dcc11005e8f42b81f2f">  365</a></span>&#160;  <a class="code" href="classmeow_1_1Matrix.html">Matrix&lt;Scalar&gt;</a> <a class="code" href="classmeow_1_1Rotation3D.html#af2a38c66668f6dcc11005e8f42b81f2f">jacobianInv</a>(<a class="code" href="classmeow_1_1Matrix.html">Matrix&lt;Scalar&gt;</a> <span class="keyword">const</span>&amp; x, <span class="keywordtype">size_t</span> i)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;    calcMatrix();</div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;    <a class="code" href="classmeow_1_1Matrix.html">Matrix&lt;Scalar&gt;</a> mid(3u, 3u, Scalar(0.0));</div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;    <span class="keywordflow">if</span> (i == 0) {</div>
<div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;      mid.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(1, 2, Scalar(-1.0));</div>
<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;      mid.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(2, 1, Scalar( 1.0));</div>
<div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;    }</div>
<div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;    <span class="keywordflow">else</span> <span class="keywordflow">if</span>(i == 1) {</div>
<div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;      mid.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(0, 2, Scalar( 1.0));</div>
<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;      mid.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(2, 0, Scalar(-1.0));</div>
<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;    }</div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;    <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;      mid.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(0, 1, Scalar(-1.0));</div>
<div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;      mid.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(1, 0, Scalar( 1.0));</div>
<div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;    }</div>
<div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Rotation3D.html#a513851c5d53274b76fd9511ba1aea484">matrixInv</a>() * mid.<a class="code" href="classmeow_1_1Matrix.html#a869be60b593d7ce7101ee7ac788b0dd0">transpose</a>() * x;</div>
<div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160;    <span class="keywordflow">return</span> (-mid) * <a class="code" href="classmeow_1_1Rotation3D.html#a513851c5d53274b76fd9511ba1aea484">matrixInv</a>() * x;</div>
<div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;  }</div>
<div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;</div>
<div class="line"><a name="l00391"></a><span class="lineno"><a class="line" href="classmeow_1_1Rotation3D.html#a513851c5d53274b76fd9511ba1aea484">  391</a></span>&#160;  <a class="code" href="classmeow_1_1Matrix.html">Matrix&lt;Scalar&gt;</a> <a class="code" href="classmeow_1_1Rotation3D.html#a513851c5d53274b76fd9511ba1aea484">matrixInv</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;    calcMatrix();</div>
<div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1LinearTransformation.html#aeab1cf88fc67a1857504bd2fb18519f5">LinearTransformation&lt;Scalar&gt;::matrix</a>().<a class="code" href="classmeow_1_1Matrix.html#a869be60b593d7ce7101ee7ac788b0dd0">transpose</a>();</div>
<div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;  }</div>
<div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;</div>
<div class="line"><a name="l00397"></a><span class="lineno"><a class="line" href="classmeow_1_1Rotation3D.html#a3e0095d1f506d6f11c434d55e454aca6">  397</a></span>&#160;  <a class="code" href="classmeow_1_1Rotation3D.html">Rotation3D</a>&amp; <a class="code" href="classmeow_1_1Rotation3D.html#a3e0095d1f506d6f11c434d55e454aca6">operator=</a>(<a class="code" href="classmeow_1_1Rotation3D.html">Rotation3D</a> <span class="keyword">const</span>&amp; b) {</div>
<div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Rotation3D.html#a8ce437d591d81cc81be959d6f27e71c9">copyFrom</a>(b);</div>
<div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;  }</div>
<div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;};</div>
<div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;</div>
<div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;} <span class="comment">// meow</span></div>
<div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;</div>
<div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160;<span class="preprocessor">#endif // math_LinearTransformations_H__</span></div>
<div class="ttc" id="classmeow_1_1Rotation3D_html_a3e0095d1f506d6f11c434d55e454aca6"><div class="ttname"><a href="classmeow_1_1Rotation3D.html#a3e0095d1f506d6f11c434d55e454aca6">meow::Rotation3D::operator=</a></div><div class="ttdeci">Rotation3D &amp; operator=(Rotation3D const &amp;b)</div><div class="ttdoc">same as copyFrom(b) </div><div class="ttdef"><b>Definition:</b> <a href="LinearTransformations_8h_source.html#l00397">LinearTransformations.h:397</a></div></div>
<div class="ttc" id="classmeow_1_1Rotation3D_html_a0a7c3b7f605caf7bc54f80b25b317972"><div class="ttname"><a href="classmeow_1_1Rotation3D.html#a0a7c3b7f605caf7bc54f80b25b317972">meow::Rotation3D::parameter</a></div><div class="ttdeci">Scalar parameter(size_t i, Scalar const &amp;s)</div><div class="ttdoc">same as theta(i, s) </div><div class="ttdef"><b>Definition:</b> <a href="LinearTransformations_8h_source.html#l00119">LinearTransformations.h:119</a></div></div>
<div class="ttc" id="classmeow_1_1Rotation3D_html_a201c56debd6cc0f4e75cb06148197726"><div class="ttname"><a href="classmeow_1_1Rotation3D.html#a201c56debd6cc0f4e75cb06148197726">meow::Rotation3D::jacobian</a></div><div class="ttdeci">Matrix&lt; Scalar &gt; jacobian(Matrix&lt; Scalar &gt; const &amp;x, size_t i) const </div><div class="ttdoc">Return the jacobian matrix of this transformate. </div><div class="ttdef"><b>Definition:</b> <a href="LinearTransformations_8h_source.html#l00320">LinearTransformations.h:320</a></div></div>
<div class="ttc" id="classmeow_1_1Rotation3D_html_a8ce437d591d81cc81be959d6f27e71c9"><div class="ttname"><a href="classmeow_1_1Rotation3D.html#a8ce437d591d81cc81be959d6f27e71c9">meow::Rotation3D::copyFrom</a></div><div class="ttdeci">Rotation3D &amp; copyFrom(Rotation3D const &amp;b)</div><div class="ttdoc">Copy data. </div><div class="ttdef"><b>Definition:</b> <a href="LinearTransformations_8h_source.html#l00091">LinearTransformations.h:91</a></div></div>
<div class="ttc" id="classmeow_1_1Rotation3D_html_aeceaa78749d4bd9f5d638591298073dd"><div class="ttname"><a href="classmeow_1_1Rotation3D.html#aeceaa78749d4bd9f5d638591298073dd">meow::Rotation3D::theta</a></div><div class="ttdeci">Scalar const &amp; theta(size_t i) const </div><div class="ttdoc">Get the i -th theta. </div><div class="ttdef"><b>Definition:</b> <a href="LinearTransformations_8h_source.html#l00131">LinearTransformations.h:131</a></div></div>
<div class="ttc" id="classmeow_1_1Rotation3D_html_ac2919c38518ea677a85df8757bd8f0d9"><div class="ttname"><a href="classmeow_1_1Rotation3D.html#ac2919c38518ea677a85df8757bd8f0d9">meow::Rotation3D::referenceFrom</a></div><div class="ttdeci">Rotation3D &amp; referenceFrom(Rotation3D const &amp;b)</div><div class="ttdoc">Reference data. </div><div class="ttdef"><b>Definition:</b> <a href="LinearTransformations_8h_source.html#l00103">LinearTransformations.h:103</a></div></div>
<div class="ttc" id="classmeow_1_1Rotation3D_html_a566ebd46881ef0165aab55a4cf4ca169"><div class="ttname"><a href="classmeow_1_1Rotation3D.html#a566ebd46881ef0165aab55a4cf4ca169">meow::Rotation3D::transformate</a></div><div class="ttdeci">Matrix&lt; Scalar &gt; transformate(Matrix&lt; Scalar &gt; const &amp;x) const </div><div class="ttdoc">Do the transformate. </div><div class="ttdef"><b>Definition:</b> <a href="LinearTransformations_8h_source.html#l00213">LinearTransformations.h:213</a></div></div>
<div class="ttc" id="classmeow_1_1Rotation3D_html_a4846e5870c41f3694678d8acf032b8df"><div class="ttname"><a href="classmeow_1_1Rotation3D.html#a4846e5870c41f3694678d8acf032b8df">meow::Rotation3D::jacobian</a></div><div class="ttdeci">Matrix&lt; Scalar &gt; jacobian(Matrix&lt; Scalar &gt; const &amp;x) const </div><div class="ttdoc">Return the jacobian matrix (derivate by the input vector) of this transformate. </div><div class="ttdef"><b>Definition:</b> <a href="LinearTransformations_8h_source.html#l00243">LinearTransformations.h:243</a></div></div>
<div class="ttc" id="classmeow_1_1Rotation3D_html_a513851c5d53274b76fd9511ba1aea484"><div class="ttname"><a href="classmeow_1_1Rotation3D.html#a513851c5d53274b76fd9511ba1aea484">meow::Rotation3D::matrixInv</a></div><div class="ttdeci">Matrix&lt; Scalar &gt; matrixInv() const </div><div class="ttdoc">Return the inverse matrix. </div><div class="ttdef"><b>Definition:</b> <a href="LinearTransformations_8h_source.html#l00391">LinearTransformations.h:391</a></div></div>
<div class="ttc" id="classmeow_1_1LinearTransformation_html"><div class="ttname"><a href="classmeow_1_1LinearTransformation.html">meow::LinearTransformation</a></div><div class="ttdoc">A base class for implementing kinds of linear transformations. </div><div class="ttdef"><b>Definition:</b> <a href="LinearTransformation_8h_source.html#l00020">LinearTransformation.h:20</a></div></div>
<div class="ttc" id="math_2utility_8h_html"><div class="ttname"><a href="math_2utility_8h.html">utility.h</a></div></div>
<div class="ttc" id="classmeow_1_1Rotation3D_html_ac6488df50303b564262065350186549a"><div class="ttname"><a href="classmeow_1_1Rotation3D.html#ac6488df50303b564262065350186549a">meow::Rotation3D::parameter</a></div><div class="ttdeci">Scalar parameter(size_t i) const </div><div class="ttdoc">same as theta(i) </div><div class="ttdef"><b>Definition:</b> <a href="LinearTransformations_8h_source.html#l00112">LinearTransformations.h:112</a></div></div>
<div class="ttc" id="classmeow_1_1Rotation3D_html_a90c102c7f74e8a36ac0d24bef6b06337"><div class="ttname"><a href="classmeow_1_1Rotation3D.html#a90c102c7f74e8a36ac0d24bef6b06337">meow::Rotation3D::Rotation3D</a></div><div class="ttdeci">Rotation3D()</div><div class="ttdef"><b>Definition:</b> <a href="LinearTransformations_8h_source.html#l00069">LinearTransformations.h:69</a></div></div>
<div class="ttc" id="namespacemeow_html_ab9456533c0ae85fba812bfb5b017c8d2"><div class="ttname"><a href="namespacemeow.html#ab9456533c0ae85fba812bfb5b017c8d2">meow::noEPS</a></div><div class="ttdeci">T noEPS(T value, T eps=1e-9)</div><div class="ttdoc">如果abs(輸入的數值) &lt; eps, 則回傳0, 否則回傳輸入的數值 </div><div class="ttdef"><b>Definition:</b> <a href="math_2utility_8h_source.html#l00018">utility.h:18</a></div></div>
<div class="ttc" id="classmeow_1_1Rotation3D_html_aa9ce2a9c913ea08ba7fb43aed4784a2b"><div class="ttname"><a href="classmeow_1_1Rotation3D.html#aa9ce2a9c913ea08ba7fb43aed4784a2b">meow::Rotation3D::~Rotation3D</a></div><div class="ttdeci">~Rotation3D()</div><div class="ttdef"><b>Definition:</b> <a href="LinearTransformations_8h_source.html#l00082">LinearTransformations.h:82</a></div></div>
<div class="ttc" id="classmeow_1_1LinearTransformation_html_afb3ea3e2653152b7b5a8bbad952d3f0e"><div class="ttname"><a href="classmeow_1_1LinearTransformation.html#afb3ea3e2653152b7b5a8bbad952d3f0e">meow::LinearTransformation::copyFrom</a></div><div class="ttdeci">LinearTransformation &amp; copyFrom(LinearTransformation const &amp;b)</div><div class="ttdoc">Copy settings, matrix from another LinearTransformation. </div><div class="ttdef"><b>Definition:</b> <a href="LinearTransformation_8h_source.html#l00056">LinearTransformation.h:56</a></div></div>
<div class="ttc" id="classmeow_1_1Vector_html"><div class="ttname"><a href="classmeow_1_1Vector.html">meow::Vector</a></div><div class="ttdoc">vector </div><div class="ttdef"><b>Definition:</b> <a href="Vector_8h_source.html#l00019">Vector.h:19</a></div></div>
<div class="ttc" id="classmeow_1_1Rotation3D_html_ae12a31cabc1260bd7256734f0e04acfb"><div class="ttname"><a href="classmeow_1_1Rotation3D.html#ae12a31cabc1260bd7256734f0e04acfb">meow::Rotation3D::jacobianInv</a></div><div class="ttdeci">Matrix&lt; Scalar &gt; jacobianInv(Matrix&lt; Scalar &gt; const &amp;x) const </div><div class="ttdoc">Return the jacobian matrix of the inverse form of this transformate. </div><div class="ttdef"><b>Definition:</b> <a href="LinearTransformations_8h_source.html#l00354">LinearTransformations.h:354</a></div></div>
<div class="ttc" id="classmeow_1_1Vector3D_html"><div class="ttname"><a href="classmeow_1_1Vector3D.html">meow::Vector3D</a></div><div class="ttdoc">3D&#39;s vector </div><div class="ttdef"><b>Definition:</b> <a href="Vectors_8h_source.html#l00265">Vectors.h:265</a></div></div>
<div class="ttc" id="LinearTransformation_8h_html"><div class="ttname"><a href="LinearTransformation_8h.html">LinearTransformation.h</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_a869be60b593d7ce7101ee7ac788b0dd0"><div class="ttname"><a href="classmeow_1_1Matrix.html#a869be60b593d7ce7101ee7ac788b0dd0">meow::Matrix::transpose</a></div><div class="ttdeci">Matrix transpose() const </div><div class="ttdoc">return itself&#39;s transpose matrix </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00419">Matrix.h:419</a></div></div>
<div class="ttc" id="Matrix_8h_html"><div class="ttname"><a href="Matrix_8h.html">Matrix.h</a></div></div>
<div class="ttc" id="classmeow_1_1Rotation3D_html"><div class="ttname"><a href="classmeow_1_1Rotation3D.html">meow::Rotation3D</a></div><div class="ttdoc">Rotation a point/vector alone an axis with given angle in 3D world. </div><div class="ttdef"><b>Definition:</b> <a href="LinearTransformations_8h_source.html#l00020">LinearTransformations.h:20</a></div></div>
<div class="ttc" id="classmeow_1_1Rotation3D_html_ab566bace2339705305d7e18c36116d2a"><div class="ttname"><a href="classmeow_1_1Rotation3D.html#ab566bace2339705305d7e18c36116d2a">meow::Rotation3D::Rotation3D</a></div><div class="ttdeci">Rotation3D(Rotation3D const &amp;b)</div><div class="ttdef"><b>Definition:</b> <a href="LinearTransformations_8h_source.html#l00075">LinearTransformations.h:75</a></div></div>
<div class="ttc" id="classmeow_1_1LinearTransformation_html_aeab1cf88fc67a1857504bd2fb18519f5"><div class="ttname"><a href="classmeow_1_1LinearTransformation.html#aeab1cf88fc67a1857504bd2fb18519f5">meow::LinearTransformation::matrix</a></div><div class="ttdeci">virtual Matrix&lt; Scalar &gt; const &amp; matrix() const </div><div class="ttdoc">Return the matrix form of this transformation. </div><div class="ttdef"><b>Definition:</b> <a href="LinearTransformation_8h_source.html#l00093">LinearTransformation.h:93</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html"><div class="ttname"><a href="classmeow_1_1Matrix.html">meow::Matrix&lt; Scalar &gt;</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_abc6f5c824ee47cb15094729ca91f2e7c"><div class="ttname"><a href="classmeow_1_1Matrix.html#abc6f5c824ee47cb15094729ca91f2e7c">meow::Matrix::identitied</a></div><div class="ttdeci">Matrix &amp; identitied()</div><div class="ttdoc">Let itself be an identity matrix. </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00351">Matrix.h:351</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_a46a12f45237e654e0140387d7290eb8b"><div class="ttname"><a href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">meow::Matrix::entry</a></div><div class="ttdeci">Entry entry(size_t r, size_t c) const </div><div class="ttdoc">Access the entry at r x c. </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00196">Matrix.h:196</a></div></div>
<div class="ttc" id="classmeow_1_1Rotation3D_html_a757a196f261a28693061c5e16be97ab6"><div class="ttname"><a href="classmeow_1_1Rotation3D.html#a757a196f261a28693061c5e16be97ab6">meow::Rotation3D::axisAngle</a></div><div class="ttdeci">void axisAngle(Vector&lt; Scalar &gt; const &amp;axis, Scalar const &amp;angle)</div><div class="ttdoc">Setting. </div><div class="ttdef"><b>Definition:</b> <a href="LinearTransformations_8h_source.html#l00160">LinearTransformations.h:160</a></div></div>
<div class="ttc" id="classmeow_1_1Rotation3D_html_aa872f44ce5b53faadddc9493697cfe13"><div class="ttname"><a href="classmeow_1_1Rotation3D.html#aa872f44ce5b53faadddc9493697cfe13">meow::Rotation3D::transformateInv</a></div><div class="ttdeci">Matrix&lt; Scalar &gt; transformateInv(Matrix&lt; Scalar &gt; const &amp;x) const </div><div class="ttdoc">Do the inverse transformate. </div><div class="ttdef"><b>Definition:</b> <a href="LinearTransformations_8h_source.html#l00344">LinearTransformations.h:344</a></div></div>
<div class="ttc" id="classmeow_1_1Self_html"><div class="ttname"><a href="classmeow_1_1Self.html">meow::Self&lt; Myself &gt;</a></div></div>
<div class="ttc" id="classmeow_1_1Rotation3D_html_a29ca99627654b9d136c12f6e0e2c91c5"><div class="ttname"><a href="classmeow_1_1Rotation3D.html#a29ca99627654b9d136c12f6e0e2c91c5">meow::Rotation3D::add</a></div><div class="ttdeci">Rotation3D &amp; add(Rotation3D const &amp;r)</div><div class="ttdoc">Concat another rotation transformation. </div><div class="ttdef"><b>Definition:</b> <a href="LinearTransformations_8h_source.html#l00171">LinearTransformations.h:171</a></div></div>
<div class="ttc" id="classmeow_1_1Rotation3D_html_af2a38c66668f6dcc11005e8f42b81f2f"><div class="ttname"><a href="classmeow_1_1Rotation3D.html#af2a38c66668f6dcc11005e8f42b81f2f">meow::Rotation3D::jacobianInv</a></div><div class="ttdeci">Matrix&lt; Scalar &gt; jacobianInv(Matrix&lt; Scalar &gt; const &amp;x, size_t i) const </div><div class="ttdoc">Return the jacobian matrix of the inverse form of this transformate. </div><div class="ttdef"><b>Definition:</b> <a href="LinearTransformations_8h_source.html#l00365">LinearTransformations.h:365</a></div></div>
<div class="ttc" id="classmeow_1_1LinearTransformation_html_a573c034e179570f7a1c41f0c1de54c87"><div class="ttname"><a href="classmeow_1_1LinearTransformation.html#a573c034e179570f7a1c41f0c1de54c87">meow::LinearTransformation::referenceFrom</a></div><div class="ttdeci">LinearTransformation &amp; referenceFrom(LinearTransformation const &amp;b)</div><div class="ttdoc">Reference settings, matrix from another LinearTransformation. </div><div class="ttdef"><b>Definition:</b> <a href="LinearTransformation_8h_source.html#l00067">LinearTransformation.h:67</a></div></div>
<div class="ttc" id="classmeow_1_1Rotation3D_html_a77a863b230bcacdfaf5a534f17268170"><div class="ttname"><a href="classmeow_1_1Rotation3D.html#a77a863b230bcacdfaf5a534f17268170">meow::Rotation3D::theta</a></div><div class="ttdeci">Scalar const &amp; theta(size_t i, Scalar const &amp;s)</div><div class="ttdoc">Set the i -th theta. </div><div class="ttdef"><b>Definition:</b> <a href="LinearTransformations_8h_source.html#l00144">LinearTransformations.h:144</a></div></div>
<div class="ttc" id="namespacemeow_html_a1954e235973a2ac79a7a72a4b7d25573"><div class="ttname"><a href="namespacemeow.html#a1954e235973a2ac79a7a72a4b7d25573">meow::squ</a></div><div class="ttdeci">T squ(T const &amp;x)</div><div class="ttdoc">x*x </div><div class="ttdef"><b>Definition:</b> <a href="math_2utility_8h_source.html#l00067">utility.h:67</a></div></div>
<div class="ttc" id="classmeow_1_1Vector_html_ab675b777186dd4903367bc77922893ee"><div class="ttname"><a href="classmeow_1_1Vector.html#ab675b777186dd4903367bc77922893ee">meow::Vector::normalize</a></div><div class="ttdeci">Vector normalize() const </div><div class="ttdoc">return a normalize form of itself </div><div class="ttdef"><b>Definition:</b> <a href="Vector_8h_source.html#l00209">Vector.h:209</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.3.1-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_92fecd8d02dd5e7a67429447fdf0f60f.html">meowpp</a></li><li class="navelem"><a class="el" href="dir_77e0ab67466b1e7d76f50725a5ab9910.html">math</a></li><li class="navelem"><a class="el" href="LinearTransformations_8h.html">LinearTransformations.h</a></li>
    <li class="footer">Generated on Tue Jun 24 2014 03:53:31 for Templates -- Meow by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>