<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>The MRPT project: mrpt::math::TPoint2D Struct Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <div align="left"><a href="http://www.mrpt.org/">Main MRPT website</a> > <b>C++ reference</b> </div> <div align="right"> <a href="index.html"><img border="0" src="mrpt_logo.png" alt="MRPT logo"></a> </div> <!-- Generated by Doxygen 1.7.2 --> <script type="text/javascript"><!-- var searchBox = new SearchBox("searchBox", "search",false,'Search'); --></script> <div class="navigation" id="top"> <div class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li id="searchli"> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <form id="FSearchBox" action="search.php" method="get"> <img id="MSearchSelect" src="search/mag.png" alt=""/> <input type="text" id="MSearchField" name="query" value="Search" size="20" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)"/> </form> </span><span class="right"></span> </div> </li> </ul> </div> <div class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="navpath"> <ul> <li><a class="el" href="namespacemrpt.html">mrpt</a> </li> <li><a class="el" href="namespacemrpt_1_1math.html">math</a> </li> <li><a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html">TPoint2D</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#pub-static-methods">Static Public Member Functions</a> | <a href="#pub-attribs">Public Attributes</a> </div> <div class="headertitle"> <h1>mrpt::math::TPoint2D Struct Reference</h1> </div> </div> <div class="contents"> <!-- doxytag: class="mrpt::math::TPoint2D" --><hr/><a name="_details"></a><h2>Detailed Description</h2> <p>Lightweight 2D point. </p> <p>Allows coordinate access using [] operator. </p> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classmrpt_1_1poses_1_1_c_point2_d.html" title="A class used to store a 2D point.">mrpt::poses::CPoint2D</a> </dd></dl> <p>Definition at line <a class="el" href="lightweight__geom__data_8h_source.html#l00067">67</a> of file <a class="el" href="lightweight__geom__data_8h_source.html">lightweight_geom_data.h</a>.</p> <p><code>#include <<a class="el" href="lightweight__geom__data_8h_source.html">mrpt/math/lightweight_geom_data.h</a>></code></p> <p><a href="structmrpt_1_1math_1_1_t_point2_d-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html#ab9d79fd215f21688f811ce6d3c30a080">TPoint2D</a> (const <a class="el" href="structmrpt_1_1math_1_1_t_pose2_d.html">TPose2D</a> &p)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor from <a class="el" href="structmrpt_1_1math_1_1_t_pose2_d.html" title="Lightweight 2D pose.">TPose2D</a>, discarding phi. <a href="#ab9d79fd215f21688f811ce6d3c30a080"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html#a86a54d04ee967fdd677420783a8ae5c7">TPoint2D</a> (const <a class="el" href="structmrpt_1_1math_1_1_t_point3_d.html">TPoint3D</a> &p)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor from <a class="el" href="structmrpt_1_1math_1_1_t_point3_d.html" title="Lightweight 3D point.">TPoint3D</a>, discarding z. <a href="#a86a54d04ee967fdd677420783a8ae5c7"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html#a615411d726dc6711558373e04d242306">TPoint2D</a> (const <a class="el" href="structmrpt_1_1math_1_1_t_pose3_d.html">TPose3D</a> &p)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor from <a class="el" href="structmrpt_1_1math_1_1_t_pose3_d.html" title="Lightweight 3D pose (three spatial coordinates, plus three angular coordinates).">TPose3D</a>, discarding z and the angular coordinates. <a href="#a615411d726dc6711558373e04d242306"></a><br/></td></tr> <tr><td class="memTemplParams" colspan="2">template<class DERIVEDCLASS > </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top"> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html#afe644b7a2727fedf61cba3ed85196477">TPoint2D</a> (const <a class="el" href="classmrpt_1_1poses_1_1_c_pose_or_point.html">mrpt::poses::CPoseOrPoint</a>< DERIVEDCLASS > &p)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor from CPoseOrPoint, perhaps losing 3D information. <a href="#afe644b7a2727fedf61cba3ed85196477"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html#a4d2e542a00923a390fa232acb6a0acd8">TPoint2D</a> (const <a class="el" href="structmrpt_1_1utils_1_1_t_pixel_coordf.html">mrpt::utils::TPixelCoordf</a> &p)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Implicit transformation constructor from TPixelCoordf. <a href="#a4d2e542a00923a390fa232acb6a0acd8"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html#ac2578ecdb1a7045e363c66fadb186d5c">TPoint2D</a> (const <a class="el" href="classmrpt_1_1poses_1_1_c_point2_d.html">mrpt::poses::CPoint2D</a> &p)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Implicit constructor from CPoint2D. <a href="#ac2578ecdb1a7045e363c66fadb186d5c"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html#a643c84e24b6d8017814e69eb7fcb5d7d">TPoint2D</a> (double xx, double yy)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor from coordinates. <a href="#a643c84e24b6d8017814e69eb7fcb5d7d"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html#aff6118cf6c6c5bf73572ed982bbebcb8">TPoint2D</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Default fast constructor. <a href="#aff6118cf6c6c5bf73572ed982bbebcb8"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">double & </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html#ae03ee477f29491e1d3dc5adbf4a2f9e0">operator[]</a> (size_t i)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Unsafe coordinate access using operator[]. <a href="#ae03ee477f29491e1d3dc5adbf4a2f9e0"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">const double & </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html#a1772f5c95c86736dc92a9c1987d352f4">operator[]</a> (size_t i) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Unsafe coordinate access using operator[]. <a href="#a1772f5c95c86736dc92a9c1987d352f4"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html#aca273276a6b5238ecc0807dc090dab33">getAsVector</a> (<a class="el" href="structmrpt_1_1dynamicsize__vector.html">vector_double</a> &v) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Transformation into vector. <a href="#aca273276a6b5238ecc0807dc090dab33"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html#a4dea5b1846be48eb75ba3dff229f3ab7">operator<</a> (const <a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html">TPoint2D</a> &p) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html">TPoint2D</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html#af2502ef39b3babc39fed9b188da29c5f">operator+=</a> (const <a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html">TPoint2D</a> &p)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html">TPoint2D</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html#a31c145beff6becf7b5f17af60138c7e5">operator-=</a> (const <a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html">TPoint2D</a> &p)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html">TPoint2D</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html#a29064b0786d89ac0e78ff472564af100">operator*=</a> (double d)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html">TPoint2D</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html#a5075e6eba41d259f1826892501cee7ac">operator/=</a> (double d)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html">TPoint2D</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html#a1a39a1f7bcbd14ccf8cb5c48ee13de2a">operator+</a> (const <a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html">TPoint2D</a> &p) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html">TPoint2D</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html#a8a5470aee867e30fbb80c3f0a6f4c0c8">operator-</a> (const <a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html">TPoint2D</a> &p) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html">TPoint2D</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html#abeaa77cd9651e00c07ada002e5a0806b">operator*</a> (double d) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html">TPoint2D</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html#a40709135521a62f6c6806f28166f1149">operator/</a> (double d) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html#a1d0440b33bea68b4c2fd42eaee72e7c9">asString</a> (std::string &s) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a human-readable textual representation of the object (eg: "[0.02 1.04]" ) <a href="#a1d0440b33bea68b4c2fd42eaee72e7c9"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html#a102f3c104b0a154c7eab7f49f86d58b2">asString</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html#a88cd94678d886af58dc2620292a662ee">fromString</a> (const std::string &s)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Set the current object value from a string generated by 'asString' (eg: "[0.02 1.04]" ) <a href="#a88cd94678d886af58dc2620292a662ee"></a><br/></td></tr> <tr><td colspan="2"><h2><a name="pub-static-methods"></a> Static Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html#a831c64888bbaa386899385159bfebfac">size</a> ()</td></tr> <tr><td colspan="2"><h2><a name="pub-attribs"></a> Public Attributes</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html#a084825c8b4d02df7b89d66f8b08e26f2">x</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">X coordinate. <a href="#a084825c8b4d02df7b89d66f8b08e26f2"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html#a1b6b3c44215ec8285ae97ff1ad1f6fcf">y</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Y coordinate. <a href="#a1b6b3c44215ec8285ae97ff1ad1f6fcf"></a><br/></td></tr> </table> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="ab9d79fd215f21688f811ce6d3c30a080"></a><!-- doxytag: member="mrpt::math::TPoint2D::TPoint2D" ref="ab9d79fd215f21688f811ce6d3c30a080" args="(const TPose2D &p)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">mrpt::math::TPoint2D::TPoint2D </td> <td>(</td> <td class="paramtype">const <a class="el" href="structmrpt_1_1math_1_1_t_pose2_d.html">TPose2D</a> & </td> <td class="paramname"> <em>p</em> )</td> <td><code> [explicit]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Constructor from <a class="el" href="structmrpt_1_1math_1_1_t_pose2_d.html" title="Lightweight 2D pose.">TPose2D</a>, discarding phi. </p> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="structmrpt_1_1math_1_1_t_pose2_d.html" title="Lightweight 2D pose.">TPose2D</a> </dd></dl> </div> </div> <a class="anchor" id="a86a54d04ee967fdd677420783a8ae5c7"></a><!-- doxytag: member="mrpt::math::TPoint2D::TPoint2D" ref="a86a54d04ee967fdd677420783a8ae5c7" args="(const TPoint3D &p)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">mrpt::math::TPoint2D::TPoint2D </td> <td>(</td> <td class="paramtype">const <a class="el" href="structmrpt_1_1math_1_1_t_point3_d.html">TPoint3D</a> & </td> <td class="paramname"> <em>p</em> )</td> <td><code> [explicit]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Constructor from <a class="el" href="structmrpt_1_1math_1_1_t_point3_d.html" title="Lightweight 3D point.">TPoint3D</a>, discarding z. </p> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="structmrpt_1_1math_1_1_t_point3_d.html" title="Lightweight 3D point.">TPoint3D</a> </dd></dl> </div> </div> <a class="anchor" id="a615411d726dc6711558373e04d242306"></a><!-- doxytag: member="mrpt::math::TPoint2D::TPoint2D" ref="a615411d726dc6711558373e04d242306" args="(const TPose3D &p)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">mrpt::math::TPoint2D::TPoint2D </td> <td>(</td> <td class="paramtype">const <a class="el" href="structmrpt_1_1math_1_1_t_pose3_d.html">TPose3D</a> & </td> <td class="paramname"> <em>p</em> )</td> <td><code> [explicit]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Constructor from <a class="el" href="structmrpt_1_1math_1_1_t_pose3_d.html" title="Lightweight 3D pose (three spatial coordinates, plus three angular coordinates).">TPose3D</a>, discarding z and the angular coordinates. </p> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="structmrpt_1_1math_1_1_t_pose3_d.html" title="Lightweight 3D pose (three spatial coordinates, plus three angular coordinates).">TPose3D</a> </dd></dl> </div> </div> <a class="anchor" id="afe644b7a2727fedf61cba3ed85196477"></a><!-- doxytag: member="mrpt::math::TPoint2D::TPoint2D" ref="afe644b7a2727fedf61cba3ed85196477" args="(const mrpt::poses::CPoseOrPoint< DERIVEDCLASS > &p)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class DERIVEDCLASS > </div> <table class="memname"> <tr> <td class="memname">mrpt::math::TPoint2D::TPoint2D </td> <td>(</td> <td class="paramtype">const <a class="el" href="classmrpt_1_1poses_1_1_c_pose_or_point.html">mrpt::poses::CPoseOrPoint</a>< DERIVEDCLASS > & </td> <td class="paramname"> <em>p</em> )</td> <td><code> [inline, explicit]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Constructor from CPoseOrPoint, perhaps losing 3D information. </p> <dl class="see"><dt><b>See also:</b></dt><dd>CPoseOrPoint,CPoint3D,CPose2D,CPose3D </dd></dl> <p>Definition at line <a class="el" href="lightweight__geom__data_8h_source.html#l00096">96</a> of file <a class="el" href="lightweight__geom__data_8h_source.html">lightweight_geom_data.h</a>.</p> </div> </div> <a class="anchor" id="a4d2e542a00923a390fa232acb6a0acd8"></a><!-- doxytag: member="mrpt::math::TPoint2D::TPoint2D" ref="a4d2e542a00923a390fa232acb6a0acd8" args="(const mrpt::utils::TPixelCoordf &p)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">mrpt::math::TPoint2D::TPoint2D </td> <td>(</td> <td class="paramtype">const <a class="el" href="structmrpt_1_1utils_1_1_t_pixel_coordf.html">mrpt::utils::TPixelCoordf</a> & </td> <td class="paramname"> <em>p</em> )</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Implicit transformation constructor from TPixelCoordf. </p> <p>Definition at line <a class="el" href="lightweight__geom__data_8h_source.html#l00099">99</a> of file <a class="el" href="lightweight__geom__data_8h_source.html">lightweight_geom_data.h</a>.</p> </div> </div> <a class="anchor" id="ac2578ecdb1a7045e363c66fadb186d5c"></a><!-- doxytag: member="mrpt::math::TPoint2D::TPoint2D" ref="ac2578ecdb1a7045e363c66fadb186d5c" args="(const mrpt::poses::CPoint2D &p)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">mrpt::math::TPoint2D::TPoint2D </td> <td>(</td> <td class="paramtype">const <a class="el" href="classmrpt_1_1poses_1_1_c_point2_d.html">mrpt::poses::CPoint2D</a> & </td> <td class="paramname"> <em>p</em> )</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Implicit constructor from CPoint2D. </p> </div> </div> <a class="anchor" id="a643c84e24b6d8017814e69eb7fcb5d7d"></a><!-- doxytag: member="mrpt::math::TPoint2D::TPoint2D" ref="a643c84e24b6d8017814e69eb7fcb5d7d" args="(double xx, double yy)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">mrpt::math::TPoint2D::TPoint2D </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"> <em>xx</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"> <em>yy</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Constructor from coordinates. </p> <p>Definition at line <a class="el" href="lightweight__geom__data_8h_source.html#l00106">106</a> of file <a class="el" href="lightweight__geom__data_8h_source.html">lightweight_geom_data.h</a>.</p> </div> </div> <a class="anchor" id="aff6118cf6c6c5bf73572ed982bbebcb8"></a><!-- doxytag: member="mrpt::math::TPoint2D::TPoint2D" ref="aff6118cf6c6c5bf73572ed982bbebcb8" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">mrpt::math::TPoint2D::TPoint2D </td> <td>(</td> <td class="paramname"> )</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Default fast constructor. </p> <p>Initializes to garbage. </p> <p>Definition at line <a class="el" href="lightweight__geom__data_8h_source.html#l00110">110</a> of file <a class="el" href="lightweight__geom__data_8h_source.html">lightweight_geom_data.h</a>.</p> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a1d0440b33bea68b4c2fd42eaee72e7c9"></a><!-- doxytag: member="mrpt::math::TPoint2D::asString" ref="a1d0440b33bea68b4c2fd42eaee72e7c9" args="(std::string &s) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void mrpt::math::TPoint2D::asString </td> <td>(</td> <td class="paramtype">std::string & </td> <td class="paramname"> <em>s</em> )</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Returns a human-readable textual representation of the object (eg: "[0.02 1.04]" ) </p> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html#a88cd94678d886af58dc2620292a662ee" title="Set the current object value from a string generated by 'asString' (eg: "[0.02 1.04]" )">fromString</a> </dd></dl> <p>Definition at line <a class="el" href="lightweight__geom__data_8h_source.html#l00179">179</a> of file <a class="el" href="lightweight__geom__data_8h_source.html">lightweight_geom_data.h</a>.</p> <p>References <a class="el" href="namespacemrpt.html#a3a27af794b658df5491e2b7678f8ccb8">mrpt::format()</a>, and <a class="el" href="_core_2_math_functions_8h_source.html#l00709">internal::y</a>.</p> </div> </div> <a class="anchor" id="a102f3c104b0a154c7eab7f49f86d58b2"></a><!-- doxytag: member="mrpt::math::TPoint2D::asString" ref="a102f3c104b0a154c7eab7f49f86d58b2" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">std::string mrpt::math::TPoint2D::asString </td> <td>(</td> <td class="paramname"> )</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="lightweight__geom__data_8h_source.html#l00180">180</a> of file <a class="el" href="lightweight__geom__data_8h_source.html">lightweight_geom_data.h</a>.</p> <p>References <a class="el" href="lightweight__geom__data_8h_source.html#l00180">asString()</a>.</p> <p>Referenced by <a class="el" href="lightweight__geom__data_8h_source.html#l00180">asString()</a>.</p> </div> </div> <a class="anchor" id="a88cd94678d886af58dc2620292a662ee"></a><!-- doxytag: member="mrpt::math::TPoint2D::fromString" ref="a88cd94678d886af58dc2620292a662ee" args="(const std::string &s)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void mrpt::math::TPoint2D::fromString </td> <td>(</td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>s</em> )</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Set the current object value from a string generated by 'asString' (eg: "[0.02 1.04]" ) </p> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html#a1d0440b33bea68b4c2fd42eaee72e7c9" title="Returns a human-readable textual representation of the object (eg: "[0.02 1.04]" )...">asString</a> </dd></dl> <dl><dt><b>Exceptions:</b></dt><dd> <table class="exception"> <tr><td class="paramname">std::exception</td><td>On invalid format </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="aca273276a6b5238ecc0807dc090dab33"></a><!-- doxytag: member="mrpt::math::TPoint2D::getAsVector" ref="aca273276a6b5238ecc0807dc090dab33" args="(vector_double &v) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void mrpt::math::TPoint2D::getAsVector </td> <td>(</td> <td class="paramtype"><a class="el" href="structmrpt_1_1dynamicsize__vector.html">vector_double</a> & </td> <td class="paramname"> <em>v</em> )</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Transformation into vector. </p> <p>Definition at line <a class="el" href="lightweight__geom__data_8h_source.html#l00126">126</a> of file <a class="el" href="lightweight__geom__data_8h_source.html">lightweight_geom_data.h</a>.</p> <p>References <a class="el" href="base_2include_2mrpt_2utils_2types_8h_source.html#l00132">mrpt::dynamicsize_vector< T >::resize()</a>, and <a class="el" href="_core_2_math_functions_8h_source.html#l00709">internal::y</a>.</p> </div> </div> <a class="anchor" id="abeaa77cd9651e00c07ada002e5a0806b"></a><!-- doxytag: member="mrpt::math::TPoint2D::operator*" ref="abeaa77cd9651e00c07ada002e5a0806b" args="(double d) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html">TPoint2D</a> mrpt::math::TPoint2D::operator* </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"> <em>d</em> )</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="lightweight__geom__data_8h_source.html#l00167">167</a> of file <a class="el" href="lightweight__geom__data_8h_source.html">lightweight_geom_data.h</a>.</p> </div> </div> <a class="anchor" id="a29064b0786d89ac0e78ff472564af100"></a><!-- doxytag: member="mrpt::math::TPoint2D::operator*=" ref="a29064b0786d89ac0e78ff472564af100" args="(double d)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html">TPoint2D</a>& mrpt::math::TPoint2D::operator*= </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"> <em>d</em> )</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="lightweight__geom__data_8h_source.html#l00145">145</a> of file <a class="el" href="lightweight__geom__data_8h_source.html">lightweight_geom_data.h</a>.</p> <p>References <a class="el" href="_core_2_math_functions_8h_source.html#l00709">internal::y</a>.</p> </div> </div> <a class="anchor" id="a1a39a1f7bcbd14ccf8cb5c48ee13de2a"></a><!-- doxytag: member="mrpt::math::TPoint2D::operator+" ref="a1a39a1f7bcbd14ccf8cb5c48ee13de2a" args="(const TPoint2D &p) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html">TPoint2D</a> mrpt::math::TPoint2D::operator+ </td> <td>(</td> <td class="paramtype">const <a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html">TPoint2D</a> & </td> <td class="paramname"> <em>p</em> )</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="lightweight__geom__data_8h_source.html#l00157">157</a> of file <a class="el" href="lightweight__geom__data_8h_source.html">lightweight_geom_data.h</a>.</p> </div> </div> <a class="anchor" id="af2502ef39b3babc39fed9b188da29c5f"></a><!-- doxytag: member="mrpt::math::TPoint2D::operator+=" ref="af2502ef39b3babc39fed9b188da29c5f" args="(const TPoint2D &p)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html">TPoint2D</a>& mrpt::math::TPoint2D::operator+= </td> <td>(</td> <td class="paramtype">const <a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html">TPoint2D</a> & </td> <td class="paramname"> <em>p</em> )</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="lightweight__geom__data_8h_source.html#l00133">133</a> of file <a class="el" href="lightweight__geom__data_8h_source.html">lightweight_geom_data.h</a>.</p> <p>References <a class="el" href="lightweight__geom__data_8h_source.html#l00071">x</a>, <a class="el" href="lightweight__geom__data_8h_source.html#l00075">y</a>, and <a class="el" href="_core_2_math_functions_8h_source.html#l00709">internal::y</a>.</p> </div> </div> <a class="anchor" id="a8a5470aee867e30fbb80c3f0a6f4c0c8"></a><!-- doxytag: member="mrpt::math::TPoint2D::operator-" ref="a8a5470aee867e30fbb80c3f0a6f4c0c8" args="(const TPoint2D &p) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html">TPoint2D</a> mrpt::math::TPoint2D::operator- </td> <td>(</td> <td class="paramtype">const <a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html">TPoint2D</a> & </td> <td class="paramname"> <em>p</em> )</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="lightweight__geom__data_8h_source.html#l00162">162</a> of file <a class="el" href="lightweight__geom__data_8h_source.html">lightweight_geom_data.h</a>.</p> </div> </div> <a class="anchor" id="a31c145beff6becf7b5f17af60138c7e5"></a><!-- doxytag: member="mrpt::math::TPoint2D::operator-=" ref="a31c145beff6becf7b5f17af60138c7e5" args="(const TPoint2D &p)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html">TPoint2D</a>& mrpt::math::TPoint2D::operator-= </td> <td>(</td> <td class="paramtype">const <a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html">TPoint2D</a> & </td> <td class="paramname"> <em>p</em> )</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="lightweight__geom__data_8h_source.html#l00139">139</a> of file <a class="el" href="lightweight__geom__data_8h_source.html">lightweight_geom_data.h</a>.</p> <p>References <a class="el" href="lightweight__geom__data_8h_source.html#l00071">x</a>, <a class="el" href="lightweight__geom__data_8h_source.html#l00075">y</a>, and <a class="el" href="_core_2_math_functions_8h_source.html#l00709">internal::y</a>.</p> </div> </div> <a class="anchor" id="a40709135521a62f6c6806f28166f1149"></a><!-- doxytag: member="mrpt::math::TPoint2D::operator/" ref="a40709135521a62f6c6806f28166f1149" args="(double d) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html">TPoint2D</a> mrpt::math::TPoint2D::operator/ </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"> <em>d</em> )</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="lightweight__geom__data_8h_source.html#l00172">172</a> of file <a class="el" href="lightweight__geom__data_8h_source.html">lightweight_geom_data.h</a>.</p> </div> </div> <a class="anchor" id="a5075e6eba41d259f1826892501cee7ac"></a><!-- doxytag: member="mrpt::math::TPoint2D::operator/=" ref="a5075e6eba41d259f1826892501cee7ac" args="(double d)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html">TPoint2D</a>& mrpt::math::TPoint2D::operator/= </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"> <em>d</em> )</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="lightweight__geom__data_8h_source.html#l00151">151</a> of file <a class="el" href="lightweight__geom__data_8h_source.html">lightweight_geom_data.h</a>.</p> <p>References <a class="el" href="_core_2_math_functions_8h_source.html#l00709">internal::y</a>.</p> </div> </div> <a class="anchor" id="a4dea5b1846be48eb75ba3dff229f3ab7"></a><!-- doxytag: member="mrpt::math::TPoint2D::operator<" ref="a4dea5b1846be48eb75ba3dff229f3ab7" args="(const TPoint2D &p) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool mrpt::math::TPoint2D::operator< </td> <td>(</td> <td class="paramtype">const <a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html">TPoint2D</a> & </td> <td class="paramname"> <em>p</em> )</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a1772f5c95c86736dc92a9c1987d352f4"></a><!-- doxytag: member="mrpt::math::TPoint2D::operator[]" ref="a1772f5c95c86736dc92a9c1987d352f4" args="(size_t i) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const double& mrpt::math::TPoint2D::operator[] </td> <td>(</td> <td class="paramtype">size_t </td> <td class="paramname"> <em>i</em> )</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Unsafe coordinate access using operator[]. </p> <p>Intended for loops. </p> <p>Definition at line <a class="el" href="lightweight__geom__data_8h_source.html#l00120">120</a> of file <a class="el" href="lightweight__geom__data_8h_source.html">lightweight_geom_data.h</a>.</p> </div> </div> <a class="anchor" id="ae03ee477f29491e1d3dc5adbf4a2f9e0"></a><!-- doxytag: member="mrpt::math::TPoint2D::operator[]" ref="ae03ee477f29491e1d3dc5adbf4a2f9e0" args="(size_t i)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double& mrpt::math::TPoint2D::operator[] </td> <td>(</td> <td class="paramtype">size_t </td> <td class="paramname"> <em>i</em> )</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Unsafe coordinate access using operator[]. </p> <p>Intended for loops. </p> <p>Definition at line <a class="el" href="lightweight__geom__data_8h_source.html#l00114">114</a> of file <a class="el" href="lightweight__geom__data_8h_source.html">lightweight_geom_data.h</a>.</p> </div> </div> <a class="anchor" id="a831c64888bbaa386899385159bfebfac"></a><!-- doxytag: member="mrpt::math::TPoint2D::size" ref="a831c64888bbaa386899385159bfebfac" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static size_t mrpt::math::TPoint2D::size </td> <td>(</td> <td class="paramname"> )</td> <td><code> [inline, static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="lightweight__geom__data_8h_source.html#l00187">187</a> of file <a class="el" href="lightweight__geom__data_8h_source.html">lightweight_geom_data.h</a>.</p> </div> </div> <hr/><h2>Member Data Documentation</h2> <a class="anchor" id="a084825c8b4d02df7b89d66f8b08e26f2"></a><!-- doxytag: member="mrpt::math::TPoint2D::x" ref="a084825c8b4d02df7b89d66f8b08e26f2" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double <a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html#a084825c8b4d02df7b89d66f8b08e26f2">mrpt::math::TPoint2D::x</a></td> </tr> </table> </div> <div class="memdoc"> <p>X coordinate. </p> <p>Definition at line <a class="el" href="lightweight__geom__data_8h_source.html#l00071">71</a> of file <a class="el" href="lightweight__geom__data_8h_source.html">lightweight_geom_data.h</a>.</p> <p>Referenced by <a class="el" href="_c_point2_d_8h_source.html#l00074">mrpt::poses::CPoint2D::CPoint2D()</a>, <a class="el" href="lightweight__geom__data_8h_source.html#l00688">mrpt::math::TSegment2D::getCenter()</a>, <a class="el" href="_k_d_tree_capable_8h_source.html#l00088">mrpt::math::KDTreeCapable::kdTreeClosestPoint2D()</a>, <a class="el" href="_k_d_tree_capable_8h_source.html#l00102">mrpt::math::KDTreeCapable::kdTreeClosestPoint2DsqrError()</a>, <a class="el" href="_k_d_tree_capable_8h_source.html#l00167">mrpt::math::KDTreeCapable::kdTreeNClosestPoint2D()</a>, <a class="el" href="_k_d_tree_capable_8h_source.html#l00199">mrpt::math::KDTreeCapable::kdTreeNClosestPoint2DIdx()</a>, <a class="el" href="_k_d_tree_capable_8h_source.html#l00133">mrpt::math::KDTreeCapable::kdTreeTwoClosestPoint2D()</a>, <a class="el" href="lightweight__geom__data_8h_source.html#l00592">mrpt::math::operator!=()</a>, <a class="el" href="lightweight__geom__data_8h_source.html#l00133">operator+=()</a>, <a class="el" href="lightweight__geom__data_8h_source.html#l00139">operator-=()</a>, and <a class="el" href="lightweight__geom__data_8h_source.html#l00586">mrpt::math::operator==()</a>.</p> </div> </div> <a class="anchor" id="a1b6b3c44215ec8285ae97ff1ad1f6fcf"></a><!-- doxytag: member="mrpt::math::TPoint2D::y" ref="a1b6b3c44215ec8285ae97ff1ad1f6fcf" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double <a class="el" href="structmrpt_1_1math_1_1_t_point2_d.html#a1b6b3c44215ec8285ae97ff1ad1f6fcf">mrpt::math::TPoint2D::y</a></td> </tr> </table> </div> <div class="memdoc"> <p>Y coordinate. </p> <p>Definition at line <a class="el" href="lightweight__geom__data_8h_source.html#l00075">75</a> of file <a class="el" href="lightweight__geom__data_8h_source.html">lightweight_geom_data.h</a>.</p> <p>Referenced by <a class="el" href="_c_point2_d_8h_source.html#l00074">mrpt::poses::CPoint2D::CPoint2D()</a>, <a class="el" href="lightweight__geom__data_8h_source.html#l00688">mrpt::math::TSegment2D::getCenter()</a>, <a class="el" href="_k_d_tree_capable_8h_source.html#l00088">mrpt::math::KDTreeCapable::kdTreeClosestPoint2D()</a>, <a class="el" href="_k_d_tree_capable_8h_source.html#l00102">mrpt::math::KDTreeCapable::kdTreeClosestPoint2DsqrError()</a>, <a class="el" href="_k_d_tree_capable_8h_source.html#l00167">mrpt::math::KDTreeCapable::kdTreeNClosestPoint2D()</a>, <a class="el" href="_k_d_tree_capable_8h_source.html#l00199">mrpt::math::KDTreeCapable::kdTreeNClosestPoint2DIdx()</a>, <a class="el" href="_k_d_tree_capable_8h_source.html#l00133">mrpt::math::KDTreeCapable::kdTreeTwoClosestPoint2D()</a>, <a class="el" href="lightweight__geom__data_8h_source.html#l00592">mrpt::math::operator!=()</a>, <a class="el" href="lightweight__geom__data_8h_source.html#l00133">operator+=()</a>, <a class="el" href="lightweight__geom__data_8h_source.html#l00139">operator-=()</a>, and <a class="el" href="lightweight__geom__data_8h_source.html#l00586">mrpt::math::operator==()</a>.</p> </div> </div> </div> <br><hr><br> <table border="0" width="100%"> <tr> <td> Page generated by <a href="http://www.doxygen.org" target="_blank">Doxygen 1.7.2</a> for MRPT 0.9.4 SVN: at Mon Jan 10 22:30:30 UTC 2011</td><td></td> <td width="100"> </td> <td width="150"> </td></tr> </table> </body></html>