|
|
<!-- 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
 <span id="projectnumber">1.2.9</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> <span class="preprocessor">#ifndef math_LinearTransformations_H__</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <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> <span class="preprocessor"></span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#include "<a class="code" href="LinearTransformation_8h.html">LinearTransformation.h</a>"</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#include "<a class="code" href="Matrix_8h.html">Matrix.h</a>"</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#include "<a class="code" href="math_2utility_8h.html">utility.h</a>"</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#include "../Self.h"</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include "../geo/Vectors.h"</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> </div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#include <cstdlib></span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> </div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="keyword">namespace </span>meow {</div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> </div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="keyword">template</span><<span class="keyword">class</span> Scalar></div>
<div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="classmeow_1_1Rotation3D.html"> 20</a></span> <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><Scalar> {</div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="keyword">private</span>:</div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  <span class="keyword">struct </span>Myself {</div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  <a class="code" href="classmeow_1_1Vector3D.html">Vector3D<Scalar></a> theta_;</div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  <span class="keywordtype">bool</span> need_;</div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  Myself(): theta_(0, 0, 0), need_(<span class="keyword">true</span>) {</div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  }</div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  Myself(Myself <span class="keyword">const</span>& b): theta_(b.theta_), need_(b.need_) {</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  }</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> </div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  ~Myself() {</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  }</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  };</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <a class="code" href="classmeow_1_1Self.html">Self<Myself></a> <span class="keyword">const</span> <span class="keyword">self</span>;</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="keywordtype">void</span> calcMatrix()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keywordflow">if</span> (self->need_) {</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix<Scalar></a> tmp(3, 3, 0.0);</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keywordflow">if</span> (<a class="code" href="namespacemeow.html#ab9456533c0ae85fba812bfb5b017c8d2">noEPS</a>(self->theta_.length2()) == 0) {</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  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>  }</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <a class="code" href="classmeow_1_1Vector3D.html">Vector3D<double></a> axis (self->theta_.normalize());</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="keywordtype">double</span> angle(self->theta_.length());</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keywordtype">double</span> cs(cos(angle / 2.0));</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keywordtype">double</span> sn(sin(angle / 2.0));</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> </div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  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>  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>  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>  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>  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>  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>  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>  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>  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>  }</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  ((<a class="code" href="classmeow_1_1Rotation3D.html">Rotation3D</a>*)<span class="keyword">this</span>)->LinearTransformation<Scalar>::matrix(tmp);</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keyword">self</span>()->need_ = <span class="keyword">false</span>;</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>  }</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> </div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span> <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>  <a class="code" href="classmeow_1_1Rotation3D.html#a90c102c7f74e8a36ac0d24bef6b06337">Rotation3D</a>(): <a class="code" href="classmeow_1_1LinearTransformation.html">LinearTransformation</a><Scalar>(3u, 3u, 3u), self() {</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  }</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span> </div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="classmeow_1_1Rotation3D.html#ab566bace2339705305d7e18c36116d2a"> 75</a></span>  <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>& b): <a class="code" href="classmeow_1_1LinearTransformation.html">LinearTransformation</a><Scalar>(b),</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  self(b.self, <a class="code" href="classmeow_1_1Self.html">Self</a><Myself>::COPY_FROM) {</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  }</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span> </div>
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="classmeow_1_1Rotation3D.html#aa9ce2a9c913ea08ba7fb43aed4784a2b"> 82</a></span>  <a class="code" href="classmeow_1_1Rotation3D.html#aa9ce2a9c913ea08ba7fb43aed4784a2b">~Rotation3D</a>() {</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  }</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span> </div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="classmeow_1_1Rotation3D.html#a8ce437d591d81cc81be959d6f27e71c9"> 91</a></span>  <a class="code" href="classmeow_1_1Rotation3D.html">Rotation3D</a>& <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>& b) {</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <a class="code" href="classmeow_1_1LinearTransformation.html#afb3ea3e2653152b7b5a8bbad952d3f0e">LinearTransformation<Scalar>::copyFrom</a>(b);</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <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>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  }</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span> </div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="classmeow_1_1Rotation3D.html#ac2919c38518ea677a85df8757bd8f0d9"> 103</a></span>  <a class="code" href="classmeow_1_1Rotation3D.html">Rotation3D</a>& <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>& b) {</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <a class="code" href="classmeow_1_1LinearTransformation.html#a573c034e179570f7a1c41f0c1de54c87">LinearTransformation<Scalar>::referenceFrom</a>(b);</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <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>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  }</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span> </div>
<div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="classmeow_1_1Rotation3D.html#ac6488df50303b564262065350186549a"> 112</a></span>  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>  <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>  }</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span> </div>
<div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="classmeow_1_1Rotation3D.html#a0a7c3b7f605caf7bc54f80b25b317972"> 119</a></span>  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>& s) {</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <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>  }</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span> </div>
<div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="classmeow_1_1Rotation3D.html#aeceaa78749d4bd9f5d638591298073dd"> 131</a></span>  Scalar <span class="keyword">const</span>& <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>  <span class="keywordflow">return</span> <span class="keyword">self</span>->theta_(i);</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  }</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span> </div>
<div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="classmeow_1_1Rotation3D.html#a77a863b230bcacdfaf5a534f17268170"> 144</a></span>  Scalar <span class="keyword">const</span>& <a class="code" href="classmeow_1_1Rotation3D.html#a77a863b230bcacdfaf5a534f17268170">theta</a>(<span class="keywordtype">size_t</span> i, Scalar <span class="keyword">const</span>& s) {</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <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>  <span class="keywordflow">if</span> (i == 0) <span class="keyword">self</span>()->theta_.x(s);</div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span> (i == 1) <span class="keyword">self</span>()->theta_.y(s);</div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span> (i == 2) <span class="keyword">self</span>()->theta_.z(s);</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <span class="keyword">self</span>()->need_ = <span class="keyword">true</span>;</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>  <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>  }</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="classmeow_1_1Rotation3D.html#a757a196f261a28693061c5e16be97ab6"> 160</a></span>  <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<Scalar></a> <span class="keyword">const</span>& axis, Scalar <span class="keyword">const</span>& angle) {</div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <a class="code" href="classmeow_1_1Vector.html">Vector<Scalar></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>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i < 3; i++) {</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <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>  }</div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  }</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span> </div>
<div class="line"><a name="l00171"></a><span class="lineno"><a class="line" href="classmeow_1_1Rotation3D.html#a29ca99627654b9d136c12f6e0e2c91c5"> 171</a></span>  <a class="code" href="classmeow_1_1Rotation3D.html">Rotation3D</a>& <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>& r) {</div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i < 3; i++) {</div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  <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>  }</div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  }</div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span> </div>
<div class="line"><a name="l00213"></a><span class="lineno"><a class="line" href="classmeow_1_1Rotation3D.html#a566ebd46881ef0165aab55a4cf4ca169"> 213</a></span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix<Scalar></a> <a class="code" href="classmeow_1_1Rotation3D.html#a566ebd46881ef0165aab55a4cf4ca169">transformate</a>(<a class="code" href="classmeow_1_1Matrix.html">Matrix<Scalar></a> <span class="keyword">const</span>& x)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  calcMatrix();</div>
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1LinearTransformation.html#aeab1cf88fc67a1857504bd2fb18519f5">LinearTransformation<Scalar>::matrix</a>() * x;</div>
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  }</div>
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span> </div>
<div class="line"><a name="l00243"></a><span class="lineno"><a class="line" href="classmeow_1_1Rotation3D.html#a4846e5870c41f3694678d8acf032b8df"> 243</a></span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix<Scalar></a> <a class="code" href="classmeow_1_1Rotation3D.html#a4846e5870c41f3694678d8acf032b8df">jacobian</a>(<a class="code" href="classmeow_1_1Matrix.html">Matrix<Scalar></a> <span class="keyword">const</span>& x)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  calcMatrix();</div>
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1LinearTransformation.html#aeab1cf88fc67a1857504bd2fb18519f5">LinearTransformation<Scalar>::matrix</a>();</div>
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  }</div>
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span> </div>
<div class="line"><a name="l00320"></a><span class="lineno"><a class="line" href="classmeow_1_1Rotation3D.html#a201c56debd6cc0f4e75cb06148197726"> 320</a></span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix<Scalar></a> <a class="code" href="classmeow_1_1Rotation3D.html#a201c56debd6cc0f4e75cb06148197726">jacobian</a>(<a class="code" href="classmeow_1_1Matrix.html">Matrix<Scalar></a> <span class="keyword">const</span>& 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>  calcMatrix();</div>
<div class="line"><a name="l00322"></a><span class="lineno"> 322</span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix<Scalar></a> mid(3u, 3u, Scalar(0.0));</div>
<div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  <span class="keywordflow">if</span> (i == 0) {</div>
<div class="line"><a name="l00324"></a><span class="lineno"> 324</span>  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>  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>  }</div>
<div class="line"><a name="l00327"></a><span class="lineno"> 327</span>  <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>  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>  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>  }</div>
<div class="line"><a name="l00331"></a><span class="lineno"> 331</span>  <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00332"></a><span class="lineno"> 332</span>  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>  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>  }</div>
<div class="line"><a name="l00335"></a><span class="lineno"> 335</span>  <span class="keywordflow">return</span> mid * <a class="code" href="classmeow_1_1LinearTransformation.html#aeab1cf88fc67a1857504bd2fb18519f5">LinearTransformation<Scalar>::matrix</a>() * x;</div>
<div class="line"><a name="l00336"></a><span class="lineno"> 336</span>  }</div>
<div class="line"><a name="l00337"></a><span class="lineno"> 337</span> </div>
<div class="line"><a name="l00344"></a><span class="lineno"><a class="line" href="classmeow_1_1Rotation3D.html#aa872f44ce5b53faadddc9493697cfe13"> 344</a></span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix<Scalar></a> <a class="code" href="classmeow_1_1Rotation3D.html#aa872f44ce5b53faadddc9493697cfe13">transformateInv</a>(<a class="code" href="classmeow_1_1Matrix.html">Matrix<Scalar></a> <span class="keyword">const</span>& x)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  <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>  }</div>
<div class="line"><a name="l00347"></a><span class="lineno"> 347</span> </div>
<div class="line"><a name="l00354"></a><span class="lineno"><a class="line" href="classmeow_1_1Rotation3D.html#ae12a31cabc1260bd7256734f0e04acfb"> 354</a></span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix<Scalar></a> <a class="code" href="classmeow_1_1Rotation3D.html#ae12a31cabc1260bd7256734f0e04acfb">jacobianInv</a>(<a class="code" href="classmeow_1_1Matrix.html">Matrix<Scalar></a> <span class="keyword">const</span>& x)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00355"></a><span class="lineno"> 355</span>  <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>  }</div>
<div class="line"><a name="l00357"></a><span class="lineno"> 357</span> </div>
<div class="line"><a name="l00365"></a><span class="lineno"><a class="line" href="classmeow_1_1Rotation3D.html#af2a38c66668f6dcc11005e8f42b81f2f"> 365</a></span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix<Scalar></a> <a class="code" href="classmeow_1_1Rotation3D.html#af2a38c66668f6dcc11005e8f42b81f2f">jacobianInv</a>(<a class="code" href="classmeow_1_1Matrix.html">Matrix<Scalar></a> <span class="keyword">const</span>& 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>  calcMatrix();</div>
<div class="line"><a name="l00367"></a><span class="lineno"> 367</span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix<Scalar></a> mid(3u, 3u, Scalar(0.0));</div>
<div class="line"><a name="l00368"></a><span class="lineno"> 368</span>  <span class="keywordflow">if</span> (i == 0) {</div>
<div class="line"><a name="l00369"></a><span class="lineno"> 369</span>  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>  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>  }</div>
<div class="line"><a name="l00372"></a><span class="lineno"> 372</span>  <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>  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>  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>  }</div>
<div class="line"><a name="l00376"></a><span class="lineno"> 376</span>  <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00377"></a><span class="lineno"> 377</span>  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>  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>  }</div>
<div class="line"><a name="l00380"></a><span class="lineno"> 380</span>  <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>  <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>  }</div>
<div class="line"><a name="l00383"></a><span class="lineno"> 383</span> </div>
<div class="line"><a name="l00391"></a><span class="lineno"><a class="line" href="classmeow_1_1Rotation3D.html#a513851c5d53274b76fd9511ba1aea484"> 391</a></span>  <a class="code" href="classmeow_1_1Matrix.html">Matrix<Scalar></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>  calcMatrix();</div>
<div class="line"><a name="l00393"></a><span class="lineno"> 393</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1LinearTransformation.html#aeab1cf88fc67a1857504bd2fb18519f5">LinearTransformation<Scalar>::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>  }</div>
<div class="line"><a name="l00395"></a><span class="lineno"> 395</span> </div>
<div class="line"><a name="l00397"></a><span class="lineno"><a class="line" href="classmeow_1_1Rotation3D.html#a3e0095d1f506d6f11c434d55e454aca6"> 397</a></span>  <a class="code" href="classmeow_1_1Rotation3D.html">Rotation3D</a>& <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>& b) {</div>
<div class="line"><a name="l00398"></a><span class="lineno"> 398</span>  <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>  }</div>
<div class="line"><a name="l00400"></a><span class="lineno"> 400</span> };</div>
<div class="line"><a name="l00401"></a><span class="lineno"> 401</span> </div>
<div class="line"><a name="l00402"></a><span class="lineno"> 402</span> } <span class="comment">// meow</span></div>
<div class="line"><a name="l00403"></a><span class="lineno"> 403</span> </div>
<div class="line"><a name="l00404"></a><span class="lineno"> 404</span> <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 & operator=(Rotation3D const &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 &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< Scalar > jacobian(Matrix< Scalar > const &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 & copyFrom(Rotation3D const &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 & 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 & referenceFrom(Rotation3D const &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< Scalar > transformate(Matrix< Scalar > const &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< Scalar > jacobian(Matrix< Scalar > const &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< Scalar > 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(輸入的數值) < 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 & copyFrom(LinearTransformation const &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< Scalar > jacobianInv(Matrix< Scalar > const &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's vector </div><div class="ttdef"><b>Definition:</b> <a href="Vectors_8h_source.html#l00245">Vectors.h:245</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's transpose matrix </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00434">Matrix.h:434</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 &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< Scalar > const & 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< Scalar ></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 & identitied()</div><div class="ttdoc">Let itself be an identity matrix. </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00366">Matrix.h:366</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#l00211">Matrix.h:211</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< Scalar > const &axis, Scalar const &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< Scalar > transformateInv(Matrix< Scalar > const &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< Myself ></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 & add(Rotation3D const &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< Scalar > jacobianInv(Matrix< Scalar > const &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 & referenceFrom(LinearTransformation const &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 & theta(size_t i, Scalar const &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 &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 Fri Jun 27 2014 18:24:40 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>
|