geometry_8h.html

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

HTML
850
字号
          <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 degrees to the corresponding angle 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 corresponding angle in radians </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l00094">94</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#l01533">WorldModel::calculateVelocityDynamicObject</a>(), <a class="el" href="Geometry_8C-source.html#l00103">cosDeg</a>(), <a class="el" href="WorldModelUpdate_8C-source.html#l01319">WorldModel::initParticlesBall</a>(), <a class="el" href="Geometry_8C-source.html#l00112">sinDeg</a>(), and <a class="el" href="Geometry_8C-source.html#l00121">tanDeg</a>().    </td>  </tr></table><a name="a18" doxytag="Geometry.h::getBisectorTwoAngles"></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> getBisectorTwoAngles </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="mdname" nowrap>&nbsp; <em>angMin</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap><a class="el" href="Geometry_8h.html#a2">AngDeg</a>&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>angMax</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 returns the bisector (average) of two angles. It deals with the boundary problem, thus when 'angMin' equals 170 and 'angMax' equals -100, -145 is returned. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>angMin</em>&nbsp;</td><td>minimum angle [-180,180] </td></tr><tr><td valign=top><em>angMax</em>&nbsp;</td><td>maximum angle [-180,180] </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>average of angMin and angMax. </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l00206">206</a> of file <a class="el" href="Geometry_8C-source.html">Geometry.C</a>.<p>Referenced by <a class="el" href="WorldModelHighLevel_8C-source.html#l00874">WorldModel::getDirectionOfWidestAngle</a>(), and <a class="el" href="BasicPlayer_8C-source.html#l01762">BasicPlayer::getMarkingPosition</a>().    </td>  </tr></table><a name="a17" doxytag="Geometry.h::isAngInInterval"></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 isAngInInterval </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="mdname" nowrap>&nbsp; <em>ang</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap><a class="el" href="Geometry_8h.html#a2">AngDeg</a>&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>angMin</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap><a class="el" href="Geometry_8h.html#a2">AngDeg</a>&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>angMax</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 a boolean value which indicates whether the value 'ang' (from interval [-180..180] lies in the interval [angMin..angMax]. Examples: isAngInInterval( -100, 4, -150) returns false isAngInInterval( 45, 4, -150) returns true <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>ang</em>&nbsp;</td><td>angle that should be checked </td></tr><tr><td valign=top><em>angMin</em>&nbsp;</td><td>minimum angle in interval </td></tr><tr><td valign=top><em>angMax</em>&nbsp;</td><td>maximum angle in interval </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>boolean indicating whether ang lies in [angMin..angMax] </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l00187">187</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="BasicPlayer_8C-source.html#l00169">BasicPlayer::searchBall</a>().    </td>  </tr></table><a name="a5" doxytag="Geometry.h::max"></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 max </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">double&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>d1</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>double&nbsp;</td>          <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 maximum 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 maximum of these two parameters </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l00066">66</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="Objects_8C-source.html#l00083">Object::getConfidence</a>(), <a class="el" href="WorldModelUpdate_8C-source.html#l01652">WorldModel::getMinMaxDistChange</a>(), <a class="el" href="WorldModelHighLevel_8C-source.html#l00786">WorldModel::getOffsideX</a>(), <a class="el" href="BasicPlayer_8C-source.html#l01687">BasicPlayer::getShootPositionOnLine</a>(), and <a class="el" href="Geometry_8C-source.html#l01522">Rectangle::setRectanglePoints</a>().    </td>  </tr></table><a name="a6" doxytag="Geometry.h::min"></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 min </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">double&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>d1</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>double&nbsp;</td>

⌨️ 快捷键说明

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