classline.html
来自「仿真人工智能是指用人工的方法和技术」· HTML 代码 · 共 873 行 · 第 1/3 页
HTML
873 行
</td> <td><p>This method returns the distance between a specified position and the closest point on the given line. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>pos</em> </td><td>position to which distance should be calculated </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>double indicating the distance to the line. </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l01391">1391</a> of file <a class="el" href="Geometry_8C-source.html">Geometry.C</a>.<p>References <a class="el" href="Geometry_8C-source.html#l00589">VecPosition::getDistanceTo</a>(), and <a class="el" href="Geometry_8C-source.html#l01381">getPointOnLineClosestTo</a>(). </td> </tr></table><a name="a2" doxytag="Line::getIntersection"></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="classVecPosition.html">VecPosition</a> Line::getIntersection </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">Line </td> <td class="mdname1" valign="top" nowrap> <em>line</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 returns the intersection point between the current Line and the specified line. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>line</em> </td><td>line with which the intersection should be calculated. </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd><a class="el" href="classVecPosition.html">VecPosition</a> position that is the intersection point. </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l01278">1278</a> of file <a class="el" href="Geometry_8C-source.html">Geometry.C</a>.<p>References <a class="el" href="Geometry_8C-source.html#l01484">getACoefficient</a>(), <a class="el" href="Geometry_8C-source.html#l01491">getBCoefficient</a>(), <a class="el" href="Geometry_8C-source.html#l01498">getCCoefficient</a>(), <a class="el" href="Geometry_8C-source.html#l01416">getYGivenX</a>(), <a class="el" href="Geometry_8h-source.html#l00257">m_a</a>, <a class="el" href="Geometry_8h-source.html#l00258">m_b</a>, and <a class="el" href="Geometry_8h-source.html#l00259">m_c</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#l00825">WorldModel::getOuterPositionInField</a>(), <a class="el" href="Geometry_8C-source.html#l01381">getPointOnLineClosestTo</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>(), and <a class="el" href="BasicPlayer_8C-source.html#l00962">BasicPlayer::moveToPosAlongLine</a>(). </td> </tr></table><a name="a5" doxytag="Line::getPointOnLineClosestTo"></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="classVecPosition.html">VecPosition</a> Line::getPointOnLineClosestTo </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classVecPosition.html">VecPosition</a> </td> <td class="mdname1" valign="top" nowrap> <em>pos</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 returns the closest point on a line to a given position. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>pos</em> </td><td>point to which closest point should be determined </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd><a class="el" href="classVecPosition.html">VecPosition</a> closest point on line to 'pos'. </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l01381">1381</a> of file <a class="el" href="Geometry_8C-source.html">Geometry.C</a>.<p>References <a class="el" href="Geometry_8C-source.html#l01278">getIntersection</a>(), and <a class="el" href="Geometry_8C-source.html#l01370">getTangentLine</a>().<p>Referenced by <a class="el" href="WorldModelHighLevel_8C-source.html#l00227">WorldModel::getClosestInSetTo</a>(), <a class="el" href="Geometry_8C-source.html#l01391">getDistanceWithPoint</a>(), <a class="el" href="WorldModelHighLevel_8C-source.html#l00109">WorldModel::getNrInSetInCone</a>(), <a class="el" href="BasicPlayer_8C-source.html#l00671">BasicPlayer::interceptCloseGoalie</a>(), <a class="el" href="Geometry_8C-source.html#l01403">isInBetween</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="a4" doxytag="Line::getTangentLine"></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::getTangentLine </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classVecPosition.html">VecPosition</a> </td> <td class="mdname1" valign="top" nowrap> <em>pos</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 returns the tangent line to a <a class="el" href="classVecPosition.html">VecPosition</a>. This is the line between the specified position and the closest point on the line to this position. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>pos</em> </td><td><a class="el" href="classVecPosition.html">VecPosition</a> point with which tangent line is calculated. </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>Line line tangent to this position </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l01370">1370</a> of file <a class="el" href="Geometry_8C-source.html">Geometry.C</a>.<p>References <a class="el" href="Geometry_8C-source.html#l00542">VecPosition::getX</a>(), <a class="el" href="Geometry_8C-source.html#l00558">VecPosition::getY</a>(), <a class="el" href="Geometry_8C-source.html#l01233">Line</a>(), <a class="el" href="Geometry_8h-source.html#l00257">m_a</a>, and <a class="el" href="Geometry_8h-source.html#l00258">m_b</a>.<p>Referenced by <a class="el" href="Geometry_8C-source.html#l01381">getPointOnLineClosestTo</a>(). </td> </tr></table><a name="a9" doxytag="Line::getXGivenY"></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::getXGivenY </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">double </td> <td class="mdname1" valign="top" nowrap> <em>y</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 calculates the x coordinate given the x coordinate <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>y</em> </td><td>coordinate </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>x coordinate on this line </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l01432">1432</a> of file <a class="el" href="Geometry_8C-source.html">Geometry.C</a>.<p>References <a class="el" href="Geometry_8h-source.html#l00257">m_a</a>, <a class="el" href="Geometry_8h-source.html#l00258">m_b</a>, and <a class="el" href="Geometry_8h-source.html#l00259">m_c</a>. </td> </tr></table><a name="a8" doxytag="Line::getYGivenX"></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::getYGivenX </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 method calculates the y coordinate given the x coordinate <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>x</em> </td><td>coordinate </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>y coordinate on this line </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l01416">1416</a> of file <a class="el" href="Geometry_8C-source.html">Geometry.C</a>.<p>References <a class="el" href="Geometry_8h-source.html#l00257">m_a</a>, <a class="el" href="Geometry_8h-source.html#l00258">m_b</a>, <a class="el" href="Geometry_8h-source.html#l00259">m_c</a>, and <a class="el" href="Geometry_8C-source.html#l01269">show</a>().<p>Referenced by <a class="el" href="Geometry_8C-source.html#l01278">getIntersection</a>(). </td> </tr></table><a name="a7" doxytag="Line::isInBetween"></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 Line::isInBetween </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>pos</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>point1</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>point2</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 method determines whether the projection of a point on the current line lies between two other points ('point1' and 'point2') that lie on the same line. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>pos</em> </td><td>point of which projection is checked. </td></tr><tr><td valign=top><em>point1</em> </td><td>first point on line </td></tr><tr><td valign=top><em>point2</em> </td><td>second point on line </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>true when projection of 'pos' lies between 'point1' and 'point2'. </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l01403">1403</a> of file <a class="el" href="Geometry_8C-source.html">Geometry.C</a>.<p>References <a class="el" href="Geometry_8C-source.html#l00589">VecPosition::getDistanceTo</a>(), and <a class="el" href="Geometry_8C-source.html#l01381">getPointOnLineClosestTo</a>().
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?