classvecposition.html
来自「仿真人工智能是指用人工的方法和技术」· HTML 代码 · 共 1,105 行 · 第 1/5 页
HTML
1,105 行
</td> <td><p>This method determines whether the y-coordinate of the current VecPosition is to the left of (i.e. smaller than) a given double value. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>d</em> </td><td>a double value to which the current y-coordinate must be compared </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>true when the current y-coordinate is to the left of the given value; false otherwise </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l00688">688</a> of file <a class="el" href="Geometry_8C-source.html">Geometry.C</a>.<p>References <a class="el" href="Geometry_8h-source.html#l00104">m_y</a>. </td> </tr></table><a name="a38" doxytag="VecPosition::isLeftOf"></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 VecPosition::isLeftOf </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const VecPosition & </td> <td class="mdname1" valign="top" nowrap> <em>p</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 method determines whether the current VecPosition is to the left of a given VecPosition, i.e. whether the y-coordinate of the current VecPosition is smaller than the y-coordinate of the given VecPosition. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>p</em> </td><td>a VecPosition to which the current VecPosition must be compared </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>true when the current VecPosition is to the left of the given VecPosition; false otherwise </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l00678">678</a> of file <a class="el" href="Geometry_8C-source.html">Geometry.C</a>.<p>References <a class="el" href="Geometry_8C-source.html#l00558">getY</a>(), and <a class="el" href="Geometry_8h-source.html#l00104">m_y</a>.<p>Referenced by <a class="el" href="Player_8C-source.html#l00278">Player::deMeer5_goalie</a>(), and <a class="el" href="Geometry_8C-source.html#l00746">isBetweenY</a>(). </td> </tr></table><a name="a41" doxytag="VecPosition::isRightOf"></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 VecPosition::isRightOf </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const double & </td> <td class="mdname1" valign="top" nowrap> <em>d</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 method determines whether the y-coordinate of the current VecPosition is to the right of (i.e. larger than) a given double value. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>d</em> </td><td>a double value to which the current y-coordinate must be compared </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>true when the current y-coordinate is to the right of the given value; false otherwise </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l00709">709</a> of file <a class="el" href="Geometry_8C-source.html">Geometry.C</a>.<p>References <a class="el" href="Geometry_8h-source.html#l00104">m_y</a>. </td> </tr></table><a name="a40" doxytag="VecPosition::isRightOf"></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 VecPosition::isRightOf </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const VecPosition & </td> <td class="mdname1" valign="top" nowrap> <em>p</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 method determines whether the current VecPosition is to the right of a given VecPosition, i.e. whether the y-coordinate of the current VecPosition is larger than the y-coordinate of the given VecPosition. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>p</em> </td><td>a VecPosition to which the current VecPosition must be compared </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>true when the current VecPosition is to the right of the given VecPosition; false otherwise </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l00699">699</a> of file <a class="el" href="Geometry_8C-source.html">Geometry.C</a>.<p>References <a class="el" href="Geometry_8C-source.html#l00558">getY</a>(), and <a class="el" href="Geometry_8h-source.html#l00104">m_y</a>.<p>Referenced by <a class="el" href="Player_8C-source.html#l00278">Player::deMeer5_goalie</a>(), and <a class="el" href="Geometry_8C-source.html#l00746">isBetweenY</a>(). </td> </tr></table><a name="a46" doxytag="VecPosition::normalize"></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"> VecPosition VecPosition::normalize </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </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 method normalizes a VecPosition by setting the magnitude of the corresponding vector to 1. This thus changes the VecPosition itself. <dl compact><dt><b>Returns: </b><dd>the result of normalizing the current VecPosition thus yielding a different VecPosition </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l00768">768</a> of file <a class="el" href="Geometry_8C-source.html">Geometry.C</a>.<p>References <a class="el" href="Geometry_8C-source.html#l00602">setMagnitude</a>(). </td> </tr></table><a name="d1" doxytag="VecPosition::normalizeAngle"></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> VecPosition::normalizeAngle </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>angle</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [static]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method normalizes an angle. This means that the resulting angle lies between -180 and 180 degrees. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>angle</em> </td><td>the angle which must be normalized </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>the result of normalizing the given angle </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l00875">875</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::acceler
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?