classcircle.html

来自「仿真人工智能是指用人工的方法和技术」· HTML 代码 · 共 652 行 · 第 1/2 页

HTML
652
字号
References <a class="el" href="Geometry_8C-source.html#l01086">getCenter</a>(), <a class="el" href="Geometry_8C-source.html#l01070">getRadius</a>(), <a class="el" href="Geometry_8C-source.html#l00542">VecPosition::getX</a>(), <a class="el" href="Geometry_8C-source.html#l00558">VecPosition::getY</a>(), and <a class="el" href="Geometry_8C-source.html#l00572">VecPosition::setVecPosition</a>().<p>Referenced by <a class="el" href="Geometry_8C-source.html#l01174">getIntersectionArea</a>().    </td>  </tr></table><a name="a5" doxytag="Circle::getRadius"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> double Circle::getRadius </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>This method returns the radius of the circle. <dl compact><dt><b>Returns: </b><dd>radius of the circle </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l01070">1070</a> of file <a class="el" href="Geometry_8C-source.html">Geometry.C</a>.<p>References <a class="el" href="Geometry_8h-source.html#l00222">m_dRadius</a>.<p>Referenced by <a class="el" href="Geometry_8C-source.html#l01100">getArea</a>(), <a class="el" href="Geometry_8C-source.html#l01320">Line::getCircleIntersectionPoints</a>(), <a class="el" href="Geometry_8C-source.html#l01093">getCircumference</a>(), <a class="el" href="Geometry_8C-source.html#l01174">getIntersectionArea</a>(), <a class="el" href="Geometry_8C-source.html#l01120">getIntersectionPoints</a>(), and <a class="el" href="Geometry_8C-source.html#l01110">isInside</a>().    </td>  </tr></table><a name="a10" doxytag="Circle::isInside"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> bool Circle::isInside </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="classVecPosition.html">VecPosition</a>&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>pos</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>This method returns a boolean that indicates whether 'pos' is located inside the circle. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>pos</em>&nbsp;</td><td>position of which should be checked whether it is located in the circle </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>bool indicating whether pos lies inside the circle </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l01110">1110</a> of file <a class="el" href="Geometry_8C-source.html">Geometry.C</a>.<p>References <a class="el" href="Geometry_8C-source.html#l00589">VecPosition::getDistanceTo</a>(), <a class="el" href="Geometry_8C-source.html#l01070">getRadius</a>(), and <a class="el" href="Geometry_8h-source.html#l00221">m_posCenter</a>.<p>Referenced by <a class="el" href="WorldModelHighLevel_8C-source.html#l00080">WorldModel::getNrInSetInCircle</a>().    </td>  </tr></table><a name="a6" doxytag="Circle::setCenter"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> bool Circle::setCenter </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="classVecPosition.html">VecPosition</a>&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>pos</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>This method sets the center of the circle. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>pos</em>&nbsp;</td><td>new center of the circle </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>bool indicating whether center was set </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l01078">1078</a> of file <a class="el" href="Geometry_8C-source.html">Geometry.C</a>.<p>References <a class="el" href="Geometry_8h-source.html#l00221">m_posCenter</a>.<p>Referenced by <a class="el" href="Geometry_8C-source.html#l01046">setCircle</a>().    </td>  </tr></table><a name="a3" doxytag="Circle::setCircle"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> bool Circle::setCircle </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="classVecPosition.html">VecPosition</a>&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>pos</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>double&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>dR</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>This method sets the values of the circle. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>pos</em>&nbsp;</td><td>new center of the circle </td></tr><tr><td valign=top><em>dR</em>&nbsp;</td><td>new radius of the circle ( &gt; 0 ) </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>bool indicating whether radius was set </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l01046">1046</a> of file <a class="el" href="Geometry_8C-source.html">Geometry.C</a>.<p>References <a class="el" href="Geometry_8C-source.html#l01078">setCenter</a>(), and <a class="el" href="Geometry_8C-source.html#l01054">setRadius</a>().<p>Referenced by <a class="el" href="Geometry_8C-source.html#l01020">Circle</a>().    </td>  </tr></table><a name="a4" doxytag="Circle::setRadius"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> bool Circle::setRadius </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">double&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>dR</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>This method sets the radius of the circle. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>dR</em>&nbsp;</td><td>new radius of the circle ( &gt; 0 ) </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>bool indicating whether radius was set </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l01054">1054</a> of file <a class="el" href="Geometry_8C-source.html">Geometry.C</a>.<p>References <a class="el" href="Geometry_8h-source.html#l00222">m_dRadius</a>.<p>Referenced by <a class="el" href="Geometry_8C-source.html#l01046">setCircle</a>().    </td>  </tr></table><a name="a2" doxytag="Circle::show"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> void Circle::show </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">ostream &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>os</em> = cout          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>This method prints the circle information to the specified output stream in the following format: "c: (c_x,c_y), r: rad" where (c_x,c_y) denotes the center of the circle and rad the radius. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>os</em>&nbsp;</td><td>output stream to which output is written. </td></tr></table></dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l01036">1036</a> of file <a class="el" href="Geometry_8C-source.html">Geometry.C</a>.<p>References <a class="el" href="Geometry_8h-source.html#l00222">m_dRadius</a>, and <a class="el" href="Geometry_8h-source.html#l00221">m_posCenter</a>.    </td>  </tr></table><hr><h2>Member Data Documentation</h2><a name="o1" doxytag="Circle::m_dRadius"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> double Circle::m_dRadius<code> [private]</code>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Radius of the circle <p>Definition at line <a class="el" href="Geometry_8h-source.html#l00222">222</a> of file <a class="el" href="Geometry_8h-source.html">Geometry.h</a>.<p>Referenced by <a class="el" href="Geometry_8C-source.html#l01070">getRadius</a>(), <a class="el" href="Geometry_8C-source.html#l01054">setRadius</a>(), and <a class="el" href="Geometry_8C-source.html#l01036">show</a>().    </td>  </tr></table><a name="o0" doxytag="Circle::m_posCenter"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> <a class="el" href="classVecPosition.html">VecPosition</a> Circle::m_posCenter<code> [private]</code>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Center of the circle <p>Definition at line <a class="el" href="Geometry_8h-source.html#l00221">221</a> of file <a class="el" href="Geometry_8h-source.html">Geometry.h</a>.<p>Referenced by <a class="el" href="Geometry_8C-source.html#l01086">getCenter</a>(), <a class="el" href="Geometry_8C-source.html#l01110">isInside</a>(), <a class="el" href="Geometry_8C-source.html#l01078">setCenter</a>(), and <a class="el" href="Geometry_8C-source.html#l01036">show</a>().    </td>  </tr></table><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="Geometry_8h-source.html">Geometry.h</a><li><a class="el" href="Geometry_8C-source.html">Geometry.C</a></ul><hr><address><small>Generated on Thu Mar 7 00:37:53 2002 for UvA Trilearn 2001 by<a href="http://www.doxygen.org/index.html"><img src="doxygen.gif" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.12 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>, &copy;&nbsp;1997-2001</small></address></body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?