geometry_8h.html
来自「仿真人工智能是指用人工的方法和技术」· HTML 代码 · 共 850 行 · 第 1/4 页
HTML
850 行
<td> </td> <td><p>This function returns the principal value of the arc cosine of x in degrees using the built-in arc cosine function which returns this value in radians. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>x</em> </td><td>a double value </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>the arc cosine of the given value in degrees </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l00155">155</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="a16" doxytag="Geometry.h::asinDeg"></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> asinDeg </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">double </td> <td class="mdname1" valign="top" nowrap> <em>x</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This function returns the principal value of the arc sine of x in degrees using the built-in arc sine function which returns this value in radians. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>x</em> </td><td>a double value </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>the arc sine of the given value in degrees </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l00169">169</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#l00314">BasicPlayer::accelerateBallToVelocity</a>(), and <a class="el" href="BasicPlayer_8C-source.html#l00775">BasicPlayer::kickTo</a>(). </td> </tr></table><a name="a14" doxytag="Geometry.h::atan2Deg"></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 atan2Deg </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">double </td> <td class="mdname" nowrap> <em>x</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>double </td> <td class="mdname" nowrap> <em>y</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This function returns the principal value of the arc tangent of y/x in degrees using the signs of both arguments to determine the quadrant of the return value. For this the built-in 'atan2' function is used which returns this value in radians. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>x</em> </td><td>a double value </td></tr><tr><td valign=top><em>y</em> </td><td>a double value </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>the arc tangent of y/x in degrees taking the signs of x and y into account </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l00143">143</a> of file <a class="el" href="Geometry_8C-source.html">Geometry.C</a>.<p>References <a class="el" href="Geometry_8h-source.html#l00083">CoordSystemT</a>.<p>Referenced by <a class="el" href="WorldModelUpdate_8C-source.html#l01212">WorldModel::calculateAngleAgentWithPos</a>(), <a class="el" href="Geometry_8C-source.html#l00206">getBisectorTwoAngles</a>(), and <a class="el" href="Geometry_8C-source.html#l00625">VecPosition::getDirection</a>(). </td> </tr></table><a name="a13" doxytag="Geometry.h::atanDeg"></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> atanDeg </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">double </td> <td class="mdname1" valign="top" nowrap> <em>x</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This function returns the principal value of the arc tangent of x in degrees using the built-in arc tangent function which returns this value in radians. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>x</em> </td><td>a double value </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>the arc tangent of the given value in degrees </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l00130">130</a> of file <a class="el" href="Geometry_8C-source.html">Geometry.C</a>.<p>References <a class="el" href="Geometry_8h-source.html#l00083">CoordSystemT</a>. </td> </tr></table><a name="a10" doxytag="Geometry.h::cosDeg"></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 cosDeg </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="Geometry_8h.html#a2">AngDeg</a> </td> <td class="mdname1" valign="top" nowrap> <em>x</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This function returns the cosine of a given angle in degrees using the built-in cosine 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> </td><td>an angle in degrees </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>the cosine of the given angle </dl><p>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#l00103">VecPosition::m_x</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="a9" doxytag="Geometry.h::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">( </td> <td class="md" nowrap valign="top"><a class="el" href="Geometry_8h.html#a2">AngDeg</a> </td> <td class="mdname1" valign="top" nowrap> <em>x</em> </td> <td class="md" valign="top">) </td>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?