geometry_8c.html

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

HTML
798
字号
Definition at line <a class="el" href="Geometry_8C-source.html#l00103">103</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_8C-source.html#l00094">Deg2Rad</a>().    </td>  </tr></table><a name="a4" doxytag="Geometry.C::Deg2Rad"></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#a1">AngRad</a> Deg2Rad </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 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>References <a class="el" href="Geometry_8h-source.html#l00052">AngDeg</a>, and <a class="el" href="Geometry_8h-source.html#l00051">AngRad</a>.    </td>  </tr></table><a name="a13" doxytag="Geometry.C::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>References <a class="el" href="Geometry_8h-source.html#l00052">AngDeg</a>, <a class="el" href="Geometry_8C-source.html#l00143">atan2Deg</a>(), <a class="el" href="Geometry_8C-source.html#l00103">cosDeg</a>(), <a class="el" href="Geometry_8C-source.html#l00875">VecPosition::normalizeAngle</a>(), and <a class="el" href="Geometry_8C-source.html#l00112">sinDeg</a>().    </td>  </tr></table><a name="a12" doxytag="Geometry.C::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>.    </td>  </tr></table><a name="a1" doxytag="Geometry.C::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>.    </td>  </tr></table><a name="a2" doxytag="Geometry.C::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>          <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>.    </td>  </tr></table><a name="a15" doxytag="Geometry.C::operator<<"></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"> ostream&amp; operator&lt;&lt; </td>          <td class="md" valign="top">(&nbsp;</td>

⌨️ 快捷键说明

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