Sophie

Sophie

distrib > Mageia > 4 > i586 > by-pkgid > 99cb5ede6a5329071fbeecc8218deb35 > files > 146

eigen3-doc-3.2-3.mga4.noarch.rpm

<!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.5"/>
<title>Eigen: Rotation2D.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="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css"   rel="stylesheet" type="text/css" />
<link href="eigendoxy.css" rel="stylesheet" type="text/css">
<!--  -->
<script type="text/javascript" src="eigen_navtree_hacks.js"></script>
<!-- <script type="text/javascript"> -->
<!-- </script> -->
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<!-- <a name="top"></a> -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="Eigen_Silly_Professor_64x64.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname"><a href="http://eigen.tuxfamily.org">Eigen</a>
   &#160;<span id="projectnumber">3.2.0</span>
   </div>
  </td>
   <td>        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
</td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
</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('Rotation2D_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Rotation2D.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">// This file is part of Eigen, a lightweight C++ template library</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">// for linear algebra.</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">// Copyright (C) 2008 Gael Guennebaud &lt;gael.guennebaud@inria.fr&gt;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">// This Source Code Form is subject to the terms of the Mozilla</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">// Public License v. 2.0. If a copy of the MPL was not distributed</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.</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">#ifndef EIGEN_ROTATION2D_H</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define EIGEN_ROTATION2D_H</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="keyword">namespace </span>Eigen { </div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="keyword">namespace </span>internal {</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;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Scalar&gt; <span class="keyword">struct </span>traits&lt;Rotation2D&lt;_Scalar&gt; &gt;</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;  <span class="keyword">typedef</span> _Scalar Scalar;</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="comment">// end namespace internal</span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Scalar&gt;</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="keyword">class </span>Rotation2D : <span class="keyword">public</span> RotationBase&lt;Rotation2D&lt;_Scalar&gt;,2&gt;</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;{</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;  <span class="keyword">typedef</span> RotationBase&lt;Rotation2D&lt;_Scalar&gt;,2&gt; Base;</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;  <span class="keyword">using</span> Base::operator*;</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;  <span class="keyword">enum</span> { Dim = 2 };</div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="classEigen_1_1Rotation2D.html#aea29b63b6c32046ae9a471d82c5cf869">   51</a></span>&#160;  <span class="keyword">typedef</span> _Scalar <a class="code" href="classEigen_1_1Rotation2D.html#aea29b63b6c32046ae9a471d82c5cf869">Scalar</a>;</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;  <span class="keyword">typedef</span> <a class="code" href="classEigen_1_1Matrix.html">Matrix&lt;Scalar,2,1&gt;</a> <a class="code" href="classEigen_1_1Matrix.html">Vector2</a>;</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;  <span class="keyword">typedef</span> <a class="code" href="classEigen_1_1Matrix.html">Matrix&lt;Scalar,2,2&gt;</a> <a class="code" href="classEigen_1_1Matrix.html">Matrix2</a>;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;  <a class="code" href="classEigen_1_1Rotation2D.html#aea29b63b6c32046ae9a471d82c5cf869">Scalar</a> m_angle;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="classEigen_1_1Rotation2D.html#a4c944f17c4f3d932a892cada1b927625">   62</a></span>&#160;  <span class="keyword">inline</span> <a class="code" href="classEigen_1_1Rotation2D.html#a4c944f17c4f3d932a892cada1b927625">Rotation2D</a>(<span class="keyword">const</span> <a class="code" href="classEigen_1_1Rotation2D.html#aea29b63b6c32046ae9a471d82c5cf869">Scalar</a>&amp; a) : m_angle(a) {}</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="classEigen_1_1Rotation2D.html#a0779e44b0f389bec959428f203bc766e">   65</a></span>&#160;  <span class="keyword">inline</span> <a class="code" href="classEigen_1_1Rotation2D.html#aea29b63b6c32046ae9a471d82c5cf869">Scalar</a> <a class="code" href="classEigen_1_1Rotation2D.html#a0779e44b0f389bec959428f203bc766e">angle</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_angle; }</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div>
<div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="classEigen_1_1Rotation2D.html#a83ab19e0cf6095c27248a0136d521172">   68</a></span>&#160;  <span class="keyword">inline</span> <a class="code" href="classEigen_1_1Rotation2D.html#aea29b63b6c32046ae9a471d82c5cf869">Scalar</a>&amp; <a class="code" href="classEigen_1_1Rotation2D.html#a83ab19e0cf6095c27248a0136d521172">angle</a>() { <span class="keywordflow">return</span> m_angle; }</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="classEigen_1_1Rotation2D.html#ab8aa19861bb0513691b920826c75aa43">   71</a></span>&#160;  <span class="keyword">inline</span> <a class="code" href="classEigen_1_1Rotation2D.html">Rotation2D</a> <a class="code" href="classEigen_1_1Rotation2D.html#ab8aa19861bb0513691b920826c75aa43">inverse</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> -m_angle; }</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;</div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="classEigen_1_1Rotation2D.html#ae0c6c089ae4f8aa3069d1de268522ab9">   74</a></span>&#160;  <span class="keyword">inline</span> <a class="code" href="classEigen_1_1Rotation2D.html">Rotation2D</a> <a class="code" href="classEigen_1_1Rotation2D.html#ae0c6c089ae4f8aa3069d1de268522ab9">operator*</a>(<span class="keyword">const</span> <a class="code" href="classEigen_1_1Rotation2D.html">Rotation2D</a>&amp; other)<span class="keyword"> const</span></div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;<span class="keyword">  </span>{ <span class="keywordflow">return</span> m_angle + other.m_angle; }</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;</div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="classEigen_1_1Rotation2D.html#a38e158a4156cbc2978e31a6256ae1d4e">   78</a></span>&#160;  <span class="keyword">inline</span> <a class="code" href="classEigen_1_1Rotation2D.html">Rotation2D</a>&amp; <a class="code" href="classEigen_1_1Rotation2D.html#a38e158a4156cbc2978e31a6256ae1d4e">operator*=</a>(<span class="keyword">const</span> <a class="code" href="classEigen_1_1Rotation2D.html">Rotation2D</a>&amp; other)</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;  { m_angle += other.m_angle; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;</div>
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="classEigen_1_1Rotation2D.html#ad34dc61aab8108f6b660a19d1fdf000a">   82</a></span>&#160;  <a class="code" href="classEigen_1_1Matrix.html">Vector2</a> <a class="code" href="classEigen_1_1Rotation2D.html#ae0c6c089ae4f8aa3069d1de268522ab9">operator* </a>(<span class="keyword">const</span> <a class="code" href="classEigen_1_1Matrix.html">Vector2</a>&amp; vec)<span class="keyword"> const</span></div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="keyword">  </span>{ <span class="keywordflow">return</span> <a class="code" href="classEigen_1_1Rotation2D.html#af10119ceb1241b50e13faef3ecf2ea00">toRotationMatrix</a>() * vec; }</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;  <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;  <a class="code" href="classEigen_1_1Rotation2D.html">Rotation2D</a>&amp; fromRotationMatrix(<span class="keyword">const</span> <a class="code" href="classEigen_1_1MatrixBase.html">MatrixBase&lt;Derived&gt;</a>&amp; m);</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;  Matrix2 <a class="code" href="classEigen_1_1Rotation2D.html#af10119ceb1241b50e13faef3ecf2ea00">toRotationMatrix</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;</div>
<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="classEigen_1_1Rotation2D.html#a56fb619ede8412eec05b51c22b1465c8">   92</a></span>&#160;  <span class="keyword">inline</span> <a class="code" href="classEigen_1_1Rotation2D.html">Rotation2D</a> <a class="code" href="classEigen_1_1Rotation2D.html#a56fb619ede8412eec05b51c22b1465c8">slerp</a>(<span class="keyword">const</span> <a class="code" href="classEigen_1_1Rotation2D.html#aea29b63b6c32046ae9a471d82c5cf869">Scalar</a>&amp; t, <span class="keyword">const</span> <a class="code" href="classEigen_1_1Rotation2D.html">Rotation2D</a>&amp; other)<span class="keyword"> const</span></div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;<span class="keyword">  </span>{ <span class="keywordflow">return</span> m_angle * (1-t) + other.angle() * t; }</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;  <span class="keyword">template</span>&lt;<span class="keyword">typename</span> NewScalarType&gt;</div>
<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="classEigen_1_1Rotation2D.html#aff949e81cb0f149761413b5c020b4d5c">  101</a></span>&#160;  <span class="keyword">inline</span> <span class="keyword">typename</span> internal::cast_return_type&lt;Rotation2D,Rotation2D&lt;NewScalarType&gt; &gt;::type <a class="code" href="classEigen_1_1Rotation2D.html#aff949e81cb0f149761413b5c020b4d5c">cast</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;<span class="keyword">  </span>{ <span class="keywordflow">return</span> <span class="keyword">typename</span> internal::cast_return_type&lt;Rotation2D,Rotation2D&lt;NewScalarType&gt; &gt;::type(*<span class="keyword">this</span>); }</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;  <span class="keyword">template</span>&lt;<span class="keyword">typename</span> OtherScalarType&gt;</div>
<div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="classEigen_1_1Rotation2D.html#a4b8dc04e709066f966d91ce8d14d3036">  106</a></span>&#160;  <span class="keyword">inline</span> <span class="keyword">explicit</span> <a class="code" href="classEigen_1_1Rotation2D.html#a4b8dc04e709066f966d91ce8d14d3036">Rotation2D</a>(<span class="keyword">const</span> <a class="code" href="classEigen_1_1Rotation2D.html">Rotation2D&lt;OtherScalarType&gt;</a>&amp; other)</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;    m_angle = <a class="code" href="classEigen_1_1Rotation2D.html#aea29b63b6c32046ae9a471d82c5cf869">Scalar</a>(other.angle());</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;  }</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;  <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="classEigen_1_1Rotation2D.html">Rotation2D</a> Identity() { <span class="keywordflow">return</span> <a class="code" href="classEigen_1_1Rotation2D.html#a4c944f17c4f3d932a892cada1b927625">Rotation2D</a>(0); }</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;</div>
<div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="classEigen_1_1Rotation2D.html#acbcfcb4bf11ad867602619fb454d776d">  117</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classEigen_1_1Rotation2D.html#acbcfcb4bf11ad867602619fb454d776d">isApprox</a>(<span class="keyword">const</span> <a class="code" href="classEigen_1_1Rotation2D.html">Rotation2D</a>&amp; other, <span class="keyword">const</span> <span class="keyword">typename</span> <a class="code" href="structEigen_1_1NumTraits.html">NumTraits&lt;Scalar&gt;::Real</a>&amp; prec = <a class="code" href="structEigen_1_1NumTraits.html">NumTraits&lt;Scalar&gt;::dummy_precision</a>())<span class="keyword"> const</span></div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;<span class="keyword">  </span>{ <span class="keywordflow">return</span> internal::isApprox(m_angle,other.m_angle, prec); }</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;};</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;</div>
<div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="group__Geometry__Module.html#ga9a907f59280ce5650106a74904bab16d">  123</a></span>&#160;<span class="keyword">typedef</span> <a class="code" href="classEigen_1_1Rotation2D.html">Rotation2D&lt;float&gt;</a> <a class="code" href="group__Geometry__Module.html#ga9a907f59280ce5650106a74904bab16d">Rotation2Df</a>;</div>
<div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="group__Geometry__Module.html#ga197b898c965d08135ebfb21bf41b23e2">  126</a></span>&#160;<span class="keyword">typedef</span> <a class="code" href="classEigen_1_1Rotation2D.html">Rotation2D&lt;double&gt;</a> <a class="code" href="group__Geometry__Module.html#ga197b898c965d08135ebfb21bf41b23e2">Rotation2Dd</a>;</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Scalar&gt;</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="classEigen_1_1Rotation2D.html#ad46a27f9af696b194058db333a95f7d9">  134</a></span>&#160;<a class="code" href="classEigen_1_1Rotation2D.html">Rotation2D&lt;Scalar&gt;</a>&amp; <a class="code" href="classEigen_1_1Rotation2D.html">Rotation2D&lt;Scalar&gt;::fromRotationMatrix</a>(<span class="keyword">const</span> <a class="code" href="classEigen_1_1MatrixBase.html">MatrixBase&lt;Derived&gt;</a>&amp; mat)</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;{</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;  <span class="keyword">using</span> std::atan2;</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;  EIGEN_STATIC_ASSERT(Derived::RowsAtCompileTime==2 &amp;&amp; Derived::ColsAtCompileTime==2,YOU_MADE_A_PROGRAMMING_MISTAKE)</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;  m_angle = atan2(mat.coeff(1,0), mat.coeff(0,0));</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;}</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Scalar&gt;</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;<span class="keyword">typename</span> <a class="code" href="classEigen_1_1Matrix.html">Rotation2D&lt;Scalar&gt;::Matrix2</a></div>
<div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="classEigen_1_1Rotation2D.html#af10119ceb1241b50e13faef3ecf2ea00">  146</a></span>&#160;<a class="code" href="classEigen_1_1Rotation2D.html#af10119ceb1241b50e13faef3ecf2ea00">Rotation2D&lt;Scalar&gt;::toRotationMatrix</a>(<span class="keywordtype">void</span>)<span class="keyword"> const</span></div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;  <span class="keyword">using</span> std::sin;</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;  <span class="keyword">using</span> std::cos;</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;  <a class="code" href="classEigen_1_1Rotation2D.html#aea29b63b6c32046ae9a471d82c5cf869">Scalar</a> sinA = sin(m_angle);</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;  <a class="code" href="classEigen_1_1Rotation2D.html#aea29b63b6c32046ae9a471d82c5cf869">Scalar</a> cosA = cos(m_angle);</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;  <span class="keywordflow">return</span> (<a class="code" href="classEigen_1_1Matrix.html">Matrix2</a>() &lt;&lt; cosA, -sinA, sinA, cosA).finished();</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;}</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;} <span class="comment">// end namespace Eigen</span></div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;<span class="preprocessor">#endif // EIGEN_ROTATION2D_H</span></div>
<div class="ttc" id="group__Geometry__Module_html_ga197b898c965d08135ebfb21bf41b23e2"><div class="ttname"><a href="group__Geometry__Module.html#ga197b898c965d08135ebfb21bf41b23e2">Eigen::Rotation2Dd</a></div><div class="ttdeci">Rotation2D&lt; double &gt; Rotation2Dd</div><div class="ttdef"><b>Definition:</b> Rotation2D.h:126</div></div>
<div class="ttc" id="structEigen_1_1NumTraits_html"><div class="ttname"><a href="structEigen_1_1NumTraits.html">Eigen::NumTraits</a></div><div class="ttdoc">Holds information about the various numeric (i.e. scalar) types allowed by Eigen. ...</div><div class="ttdef"><b>Definition:</b> NumTraits.h:88</div></div>
<div class="ttc" id="classEigen_1_1Rotation2D_html_a4c944f17c4f3d932a892cada1b927625"><div class="ttname"><a href="classEigen_1_1Rotation2D.html#a4c944f17c4f3d932a892cada1b927625">Eigen::Rotation2D::Rotation2D</a></div><div class="ttdeci">Rotation2D(const Scalar &amp;a)</div><div class="ttdef"><b>Definition:</b> Rotation2D.h:62</div></div>
<div class="ttc" id="classEigen_1_1Rotation2D_html_aea29b63b6c32046ae9a471d82c5cf869"><div class="ttname"><a href="classEigen_1_1Rotation2D.html#aea29b63b6c32046ae9a471d82c5cf869">Eigen::Rotation2D::Scalar</a></div><div class="ttdeci">_Scalar Scalar</div><div class="ttdef"><b>Definition:</b> Rotation2D.h:51</div></div>
<div class="ttc" id="classEigen_1_1Rotation2D_html_ab8aa19861bb0513691b920826c75aa43"><div class="ttname"><a href="classEigen_1_1Rotation2D.html#ab8aa19861bb0513691b920826c75aa43">Eigen::Rotation2D::inverse</a></div><div class="ttdeci">Rotation2D inverse() const </div><div class="ttdef"><b>Definition:</b> Rotation2D.h:71</div></div>
<div class="ttc" id="classEigen_1_1Rotation2D_html_a56fb619ede8412eec05b51c22b1465c8"><div class="ttname"><a href="classEigen_1_1Rotation2D.html#a56fb619ede8412eec05b51c22b1465c8">Eigen::Rotation2D::slerp</a></div><div class="ttdeci">Rotation2D slerp(const Scalar &amp;t, const Rotation2D &amp;other) const </div><div class="ttdef"><b>Definition:</b> Rotation2D.h:92</div></div>
<div class="ttc" id="classEigen_1_1Rotation2D_html_ae0c6c089ae4f8aa3069d1de268522ab9"><div class="ttname"><a href="classEigen_1_1Rotation2D.html#ae0c6c089ae4f8aa3069d1de268522ab9">Eigen::Rotation2D::operator*</a></div><div class="ttdeci">Rotation2D operator*(const Rotation2D &amp;other) const </div><div class="ttdef"><b>Definition:</b> Rotation2D.h:74</div></div>
<div class="ttc" id="group__Geometry__Module_html_ga9a907f59280ce5650106a74904bab16d"><div class="ttname"><a href="group__Geometry__Module.html#ga9a907f59280ce5650106a74904bab16d">Eigen::Rotation2Df</a></div><div class="ttdeci">Rotation2D&lt; float &gt; Rotation2Df</div><div class="ttdef"><b>Definition:</b> Rotation2D.h:123</div></div>
<div class="ttc" id="classEigen_1_1Rotation2D_html_aff949e81cb0f149761413b5c020b4d5c"><div class="ttname"><a href="classEigen_1_1Rotation2D.html#aff949e81cb0f149761413b5c020b4d5c">Eigen::Rotation2D::cast</a></div><div class="ttdeci">internal::cast_return_type&lt; Rotation2D, Rotation2D&lt; NewScalarType &gt; &gt;::type cast() const </div><div class="ttdef"><b>Definition:</b> Rotation2D.h:101</div></div>
<div class="ttc" id="classEigen_1_1Rotation2D_html_a38e158a4156cbc2978e31a6256ae1d4e"><div class="ttname"><a href="classEigen_1_1Rotation2D.html#a38e158a4156cbc2978e31a6256ae1d4e">Eigen::Rotation2D::operator*=</a></div><div class="ttdeci">Rotation2D &amp; operator*=(const Rotation2D &amp;other)</div><div class="ttdef"><b>Definition:</b> Rotation2D.h:78</div></div>
<div class="ttc" id="classEigen_1_1Rotation2D_html"><div class="ttname"><a href="classEigen_1_1Rotation2D.html">Eigen::Rotation2D</a></div><div class="ttdoc">Represents a rotation/orientation in a 2 dimensional space. </div><div class="ttdef"><b>Definition:</b> ForwardDeclarations.h:234</div></div>
<div class="ttc" id="classEigen_1_1Rotation2D_html_acbcfcb4bf11ad867602619fb454d776d"><div class="ttname"><a href="classEigen_1_1Rotation2D.html#acbcfcb4bf11ad867602619fb454d776d">Eigen::Rotation2D::isApprox</a></div><div class="ttdeci">bool isApprox(const Rotation2D &amp;other, const typename NumTraits&lt; Scalar &gt;::Real &amp;prec=NumTraits&lt; Scalar &gt;::dummy_precision()) const </div><div class="ttdef"><b>Definition:</b> Rotation2D.h:117</div></div>
<div class="ttc" id="classEigen_1_1Rotation2D_html_af10119ceb1241b50e13faef3ecf2ea00"><div class="ttname"><a href="classEigen_1_1Rotation2D.html#af10119ceb1241b50e13faef3ecf2ea00">Eigen::Rotation2D::toRotationMatrix</a></div><div class="ttdeci">Matrix2 toRotationMatrix(void) const </div><div class="ttdef"><b>Definition:</b> Rotation2D.h:146</div></div>
<div class="ttc" id="classEigen_1_1Rotation2D_html_a4b8dc04e709066f966d91ce8d14d3036"><div class="ttname"><a href="classEigen_1_1Rotation2D.html#a4b8dc04e709066f966d91ce8d14d3036">Eigen::Rotation2D::Rotation2D</a></div><div class="ttdeci">Rotation2D(const Rotation2D&lt; OtherScalarType &gt; &amp;other)</div><div class="ttdef"><b>Definition:</b> Rotation2D.h:106</div></div>
<div class="ttc" id="classEigen_1_1Rotation2D_html_a0779e44b0f389bec959428f203bc766e"><div class="ttname"><a href="classEigen_1_1Rotation2D.html#a0779e44b0f389bec959428f203bc766e">Eigen::Rotation2D::angle</a></div><div class="ttdeci">Scalar angle() const </div><div class="ttdef"><b>Definition:</b> Rotation2D.h:65</div></div>
<div class="ttc" id="classEigen_1_1Matrix_html"><div class="ttname"><a href="classEigen_1_1Matrix.html">Eigen::Matrix</a></div><div class="ttdoc">The matrix class, also used for vectors and row-vectors. </div><div class="ttdef"><b>Definition:</b> Matrix.h:127</div></div>
<div class="ttc" id="classEigen_1_1MatrixBase_html"><div class="ttname"><a href="classEigen_1_1MatrixBase.html">Eigen::MatrixBase</a></div><div class="ttdoc">Base class for all dense matrices, vectors, and expressions. </div><div class="ttdef"><b>Definition:</b> MatrixBase.h:48</div></div>
<div class="ttc" id="classEigen_1_1Rotation2D_html_a83ab19e0cf6095c27248a0136d521172"><div class="ttname"><a href="classEigen_1_1Rotation2D.html#a83ab19e0cf6095c27248a0136d521172">Eigen::Rotation2D::angle</a></div><div class="ttdeci">Scalar &amp; angle()</div><div class="ttdef"><b>Definition:</b> Rotation2D.h:68</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_e49d68e3078f12dfcf157021597ad168.html">Eigen</a></li><li class="navelem"><a class="el" href="dir_64b228556dc7f9fe757d43bb57fbfc24.html">src</a></li><li class="navelem"><a class="el" href="dir_d3830aef5e02ff83b0a743a58bf9d99e.html">Geometry</a></li><li class="navelem"><b>Rotation2D.h</b></li>
    <li class="footer">Generated on Mon Oct 28 2013 11:04:25 for Eigen by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.5 </li>
  </ul>
</div>
<!-- Piwik --> 
<!--
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://stats.sylphide-consulting.com/piwik/" : "http://stats.sylphide-consulting.com/piwik/");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
</script><script type="text/javascript">
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 20);
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
</script><noscript><p><img src="http://stats.sylphide-consulting.com/piwik/piwik.php?idsite=20" style="border:0" alt="" /></p></noscript>
-->
<!-- End Piwik Tracking Code -->
</body>
</html>