classline.html
来自「仿真人工智能是指用人工的方法和技术」· HTML 代码 · 共 873 行 · 第 1/3 页
HTML
873 行
<p>Referenced by <a class="el" href="WorldModelHighLevel_8C-source.html#l00227">WorldModel::getClosestInSetTo</a>(), and <a class="el" href="WorldModelHighLevel_8C-source.html#l00109">WorldModel::getNrInSetInCone</a>(). </td> </tr></table><a name="d1" doxytag="Line::makeLineFromPositionAndAngle"></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"> Line Line::makeLineFromPositionAndAngle </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classVecPosition.html">VecPosition</a> </td> <td class="mdname" nowrap> <em>vec</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="Geometry_8h.html#a2">AngDeg</a> </td> <td class="mdname" nowrap> <em>angle</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [static]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method creates a line given a position and an angle. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>vec</em> </td><td>position through which the line passes </td></tr><tr><td valign=top><em>angle</em> </td><td>direction of the line. </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>line that goes through position 'vec' with angle 'angle'. </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l01475">1475</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#l01447">makeLineFromTwoPoints</a>().<p>Referenced by <a class="el" href="BasicPlayer_8C-source.html#l01375">BasicPlayer::clearBall</a>(), <a class="el" href="BasicPlayer_8C-source.html#l01521">BasicPlayer::defendGoalLine</a>(), <a class="el" href="WorldModelHighLevel_8C-source.html#l00825">WorldModel::getOuterPositionInField</a>(), <a class="el" href="BasicPlayer_8C-source.html#l01687">BasicPlayer::getShootPositionOnLine</a>(), <a class="el" href="BasicPlayer_8C-source.html#l00531">BasicPlayer::interceptClose</a>(), <a class="el" href="BasicPlayer_8C-source.html#l00671">BasicPlayer::interceptCloseGoalie</a>(), <a class="el" href="WorldModelHighLevel_8C-source.html#l00619">WorldModel::isBallHeadingToGoal</a>(), <a class="el" href="BasicPlayer_8C-source.html#l00962">BasicPlayer::moveToPosAlongLine</a>(), and <a class="el" href="BasicPlayer_8C-source.html#l01271">BasicPlayer::outplayOpponent</a>(). </td> </tr></table><a name="d0" doxytag="Line::makeLineFromTwoPoints"></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"> Line Line::makeLineFromTwoPoints </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classVecPosition.html">VecPosition</a> </td> <td class="mdname" nowrap> <em>pos1</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="classVecPosition.html">VecPosition</a> </td> <td class="mdname" nowrap> <em>pos2</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [static]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method creates a line given two points. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>pos1</em> </td><td>first point </td></tr><tr><td valign=top><em>pos2</em> </td><td>second point </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>line that passes through the two specified points. </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l01447">1447</a> of file <a class="el" href="Geometry_8C-source.html">Geometry.C</a>.<p>References <a class="el" href="Geometry_8h-source.html#l00054">EPSILON</a>, <a class="el" href="Geometry_8C-source.html#l00542">VecPosition::getX</a>(), <a class="el" href="Geometry_8C-source.html#l00558">VecPosition::getY</a>(), and <a class="el" href="Geometry_8C-source.html#l01233">Line</a>().<p>Referenced by <a class="el" href="BasicPlayer_8C-source.html#l01375">BasicPlayer::clearBall</a>(), <a class="el" href="BasicPlayer_8C-source.html#l01521">BasicPlayer::defendGoalLine</a>(), <a class="el" href="Player_8C-source.html#l00278">Player::deMeer5_goalie</a>(), <a class="el" href="WorldModelHighLevel_8C-source.html#l00109">WorldModel::getNrInSetInCone</a>(), <a class="el" href="BasicPlayer_8C-source.html#l01687">BasicPlayer::getShootPositionOnLine</a>(), <a class="el" href="WorldModelHighLevel_8C-source.html#l00619">WorldModel::isBallHeadingToGoal</a>(), <a class="el" href="Geometry_8C-source.html#l01475">makeLineFromPositionAndAngle</a>(), and <a class="el" href="BasicPlayer_8C-source.html#l00962">BasicPlayer::moveToPosAlongLine</a>(). </td> </tr></table><a name="a1" doxytag="Line::show"></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"> void Line::show </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">ostream & </td> <td class="mdname1" valign="top" nowrap> <em>os</em> = cout </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 prints the line information to the specified output stream. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>os</em> </td><td>output stream to which output is written. </td></tr></table></dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l01269">1269</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#l01416">getYGivenX</a>(). </td> </tr></table><hr><h2>Friends And Related Function Documentation</h2><a name="l0" doxytag="Line::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& operator<< </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">ostream & </td> <td class="mdname" nowrap> <em>os</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>Line </td> <td class="mdname" nowrap> <em>l</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [friend]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This function prints the line to the specified output stream in the format y = ax + b. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>os</em> </td><td>output stream to which output is written </td></tr><tr><td valign=top><em>l</em> </td><td>line that is written to output stream </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>output sream to which output is appended. </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l01245">1245</a> of file <a class="el" href="Geometry_8C-source.html">Geometry.C</a>. </td> </tr></table><hr><h2>Member Data Documentation</h2><a name="o0" doxytag="Line::m_a"></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 Line::m_a<code> [private]</code> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This is the a coefficient in the line ay + bx + c = 0 <p>Definition at line <a class="el" href="Geometry_8h-source.html#l00257">257</a> of file <a class="el" href="Geometry_8h-source.html">Geometry.h</a>.<p>Referenced by <a class="el" href="Geometry_8C-source.html#l01484">getACoefficient</a>(), <a class="el" href="Geometry_8C-source.html#l01320">getCircleIntersectionPoints</a>(), <a class="el" href="Geometry_8C-source.html#l01278">getIntersection</a>(), <a class="el" href="Geometry_8C-source.html#l01370">getTangentLine</a>(), <a class="el" href="Geometry_8C-source.html#l01432">getXGivenY</a>(), <a class="el" href="Geometry_8C-source.html#l01416">getYGivenX</a>(), and <a class="el" href="Geometry_8C-source.html#l01233">Line</a>(). </td> </tr></table><a name="o1" doxytag="Line::m_b"></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 Line::m_b<code> [private]</code> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This is the b coefficient in the line ay + bx + c = 0 <p>Definition at line <a class="el" href="Geometry_8h-source.html#l00258">258</a> of file <a class="el" href="Geometry_8h-source.html">Geometry.h</a>.<p>Referenced by <a class="el" href="Geometry_8C-source.html#l01491">getBCoefficient</a>(), <a class="el" href="Geometry_8C-source.html#l01320">getCircleIntersectionPoints</a>(), <a class="el" href="Geometry_8C-source.html#l01278">getIntersection</a>(), <a class="el" href="Geometry_8C-source.html#l01370">getTangentLine</a>(), <a class="el" href="Geometry_8C-source.html#l01432">getXGivenY</a>(), <a class="el" href="Geometry_8C-source.html#l01416">getYGivenX</a>(), and <a class="el" href="Geometry_8C-source.html#l01233">Line</a>(). </td> </tr></table><a name="o2" doxytag="Line::m_c"></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 Line::m_c<code> [private]</code> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This is the c coefficient in the line ay + bx + c = 0 <p>Definition at line <a class="el" href="Geometry_8h-source.html#l00259">259</a> of file <a class="el" href="Geometry_8h-source.html">Geometry.h</a>.<p>Referenced by <a class="el" href="Geometry_8C-source.html#l01498">getCCoefficient</a>(), <a class="el" href="Geometry_8C-source.html#l01320">getCircleIntersectionPoints</a>(), <a class="el" href="Geometry_8C-source.html#l01278">getIntersection</a>(), <a class="el" href="Geometry_8C-source.html#l01432">getXGivenY</a>(), <a class="el" href="Geometry_8C-source.html#l01416">getYGivenX</a>(), and <a class="el" href="Geometry_8C-source.html#l01233">Line</a>(). </td> </tr></table><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="Geometry_8h-source.html">Geometry.h</a><li><a class="el" href="Geometry_8C-source.html">Geometry.C</a></ul><hr><address><small>Generated on Thu Mar 7 00:37:54 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>, © 1997-2001</small></address></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?