classvecposition.html

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

HTML
1,105
字号
true when the current VecPosition is in between the two given VecPositions when looking in the x-direction; false otherwise </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l00721">721</a> of file <a class="el" href="Geometry_8C-source.html">Geometry.C</a>.<p>References <a class="el" href="Geometry_8C-source.html#l00657">isBehindOf</a>(), and <a class="el" href="Geometry_8C-source.html#l00636">isInFrontOf</a>().<p>Referenced by <a class="el" href="Geometry_8C-source.html#l01542">Rectangle::isInside</a>().    </td>  </tr></table><a name="a45" doxytag="VecPosition::isBetweenY"></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::isBetweenY </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const double &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>d1</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>const double &amp;&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 method determines whether the y-coordinate of the current VecPosition is in between two given double values, i.e. whether the y-coordinate of the current VecPosition is to the right of the first argument and to the left of the second. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>d1</em>&nbsp;</td><td>a double value to which the current y-coordinate must be compared </td></tr><tr><td valign=top><em>d2</em>&nbsp;</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 in between the two given values; false otherwise </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l00759">759</a> of file <a class="el" href="Geometry_8C-source.html">Geometry.C</a>.<p>References <a class="el" href="Geometry_8C-source.html#l00678">isLeftOf</a>(), and <a class="el" href="Geometry_8C-source.html#l00699">isRightOf</a>().    </td>  </tr></table><a name="a44" doxytag="VecPosition::isBetweenY"></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::isBetweenY </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const VecPosition &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>p1</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>const VecPosition &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>p2</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 determines whether the current VecPosition is in between two given VecPositions when looking in the y-direction, i.e. whether the current VecPosition is to the right of the first argument and to the left of the second. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>p1</em>&nbsp;</td><td>a VecPosition to which the current VecPosition must be compared </td></tr><tr><td valign=top><em>p2</em>&nbsp;</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 in between the two given VecPositions when looking in the y-direction; false otherwise </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l00746">746</a> of file <a class="el" href="Geometry_8C-source.html">Geometry.C</a>.<p>References <a class="el" href="Geometry_8C-source.html#l00678">isLeftOf</a>(), and <a class="el" href="Geometry_8C-source.html#l00699">isRightOf</a>().<p>Referenced by <a class="el" href="Geometry_8C-source.html#l01542">Rectangle::isInside</a>().    </td>  </tr></table><a name="a35" doxytag="VecPosition::isInFrontOf"></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::isInFrontOf </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const double &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>d</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 method determines whether the x-coordinate of the current VecPosition is in front 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>&nbsp;</td><td>a double value to which the current x-coordinate must be compared </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>true when the current x-coordinate is in front of the given value; false otherwise </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l00646">646</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">m_x</a>.    </td>  </tr></table><a name="a34" doxytag="VecPosition::isInFrontOf"></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::isInFrontOf </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const VecPosition &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>p</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 method determines whether the current VecPosition is in front of a given VecPosition, i.e. whether the x-coordinate of the current VecPosition is larger than the x-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>&nbsp;</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 in front of the given VecPosition; false otherwise </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l00636">636</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">getX</a>(), and <a class="el" href="Geometry_8h-source.html#l00103">m_x</a>.<p>Referenced by <a class="el" href="Geometry_8C-source.html#l00721">isBetweenX</a>().    </td>  </tr></table><a name="a39" 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">(&nbsp;</td>          <td class="md" nowrap valign="top">const double &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>d</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;

⌨️ 快捷键说明

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