classdline2.html

来自「VC下实现图像处理。 VC下实现图像处理。 VC下实现图像处理。」· HTML 代码 · 共 287 行 · 第 1/2 页

HTML
287
字号
<table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">void DLine2::NearestPoint           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classDPoint2.html">DPoint2</a> &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>Point</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>iIndex</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>double &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>dClosest</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"> const</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Return the nearest point (of the points which make up the line). This is not the same as the closest place on the line, which may lie between the defining points; use NearestSegment to find that.<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>Point</em>&nbsp;</td><td>The input point. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>iIndex</em>&nbsp;</td><td>Index of the first point of the nearest line segment. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>dClosest</em>&nbsp;</td><td>Distance from the DLine2 to the input point. </td></tr>  </table></dl>    </td>  </tr></table><a class="anchor" name="79f842758f6342a52d8775edd3f099e5"></a><!-- doxytag: member="DLine2::NearestSegment" ref="79f842758f6342a52d8775edd3f099e5" args="(const DPoint2 &amp;Point, int &amp;iIndex, double &amp;dist, DPoint2 &amp;Intersection) const " --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">bool DLine2::NearestSegment           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classDPoint2.html">DPoint2</a> &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>Point</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>iIndex</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>double &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>dist</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap><a class="el" href="classDPoint2.html">DPoint2</a> &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>Intersection</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"> const</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Returns the location of the closest point on the line to a given point.<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>Point</em>&nbsp;</td><td>The input point. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>iIndex</em>&nbsp;</td><td>Index of the first point of the nearest line segment. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>dist</em>&nbsp;</td><td>Distance from the DLine2 to the input point. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>Intersection</em>&nbsp;</td><td>The closest point on the DLine2.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>True if a closest point was found. </dd></dl>    </td>  </tr></table><a class="anchor" name="004cdd0a9216788bb07c0d2a6220ceb2"></a><!-- doxytag: member="DLine2::SegmentLength" ref="004cdd0a9216788bb07c0d2a6220ceb2" args="(unsigned int i) const " --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">double DLine2::SegmentLength           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">unsigned int&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>i</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap> const</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Return the length of the N'th segment in the line, which is the distance between points N and N+1. If the length of the last segment is requested, a closed polygon is assumed.     </td>  </tr></table><hr size="1"><address style="align: right;"><small>Generated on Mon Jan 14 14:40:54 2008 for vtdata library by&nbsp;<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.5 </small></address></body></html>

⌨️ 快捷键说明

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