<!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< Scalar > Class Template Reference</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>  <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('classEigen_1_1Rotation2D.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"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark"> </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="summary"> <a href="classEigen_1_1Rotation2D-members.html">List of all members</a> | <a href="#pub-types">Public Types</a> | <a href="#pub-methods">Public Member Functions</a> </div> <div class="headertitle"> <div class="title">Rotation2D< Scalar > Class Template Reference<div class="ingroups"><a class="el" href="group__Geometry__Module.html">Geometry module</a></div></div> </div> </div><!--header--> <div class="contents"> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><h3>template<typename Scalar><br/> class Eigen::Rotation2D< Scalar ></h3> <p>Represents a rotation/orientation in a 2 dimensional space. </p> <p>This is defined in the Geometry module.</p> <div class="fragment"><div class="line"><span class="preprocessor">#include <Eigen/Geometry></span> </div> </div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">_Scalar</td><td>the scalar type, i.e., the type of the coefficients</td></tr> </table> </dd> </dl> <p>This class is equivalent to a single scalar representing a counter clock wise rotation as a single angle in radian. It provides some additional features such as the automatic conversion from/to a 2x2 rotation matrix. Moreover this class aims to provide a similar interface to <a class="el" href="classEigen_1_1Quaternion.html" title="The quaternion class used to represent 3D orientations and rotations. ">Quaternion</a> in order to facilitate the writing of generic algorithms dealing with rotations.</p> <dl class="section see"><dt>See Also</dt><dd>class <a class="el" href="classEigen_1_1Quaternion.html" title="The quaternion class used to represent 3D orientations and rotations. ">Quaternion</a>, class <a class="el" href="classEigen_1_1Transform.html" title="Represents an homogeneous transformation in a N dimensional space. ">Transform</a> </dd></dl> </div><div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;"> <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for Rotation2D< Scalar >:</div> <div id="dynsection-0-summary" class="dynsummary" style="display:block;"> </div> <div id="dynsection-0-content" class="dyncontent" style="display:none;"> <div class="center"><img src="classEigen_1_1Rotation2D__inherit__graph.png" border="0" usemap="#Rotation2D_3_01Scalar_01_4_inherit__map" alt="Inheritance graph"/></div> <map name="Rotation2D_3_01Scalar_01_4_inherit__map" id="Rotation2D_3_01Scalar_01_4_inherit__map"> <area shape="rect" id="node2" href="classEigen_1_1RotationBase.html" title="{RotationBase\< Rotation2D\l\< _Scalar \>, 2 \>\n||+ _transformVector()\l+ derived()\l+ derived()\l+ inverse()\l+ matrix()\l+ operator*()\l+ operator*()\l+ operator*()\l+ operator*()\l+ toRotationMatrix()\l}" alt="" coords="5,5,184,229"/></map> </div> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a> Public Types</h2></td></tr> <tr class="memitem:abb59a4f54aebad6325389d49d48de310"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classEigen_1_1Matrix.html">Matrix</a>< <a class="el" href="classEigen_1_1Rotation2D.html#aea29b63b6c32046ae9a471d82c5cf869">Scalar</a>, Dim, Dim > </td><td class="memItemRight" valign="bottom"><a class="el" href="classEigen_1_1RotationBase.html#abb59a4f54aebad6325389d49d48de310">RotationMatrixType</a></td></tr> <tr class="separator:abb59a4f54aebad6325389d49d48de310"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aea29b63b6c32046ae9a471d82c5cf869"><td class="memItemLeft" align="right" valign="top">typedef _Scalar </td><td class="memItemRight" valign="bottom"><a class="el" href="classEigen_1_1Rotation2D.html#aea29b63b6c32046ae9a471d82c5cf869">Scalar</a></td></tr> <tr class="separator:aea29b63b6c32046ae9a471d82c5cf869"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr class="memitem:a0779e44b0f389bec959428f203bc766e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classEigen_1_1Rotation2D.html#aea29b63b6c32046ae9a471d82c5cf869">Scalar</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classEigen_1_1Rotation2D.html#a0779e44b0f389bec959428f203bc766e">angle</a> () const </td></tr> <tr class="separator:a0779e44b0f389bec959428f203bc766e"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a83ab19e0cf6095c27248a0136d521172"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classEigen_1_1Rotation2D.html#aea29b63b6c32046ae9a471d82c5cf869">Scalar</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classEigen_1_1Rotation2D.html#a83ab19e0cf6095c27248a0136d521172">angle</a> ()</td></tr> <tr class="separator:a83ab19e0cf6095c27248a0136d521172"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aff949e81cb0f149761413b5c020b4d5c"><td class="memTemplParams" colspan="2">template<typename NewScalarType > </td></tr> <tr class="memitem:aff949e81cb0f149761413b5c020b4d5c"><td class="memTemplItemLeft" align="right" valign="top">internal::cast_return_type<br class="typebreak"/> < <a class="el" href="classEigen_1_1Rotation2D.html">Rotation2D</a>, <a class="el" href="classEigen_1_1Rotation2D.html">Rotation2D</a><br class="typebreak"/> < NewScalarType > >::type </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classEigen_1_1Rotation2D.html#aff949e81cb0f149761413b5c020b4d5c">cast</a> () const </td></tr> <tr class="separator:aff949e81cb0f149761413b5c020b4d5c"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ad46a27f9af696b194058db333a95f7d9"><td class="memTemplParams" colspan="2">template<typename Derived > </td></tr> <tr class="memitem:ad46a27f9af696b194058db333a95f7d9"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classEigen_1_1Rotation2D.html">Rotation2D</a>< <a class="el" href="classEigen_1_1Rotation2D.html#aea29b63b6c32046ae9a471d82c5cf869">Scalar</a> > & </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classEigen_1_1Rotation2D.html#ad46a27f9af696b194058db333a95f7d9">fromRotationMatrix</a> (const <a class="el" href="classEigen_1_1MatrixBase.html">MatrixBase</a>< Derived > &mat)</td></tr> <tr class="separator:ad46a27f9af696b194058db333a95f7d9"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ab8aa19861bb0513691b920826c75aa43"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classEigen_1_1Rotation2D.html">Rotation2D</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classEigen_1_1Rotation2D.html#ab8aa19861bb0513691b920826c75aa43">inverse</a> () const </td></tr> <tr class="separator:ab8aa19861bb0513691b920826c75aa43"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:acbcfcb4bf11ad867602619fb454d776d"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classEigen_1_1Rotation2D.html#acbcfcb4bf11ad867602619fb454d776d">isApprox</a> (const <a class="el" href="classEigen_1_1Rotation2D.html">Rotation2D</a> &other, const typename <a class="el" href="structEigen_1_1NumTraits.html">NumTraits</a>< <a class="el" href="classEigen_1_1Rotation2D.html#aea29b63b6c32046ae9a471d82c5cf869">Scalar</a> >::Real &prec=<a class="el" href="structEigen_1_1NumTraits.html">NumTraits</a>< <a class="el" href="classEigen_1_1Rotation2D.html#aea29b63b6c32046ae9a471d82c5cf869">Scalar</a> >::dummy_precision()) const </td></tr> <tr class="separator:acbcfcb4bf11ad867602619fb454d776d"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a137458fc1a96a26c9fd58d7b2b61336d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classEigen_1_1RotationBase.html#abb59a4f54aebad6325389d49d48de310">RotationMatrixType</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classEigen_1_1RotationBase.html#a137458fc1a96a26c9fd58d7b2b61336d">matrix</a> () const</td></tr> <tr class="separator:a137458fc1a96a26c9fd58d7b2b61336d"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a39e946f5ec63f80d28cf7988e6ba80b9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classEigen_1_1Transform.html">Transform</a>< <a class="el" href="classEigen_1_1Rotation2D.html#aea29b63b6c32046ae9a471d82c5cf869">Scalar</a>, Dim, <a class="el" href="group__enums.html#gga302a826315506a7217d4b477ea78425fac6ccc3814bb6d2a8bf7f75d7131c6b17">Isometry</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classEigen_1_1RotationBase.html#a39e946f5ec63f80d28cf7988e6ba80b9">operator*</a> (const <a class="el" href="classEigen_1_1Translation.html">Translation</a>< <a class="el" href="classEigen_1_1Rotation2D.html#aea29b63b6c32046ae9a471d82c5cf869">Scalar</a>, Dim > &t) const</td></tr> <tr class="separator:a39e946f5ec63f80d28cf7988e6ba80b9"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a84d2f46dbcd54e3a3b8ebcc673ad3920"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classEigen_1_1RotationBase.html#abb59a4f54aebad6325389d49d48de310">RotationMatrixType</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classEigen_1_1RotationBase.html#a84d2f46dbcd54e3a3b8ebcc673ad3920">operator*</a> (const UniformScaling< <a class="el" href="classEigen_1_1Rotation2D.html#aea29b63b6c32046ae9a471d82c5cf869">Scalar</a> > &s) const</td></tr> <tr class="separator:a84d2f46dbcd54e3a3b8ebcc673ad3920"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:acd4f0475d084e54c0dde2ef3f78822c0"><td class="memItemLeft" align="right" valign="top">internal::rotation_base_generic_product_selector<br class="typebreak"/> < <a class="el" href="classEigen_1_1Rotation2D.html">Rotation2D</a>< _Scalar ><br class="typebreak"/> , OtherDerived, <br class="typebreak"/> OtherDerived::IsVectorAtCompileTime ><br class="typebreak"/> ::ReturnType </td><td class="memItemRight" valign="bottom"><a class="el" href="classEigen_1_1RotationBase.html#acd4f0475d084e54c0dde2ef3f78822c0">operator*</a> (const <a class="el" href="structEigen_1_1EigenBase.html">EigenBase</a>< OtherDerived > &e) const</td></tr> <tr class="separator:acd4f0475d084e54c0dde2ef3f78822c0"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ae0c6c089ae4f8aa3069d1de268522ab9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classEigen_1_1Rotation2D.html">Rotation2D</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classEigen_1_1Rotation2D.html#ae0c6c089ae4f8aa3069d1de268522ab9">operator*</a> (const <a class="el" href="classEigen_1_1Rotation2D.html">Rotation2D</a> &other) const </td></tr> <tr class="separator:ae0c6c089ae4f8aa3069d1de268522ab9"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ad34dc61aab8108f6b660a19d1fdf000a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classEigen_1_1Matrix.html">Vector2</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classEigen_1_1Rotation2D.html#ad34dc61aab8108f6b660a19d1fdf000a">operator*</a> (const <a class="el" href="classEigen_1_1Matrix.html">Vector2</a> &vec) const </td></tr> <tr class="separator:ad34dc61aab8108f6b660a19d1fdf000a"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a4905e372221a7ca6eaf7f11056bc1b7a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classEigen_1_1Transform.html">Transform</a>< <a class="el" href="classEigen_1_1Rotation2D.html#aea29b63b6c32046ae9a471d82c5cf869">Scalar</a>, Dim, Mode > </td><td class="memItemRight" valign="bottom"><a class="el" href="classEigen_1_1RotationBase.html#a4905e372221a7ca6eaf7f11056bc1b7a">operator*</a> (const <a class="el" href="classEigen_1_1Transform.html">Transform</a>< <a class="el" href="classEigen_1_1Rotation2D.html#aea29b63b6c32046ae9a471d82c5cf869">Scalar</a>, Dim, Mode, Options > &t) const</td></tr> <tr class="separator:a4905e372221a7ca6eaf7f11056bc1b7a"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a38e158a4156cbc2978e31a6256ae1d4e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classEigen_1_1Rotation2D.html">Rotation2D</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classEigen_1_1Rotation2D.html#a38e158a4156cbc2978e31a6256ae1d4e">operator*=</a> (const <a class="el" href="classEigen_1_1Rotation2D.html">Rotation2D</a> &other)</td></tr> <tr class="separator:a38e158a4156cbc2978e31a6256ae1d4e"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a4c944f17c4f3d932a892cada1b927625"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classEigen_1_1Rotation2D.html#a4c944f17c4f3d932a892cada1b927625">Rotation2D</a> (const <a class="el" href="classEigen_1_1Rotation2D.html#aea29b63b6c32046ae9a471d82c5cf869">Scalar</a> &a)</td></tr> <tr class="separator:a4c944f17c4f3d932a892cada1b927625"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a4b8dc04e709066f966d91ce8d14d3036"><td class="memTemplParams" colspan="2">template<typename OtherScalarType > </td></tr> <tr class="memitem:a4b8dc04e709066f966d91ce8d14d3036"><td class="memTemplItemLeft" align="right" valign="top"> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classEigen_1_1Rotation2D.html#a4b8dc04e709066f966d91ce8d14d3036">Rotation2D</a> (const <a class="el" href="classEigen_1_1Rotation2D.html">Rotation2D</a>< OtherScalarType > &other)</td></tr> <tr class="separator:a4b8dc04e709066f966d91ce8d14d3036"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a56fb619ede8412eec05b51c22b1465c8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classEigen_1_1Rotation2D.html">Rotation2D</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classEigen_1_1Rotation2D.html#a56fb619ede8412eec05b51c22b1465c8">slerp</a> (const <a class="el" href="classEigen_1_1Rotation2D.html#aea29b63b6c32046ae9a471d82c5cf869">Scalar</a> &t, const <a class="el" href="classEigen_1_1Rotation2D.html">Rotation2D</a> &other) const </td></tr> <tr class="separator:a56fb619ede8412eec05b51c22b1465c8"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:af10119ceb1241b50e13faef3ecf2ea00"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classEigen_1_1Matrix.html">Matrix2</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classEigen_1_1Rotation2D.html#af10119ceb1241b50e13faef3ecf2ea00">toRotationMatrix</a> (void) const </td></tr> <tr class="separator:af10119ceb1241b50e13faef3ecf2ea00"><td class="memSeparator" colspan="2"> </td></tr> </table> <h2 class="groupheader">Member Typedef Documentation</h2> <a class="anchor" id="abb59a4f54aebad6325389d49d48de310"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">typedef <a class="el" href="classEigen_1_1Matrix.html">Matrix</a><<a class="el" href="classEigen_1_1Rotation2D.html#aea29b63b6c32046ae9a471d82c5cf869">Scalar</a>,Dim,Dim> <a class="el" href="classEigen_1_1RotationBase.html#abb59a4f54aebad6325389d49d48de310">RotationMatrixType</a></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inherited</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>corresponding linear transformation matrix type </p> </div> </div> <a class="anchor" id="aea29b63b6c32046ae9a471d82c5cf869"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">typedef _Scalar <a class="el" href="classEigen_1_1Rotation2D.html#aea29b63b6c32046ae9a471d82c5cf869">Scalar</a></td> </tr> </table> </div><div class="memdoc"> <p>the scalar type of the coefficients </p> </div> </div> <h2 class="groupheader">Constructor & Destructor Documentation</h2> <a class="anchor" id="a4c944f17c4f3d932a892cada1b927625"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classEigen_1_1Rotation2D.html">Rotation2D</a> </td> <td>(</td> <td class="paramtype">const <a class="el" href="classEigen_1_1Rotation2D.html#aea29b63b6c32046ae9a471d82c5cf869">Scalar</a> & </td> <td class="paramname"><em>a</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Construct a 2D counter clock wise rotation from the angle <em>a</em> in radian. </p> </div> </div> <a class="anchor" id="a4b8dc04e709066f966d91ce8d14d3036"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classEigen_1_1Rotation2D.html">Rotation2D</a> </td> <td>(</td> <td class="paramtype">const <a class="el" href="classEigen_1_1Rotation2D.html">Rotation2D</a>< OtherScalarType > & </td> <td class="paramname"><em>other</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">explicit</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Copy constructor with scalar type conversion </p> </div> </div> <h2 class="groupheader">Member Function Documentation</h2> <a class="anchor" id="a0779e44b0f389bec959428f203bc766e"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classEigen_1_1Rotation2D.html#aea29b63b6c32046ae9a471d82c5cf869">Scalar</a> angle </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <dl class="section return"><dt>Returns</dt><dd>the rotation angle </dd></dl> </div> </div> <a class="anchor" id="a83ab19e0cf6095c27248a0136d521172"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classEigen_1_1Rotation2D.html#aea29b63b6c32046ae9a471d82c5cf869">Scalar</a>& angle </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <dl class="section return"><dt>Returns</dt><dd>a read-write reference to the rotation angle </dd></dl> </div> </div> <a class="anchor" id="aff949e81cb0f149761413b5c020b4d5c"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">internal::cast_return_type<<a class="el" href="classEigen_1_1Rotation2D.html">Rotation2D</a>,<a class="el" href="classEigen_1_1Rotation2D.html">Rotation2D</a><NewScalarType> >::type cast </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <dl class="section return"><dt>Returns</dt><dd><code>*this</code> with scalar type casted to <em>NewScalarType</em> </dd></dl> <p>Note that if <em>NewScalarType</em> is equal to the current scalar type of <code>*this</code> then this function smartly returns a const reference to <code>*this</code>. </p> </div> </div> <a class="anchor" id="ad46a27f9af696b194058db333a95f7d9"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classEigen_1_1Rotation2D.html">Rotation2D</a><<a class="el" href="classEigen_1_1Rotation2D.html#aea29b63b6c32046ae9a471d82c5cf869">Scalar</a>>& fromRotationMatrix </td> <td>(</td> <td class="paramtype">const <a class="el" href="classEigen_1_1MatrixBase.html">MatrixBase</a>< Derived > & </td> <td class="paramname"><em>mat</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Set <code>*this</code> from a 2x2 rotation matrix <em>mat</em>. In other words, this function extract the rotation angle from the rotation matrix. </p> </div> </div> <a class="anchor" id="ab8aa19861bb0513691b920826c75aa43"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classEigen_1_1Rotation2D.html">Rotation2D</a> inverse </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <dl class="section return"><dt>Returns</dt><dd>the inverse rotation </dd></dl> </div> </div> <a class="anchor" id="acbcfcb4bf11ad867602619fb454d776d"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">bool isApprox </td> <td>(</td> <td class="paramtype">const <a class="el" href="classEigen_1_1Rotation2D.html">Rotation2D</a>< <a class="el" href="classEigen_1_1Rotation2D.html#aea29b63b6c32046ae9a471d82c5cf869">Scalar</a> > & </td> <td class="paramname"><em>other</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const typename <a class="el" href="structEigen_1_1NumTraits.html">NumTraits</a>< <a class="el" href="classEigen_1_1Rotation2D.html#aea29b63b6c32046ae9a471d82c5cf869">Scalar</a> >::Real & </td> <td class="paramname"><em>prec</em> = <code><a class="el" href="structEigen_1_1NumTraits.html">NumTraits</a><<a class="el" href="classEigen_1_1Rotation2D.html#aea29b63b6c32046ae9a471d82c5cf869">Scalar</a>>::dummy_precision()</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <dl class="section return"><dt>Returns</dt><dd><code>true</code> if <code>*this</code> is approximately equal to <em>other</em>, within the precision determined by <em>prec</em>.</dd></dl> <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classEigen_1_1DenseBase.html#a158c2184951e6e415c2e9b98db8e8966">MatrixBase::isApprox()</a> </dd></dl> </div> </div> <a class="anchor" id="a137458fc1a96a26c9fd58d7b2b61336d"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classEigen_1_1RotationBase.html#abb59a4f54aebad6325389d49d48de310">RotationMatrixType</a> matrix </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td> </tr> </table> </div><div class="memdoc"> <dl class="section return"><dt>Returns</dt><dd>an equivalent rotation matrix This function is added to be conform with the Transform class' naming scheme. </dd></dl> </div> </div> <a class="anchor" id="a39e946f5ec63f80d28cf7988e6ba80b9"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classEigen_1_1Transform.html">Transform</a><<a class="el" href="classEigen_1_1Rotation2D.html#aea29b63b6c32046ae9a471d82c5cf869">Scalar</a>,Dim,<a class="el" href="group__enums.html#gga302a826315506a7217d4b477ea78425fac6ccc3814bb6d2a8bf7f75d7131c6b17">Isometry</a>> operator* </td> <td>(</td> <td class="paramtype">const <a class="el" href="classEigen_1_1Translation.html">Translation</a>< <a class="el" href="classEigen_1_1RotationBase.html#a844358c46408e878e60c4026c52eb1e9">Scalar</a>, Dim > & </td> <td class="paramname"><em>t</em></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td> </tr> </table> </div><div class="memdoc"> <dl class="section return"><dt>Returns</dt><dd>the concatenation of the rotation <code>*this</code> with a translation <em>t</em> </dd></dl> </div> </div> <a class="anchor" id="a84d2f46dbcd54e3a3b8ebcc673ad3920"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classEigen_1_1RotationBase.html#abb59a4f54aebad6325389d49d48de310">RotationMatrixType</a> operator* </td> <td>(</td> <td class="paramtype">const UniformScaling< <a class="el" href="classEigen_1_1RotationBase.html#a844358c46408e878e60c4026c52eb1e9">Scalar</a> > & </td> <td class="paramname"><em>s</em></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td> </tr> </table> </div><div class="memdoc"> <dl class="section return"><dt>Returns</dt><dd>the concatenation of the rotation <code>*this</code> with a uniform scaling <em>s</em> </dd></dl> </div> </div> <a class="anchor" id="acd4f0475d084e54c0dde2ef3f78822c0"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">internal::rotation_base_generic_product_selector<<a class="el" href="classEigen_1_1Rotation2D.html">Rotation2D</a>< _Scalar > ,OtherDerived,OtherDerived::IsVectorAtCompileTime>::ReturnType operator* </td> <td>(</td> <td class="paramtype">const <a class="el" href="structEigen_1_1EigenBase.html">EigenBase</a>< OtherDerived > & </td> <td class="paramname"><em>e</em></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td> </tr> </table> </div><div class="memdoc"> <dl class="section return"><dt>Returns</dt><dd>the concatenation of the rotation <code>*this</code> with a generic expression <em>e</em> <em>e</em> can be:<ul> <li>a DimxDim linear transformation matrix</li> <li>a DimxDim diagonal matrix (axis aligned scaling)</li> <li>a vector of size Dim </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="ae0c6c089ae4f8aa3069d1de268522ab9"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classEigen_1_1Rotation2D.html">Rotation2D</a> operator* </td> <td>(</td> <td class="paramtype">const <a class="el" href="classEigen_1_1Rotation2D.html">Rotation2D</a>< <a class="el" href="classEigen_1_1Rotation2D.html#aea29b63b6c32046ae9a471d82c5cf869">Scalar</a> > & </td> <td class="paramname"><em>other</em></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Concatenates two rotations </p> </div> </div> <a class="anchor" id="ad34dc61aab8108f6b660a19d1fdf000a"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classEigen_1_1Matrix.html">Vector2</a> operator* </td> <td>(</td> <td class="paramtype">const <a class="el" href="classEigen_1_1Matrix.html">Vector2</a> & </td> <td class="paramname"><em>vec</em></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Applies the rotation to a 2D vector </p> <p>References <a class="el" href="classEigen_1_1Rotation2D.html#af10119ceb1241b50e13faef3ecf2ea00">Rotation2D< Scalar >::toRotationMatrix()</a>.</p> </div> </div> <a class="anchor" id="a4905e372221a7ca6eaf7f11056bc1b7a"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classEigen_1_1Transform.html">Transform</a><<a class="el" href="classEigen_1_1Rotation2D.html#aea29b63b6c32046ae9a471d82c5cf869">Scalar</a>,Dim,Mode> operator* </td> <td>(</td> <td class="paramtype">const <a class="el" href="classEigen_1_1Transform.html">Transform</a>< <a class="el" href="classEigen_1_1RotationBase.html#a844358c46408e878e60c4026c52eb1e9">Scalar</a>, Dim, Mode, Options > & </td> <td class="paramname"><em>t</em></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td> </tr> </table> </div><div class="memdoc"> <dl class="section return"><dt>Returns</dt><dd>the concatenation of the rotation <code>*this</code> with a transformation <em>t</em> </dd></dl> </div> </div> <a class="anchor" id="a38e158a4156cbc2978e31a6256ae1d4e"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classEigen_1_1Rotation2D.html">Rotation2D</a>& operator*= </td> <td>(</td> <td class="paramtype">const <a class="el" href="classEigen_1_1Rotation2D.html">Rotation2D</a>< <a class="el" href="classEigen_1_1Rotation2D.html#aea29b63b6c32046ae9a471d82c5cf869">Scalar</a> > & </td> <td class="paramname"><em>other</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Concatenates two rotations </p> </div> </div> <a class="anchor" id="a56fb619ede8412eec05b51c22b1465c8"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classEigen_1_1Rotation2D.html">Rotation2D</a> slerp </td> <td>(</td> <td class="paramtype">const <a class="el" href="classEigen_1_1Rotation2D.html#aea29b63b6c32046ae9a471d82c5cf869">Scalar</a> & </td> <td class="paramname"><em>t</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classEigen_1_1Rotation2D.html">Rotation2D</a>< <a class="el" href="classEigen_1_1Rotation2D.html#aea29b63b6c32046ae9a471d82c5cf869">Scalar</a> > & </td> <td class="paramname"><em>other</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <dl class="section return"><dt>Returns</dt><dd>the spherical interpolation between <code>*this</code> and <em>other</em> using parameter <em>t</em>. It is in fact equivalent to a linear interpolation. </dd></dl> </div> </div> <a class="anchor" id="af10119ceb1241b50e13faef3ecf2ea00"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classEigen_1_1Rotation2D.html">Rotation2D</a>< <a class="el" href="classEigen_1_1Rotation2D.html#aea29b63b6c32046ae9a471d82c5cf869">Scalar</a> >::<a class="el" href="classEigen_1_1Matrix.html">Matrix2</a> toRotationMatrix </td> <td>(</td> <td class="paramtype">void </td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>Constructs and </p> <dl class="section return"><dt>Returns</dt><dd>an equivalent 2x2 rotation matrix. </dd></dl> <p>Referenced by <a class="el" href="classEigen_1_1Rotation2D.html#ad34dc61aab8108f6b660a19d1fdf000a">Rotation2D< Scalar >::operator*()</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="ForwardDeclarations_8h_source.html">ForwardDeclarations.h</a></li> <li><a class="el" href="Rotation2D_8h_source.html">Rotation2D.h</a></li> </ul> </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="namespaceEigen.html">Eigen</a></li><li class="navelem"><a class="el" href="classEigen_1_1Rotation2D.html">Rotation2D</a></li> <li class="footer">Generated on Mon Oct 28 2013 11:04:30 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>