geometry_8h.html

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

HTML
850
字号
          <td class="mdname" nowrap>&nbsp; <em>d2</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 function returns the minimum of two given doubles. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>d1</em>&nbsp;</td><td>first parameter </td></tr><tr><td valign=top><em>d2</em>&nbsp;</td><td>second parameter </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>the minimum of these two parameters </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l00075">75</a> of file <a class="el" href="Geometry_8C-source.html">Geometry.C</a>.<p>References <a class="el" href="Geometry_8h-source.html#l00052">AngDeg</a>.<p>Referenced by <a class="el" href="Geometry_8C-source.html#l01174">Circle::getIntersectionArea</a>(), <a class="el" href="WorldModelUpdate_8C-source.html#l01652">WorldModel::getMinMaxDistChange</a>(), <a class="el" href="BasicPlayer_8C-source.html#l01687">BasicPlayer::getShootPositionOnLine</a>(), <a class="el" href="Player_8C-source.html#l00434">Player::getStrategicPosition</a>(), <a class="el" href="BasicPlayer_8C-source.html#l01271">BasicPlayer::outplayOpponent</a>(), and <a class="el" href="Geometry_8C-source.html#l01522">Rectangle::setRectanglePoints</a>().    </td>  </tr></table><a name="a8" doxytag="Geometry.h::Rad2Deg"></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="Geometry_8h.html#a2">AngDeg</a> Rad2Deg </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="Geometry_8h.html#a1">AngRad</a>&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>x</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 function converts an angle in radians to the corresponding angle in degrees. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>x</em>&nbsp;</td><td>an angle in radians </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>the corresponding angle in degrees </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l00085">85</a> of file <a class="el" href="Geometry_8C-source.html">Geometry.C</a>.<p>Referenced by <a class="el" href="Geometry_8C-source.html#l00155">acosDeg</a>(), <a class="el" href="Geometry_8C-source.html#l00169">asinDeg</a>(), <a class="el" href="Geometry_8C-source.html#l00143">atan2Deg</a>(), <a class="el" href="Geometry_8C-source.html#l00130">atanDeg</a>(), and <a class="el" href="WorldModelUpdate_8C-source.html#l01386">WorldModel::checkParticlesBall</a>().    </td>  </tr></table><a name="a7" doxytag="Geometry.h::sign"></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"> int sign </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>d1</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 function returns the sign of a give double. 1 is positive, -1 is negative <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>d1</em>&nbsp;</td><td>first parameter </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>the sign of this double </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l00057">57</a> of file <a class="el" href="Geometry_8C-source.html">Geometry.C</a>.<p>References <a class="el" href="Geometry_8h-source.html#l00052">AngDeg</a>, and <a class="el" href="Geometry_8h-source.html#l00051">AngRad</a>.<p>Referenced by <a class="el" href="BasicPlayer_8C-source.html#l01521">BasicPlayer::defendGoalLine</a>().    </td>  </tr></table><a name="a11" doxytag="Geometry.h::sinDeg"></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 sinDeg </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="Geometry_8h.html#a2">AngDeg</a>&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>x</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 function returns the sine of a given angle in degrees using the built-in sine function that works with angles in radians. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>x</em>&nbsp;</td><td>an angle in degrees </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>the sine of the given angle </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l00112">112</a> of file <a class="el" href="Geometry_8C-source.html">Geometry.C</a>.<p>Referenced by <a class="el" href="WorldModelUpdate_8C-source.html#l01212">WorldModel::calculateAngleAgentWithPos</a>(), <a class="el" href="WorldModelUpdate_8C-source.html#l01533">WorldModel::calculateVelocityDynamicObject</a>(), <a class="el" href="Geometry_8C-source.html#l00206">getBisectorTwoAngles</a>(), <a class="el" href="Geometry_8C-source.html#l00865">VecPosition::getVecPositionFromPolar</a>(), and <a class="el" href="WorldModelUpdate_8C-source.html#l01319">WorldModel::initParticlesBall</a>().    </td>  </tr></table><a name="a12" doxytag="Geometry.h::tanDeg"></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 tanDeg </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="Geometry_8h.html#a2">AngDeg</a>&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>x</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 function returns the tangent of a given angle in degrees using the built-in tangent function that works with angles in radians. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>x</em>&nbsp;</td><td>an angle in degrees </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>the tangent of the given angle </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l00121">121</a> of file <a class="el" href="Geometry_8C-source.html">Geometry.C</a>.    </td>  </tr></table><hr><address><small>Generated on Thu Mar 7 00:37:47 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 + -
显示快捷键?