classfplane.html

来自「VC下实现图像处理。 VC下实现图像处理。 VC下实现图像处理。」· HTML 代码 · 共 210 行

HTML
210
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>vtdata library: FPlane Class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"><link href="tabs.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.5 --><div class="tabs">  <ul>    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>    <li id="current"><a href="annotated.html"><span>Classes</span></a></li>    <li><a href="files.html"><span>Files</span></a></li>  </ul></div><div class="tabs">  <ul>    <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>  </ul></div><h1>FPlane Class Reference</h1><!-- doxytag: class="FPlane" --><!-- doxytag: inherits="FPoint3" -->Inheritance diagram for FPlane:<p><center><img src="classFPlane__inherit__graph.png" border="0" usemap="#FPlane__inherit__map" alt="Inheritance graph"></center><map name="FPlane__inherit__map"><area href="classFPoint3.html" shape="rect" coords="7,7,73,34" alt=""></map><center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classFPlane-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr><tr><td colspan="2"><br><h2>Public Types</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><b>IntersectionType</b> { <br>&nbsp;&nbsp;<b>COLINEAR</b>, <b>COPLANAR</b>, <b>PARALLEL</b>, <b>FACING_AWAY</b>, <br>&nbsp;&nbsp;<b>INTERSECTING</b><br> }</td></tr><tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8e6eff5493071f4441294e1d66a1ead8"></a><!-- doxytag: member="FPlane::FPlane" ref="8e6eff5493071f4441294e1d66a1ead8" args="(float a, float b, float c, float d)" -->&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFPlane.html#8e6eff5493071f4441294e1d66a1ead8">FPlane</a> (float a, float b, float c, float d)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Construct from parametric coefficients. <br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="969e55bace5c52f9e30a3fc23f4fc58f"></a><!-- doxytag: member="FPlane::FPlane" ref="969e55bace5c52f9e30a3fc23f4fc58f" args="(const FPoint3 &amp;p, const FPoint3 &amp;q, const FPoint3 &amp;r)" -->&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFPlane.html#969e55bace5c52f9e30a3fc23f4fc58f">FPlane</a> (const <a class="el" href="classFPoint3.html">FPoint3</a> &amp;p, const <a class="el" href="classFPoint3.html">FPoint3</a> &amp;q, const <a class="el" href="classFPoint3.html">FPoint3</a> &amp;r)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Construct from three points. <br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bc2f24519927bb98e40af41ba58872dd"></a><!-- doxytag: member="FPlane::FPlane" ref="bc2f24519927bb98e40af41ba58872dd" args="(const FPoint3 &amp;Point, const FPoint3 &amp;Normal)" -->&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFPlane.html#bc2f24519927bb98e40af41ba58872dd">FPlane</a> (const <a class="el" href="classFPoint3.html">FPoint3</a> &amp;Point, const <a class="el" href="classFPoint3.html">FPoint3</a> &amp;Normal)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Construct from point and normal vector. <br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="70be5f55d828d618d99f00288071264d"></a><!-- doxytag: member="FPlane::operator=" ref="70be5f55d828d618d99f00288071264d" args="(const FPlane &amp;rhs)" -->const <a class="el" href="classFPlane.html">FPlane</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="classFPlane.html">FPlane</a> &amp;rhs)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3b84cf2d654462359c8ce8156c15aabd"></a><!-- doxytag: member="FPlane::Set" ref="3b84cf2d654462359c8ce8156c15aabd" args="(const FPoint3 &amp;p, const FPoint3 &amp;n)" -->void&nbsp;</td><td class="memItemRight" valign="bottom"><b>Set</b> (const <a class="el" href="classFPoint3.html">FPoint3</a> &amp;p, const <a class="el" href="classFPoint3.html">FPoint3</a> &amp;n)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="57c07a1530bef0ccf5093a6b58a9f0b5"></a><!-- doxytag: member="FPlane::Set" ref="57c07a1530bef0ccf5093a6b58a9f0b5" args="(float a, float b, float c, float d)" -->void&nbsp;</td><td class="memItemRight" valign="bottom"><b>Set</b> (float a, float b, float c, float d)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8795a257efb216fb023d54c7f0e74065"></a><!-- doxytag: member="FPlane::Distance" ref="8795a257efb216fb023d54c7f0e74065" args="(const FPoint3 &amp;v) const " -->float&nbsp;</td><td class="memItemRight" valign="bottom"><b>Distance</b> (const <a class="el" href="classFPoint3.html">FPoint3</a> &amp;v) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">const IntersectionType&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFPlane.html#1d296e34141aa663240980002ec977c7">Intersection</a> (const <a class="el" href="classFPlane.html">FPlane</a> &amp;Plane, <a class="el" href="classFPoint3.html">FPoint3</a> &amp;Origin, <a class="el" href="classFPoint3.html">FPoint3</a> &amp;Direction, float fEpsilon=0.0) const </td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Intersection of two planes.  <a href="#1d296e34141aa663240980002ec977c7"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">const IntersectionType&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFPlane.html#3fd3b128e6fb1c51d3b8505c01d7ff1e">RayIntersection</a> (const <a class="el" href="classFPoint3.html">FPoint3</a> &amp;Origin, const <a class="el" href="classFPoint3.html">FPoint3</a> &amp;Direction, float &amp;fDistance, <a class="el" href="classFPoint3.html">FPoint3</a> &amp;Intersection, float fEpsilon=0.0) const </td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Intersection of ray with plane.  <a href="#3fd3b128e6fb1c51d3b8505c01d7ff1e"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6e7d55665c6011d5b712bb16aa6adba7"></a><!-- doxytag: member="FPlane::LineIntersection" ref="6e7d55665c6011d5b712bb16aa6adba7" args="(const FPoint3 &amp;Origin, const FPoint3 &amp;Direction, FPoint3 &amp;Intersection, float fEpsilon=0.0) const " -->const IntersectionType&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFPlane.html#6e7d55665c6011d5b712bb16aa6adba7">LineIntersection</a> (const <a class="el" href="classFPoint3.html">FPoint3</a> &amp;Origin, const <a class="el" href="classFPoint3.html">FPoint3</a> &amp;Direction, <a class="el" href="classFPoint3.html">FPoint3</a> &amp;Intersection, float fEpsilon=0.0) const </td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Intersection of line with plane. <br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f75d6a8b9ec0d8c559888615ad0ab6c7"></a><!-- doxytag: member="FPlane::ThreePlanesIntersection" ref="f75d6a8b9ec0d8c559888615ad0ab6c7" args="(const FPlane &amp;Plane1, const FPlane &amp;Plane2, FPoint3 &amp;Intersection, float fEpsilon=0.0) const " -->const IntersectionType&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFPlane.html#f75d6a8b9ec0d8c559888615ad0ab6c7">ThreePlanesIntersection</a> (const <a class="el" href="classFPlane.html">FPlane</a> &amp;Plane1, const <a class="el" href="classFPlane.html">FPlane</a> &amp;Plane2, <a class="el" href="classFPoint3.html">FPoint3</a> &amp;Intersection, float fEpsilon=0.0) const </td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Intersection of three planes. <br></td></tr><tr><td colspan="2"><br><h2>Public Attributes</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f1290186a5d0b1ceab27f4e77c0c5d68"></a><!-- doxytag: member="FPlane::w" ref="f1290186a5d0b1ceab27f4e77c0c5d68" args="" -->float&nbsp;</td><td class="memItemRight" valign="bottom"><b>w</b></td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>A class representing an infinite plane, interface single-precision (float). <p><hr><h2>Member Function Documentation</h2><a class="anchor" name="1d296e34141aa663240980002ec977c7"></a><!-- doxytag: member="FPlane::Intersection" ref="1d296e34141aa663240980002ec977c7" args="(const FPlane &amp;Plane, FPoint3 &amp;Origin, FPoint3 &amp;Direction, float fEpsilon=0.0) 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">const FPlane::IntersectionType FPlane::Intersection           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classFPlane.html">FPlane</a> &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>Plane</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap><a class="el" href="classFPoint3.html">FPoint3</a> &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>Origin</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap><a class="el" href="classFPoint3.html">FPoint3</a> &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>Direction</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>float&nbsp;</td>          <td class="mdname" nowrap> <em>fEpsilon</em> = <code>0.0</code></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>Intersection of two planes. <p>Find the intersection of two planes. which in the general case is a line. The line is provided as a ray (origin and direction).<p><dl compact><dt><b>Returns:</b></dt><dd>status, which is either INTERSECTING, COPLANAR, or PARALLEL. In the case of INTERSECTING, then the Origin and Direction parameters describe the line of intersection. </dd></dl>    </td>  </tr></table><a class="anchor" name="3fd3b128e6fb1c51d3b8505c01d7ff1e"></a><!-- doxytag: member="FPlane::RayIntersection" ref="3fd3b128e6fb1c51d3b8505c01d7ff1e" args="(const FPoint3 &amp;Origin, const FPoint3 &amp;Direction, float &amp;fDistance, FPoint3 &amp;Intersection, float fEpsilon=0.0) 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">const FPlane::IntersectionType FPlane::RayIntersection           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classFPoint3.html">FPoint3</a> &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>Origin</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const <a class="el" href="classFPoint3.html">FPoint3</a> &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>Direction</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>float &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>fDistance</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap><a class="el" href="classFPoint3.html">FPoint3</a> &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>Intersection</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>float&nbsp;</td>          <td class="mdname" nowrap> <em>fEpsilon</em> = <code>0.0</code></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>Intersection of ray with plane. <p>Compute Ray-Plane intersection.<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>Origin,Direction</em>&nbsp;</td><td>The position and direction that define the ray. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>fDistance</em>&nbsp;</td><td>The distance along the ray to the intersection point. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>Intersection</em>&nbsp;</td><td>The intersection point. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>fEpsilon</em>&nbsp;</td><td>Small value to test for numeric equivalenccy.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The intersection result (PARALLEL, FACING_AWAY, or INTERSECTING) </dd></dl>    </td>  </tr></table><hr size="1"><address style="align: right;"><small>Generated on Mon Jan 14 14:40:55 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 + -
显示快捷键?