%PDF- %PDF-
Direktori : /proc/thread-self/root/proc/self/root/usr/share/doc/imath-devel/html/classes/ |
Current File : //proc/thread-self/root/proc/self/root/usr/share/doc/imath-devel/html/classes/Plane3.html |
<!doctype html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Plane3 — Imath Documentation</title> <link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> <link rel="stylesheet" href="../_static/bizstyle.css" type="text/css" /> <script id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script> <script src="../_static/jquery.js"></script> <script src="../_static/underscore.js"></script> <script src="../_static/doctools.js"></script> <script async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/latest.js?config=TeX-AMS-MML_HTMLorMML"></script> <script src="../_static/bizstyle.js"></script> <link rel="index" title="Index" href="../genindex.html" /> <link rel="search" title="Search" href="../search.html" /> <link rel="next" title="Quat" href="Quat.html" /> <link rel="prev" title="Matrix44" href="Matrix44.html" /> <meta name="viewport" content="width=device-width,initial-scale=1.0" /> <!--[if lt IE 9]> <script src="_static/css3-mediaqueries.js"></script> <![endif]--> </head><body> <div class="related" role="navigation" aria-label="related navigation"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="../genindex.html" title="General Index" accesskey="I">index</a></li> <li class="right" > <a href="Quat.html" title="Quat" accesskey="N">next</a> |</li> <li class="right" > <a href="Matrix44.html" title="Matrix44" accesskey="P">previous</a> |</li> <li class="nav-item nav-item-0"><a href="../index.html">Imath</a> »</li> <li class="nav-item nav-item-this"><a href="">Plane3</a></li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body" role="main"> <div class="section" id="plane3"> <h1>Plane3<a class="headerlink" href="#plane3" title="Permalink to this headline">¶</a></h1> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="c1">#include <Imath/ImathPlane.h></span> </pre></div> </div> <p>The <code class="docutils literal notranslate"><span class="pre">Plane3</span></code> class template represents a plane in 3D space, with predefined typedefs for planes of type <code class="docutils literal notranslate"><span class="pre">float</span></code> and <code class="docutils literal notranslate"><span class="pre">double</span></code>.</p> <p>Example:</p> <div class="highlight-c++ notranslate"><div class="highlight"><pre><span></span><span class="cp">#include</span> <span class="cpf"><Imath/ImathPlane.h></span><span class="cp"></span> <span class="kt">void</span> <span class="nf">plane3_example</span><span class="p">()</span> <span class="p">{</span> <span class="n">Imath</span><span class="o">::</span><span class="n">V3f</span> <span class="n">a</span> <span class="p">(</span><span class="mf">1.0f</span><span class="p">,</span> <span class="mf">0.0f</span><span class="p">,</span> <span class="mf">0.0f</span><span class="p">);</span> <span class="n">Imath</span><span class="o">::</span><span class="n">V3f</span> <span class="n">b</span> <span class="p">(</span><span class="mf">0.0f</span><span class="p">,</span> <span class="mf">1.0f</span><span class="p">,</span> <span class="mf">0.0f</span><span class="p">);</span> <span class="n">Imath</span><span class="o">::</span><span class="n">V3f</span> <span class="n">c</span> <span class="p">(</span><span class="mf">0.0f</span><span class="p">,</span> <span class="mf">0.0f</span><span class="p">,</span> <span class="mf">1.0f</span><span class="p">);</span> <span class="n">Imath</span><span class="o">::</span><span class="n">Plane3f</span> <span class="n">p</span> <span class="p">(</span><span class="n">a</span><span class="p">,</span> <span class="n">b</span><span class="p">,</span> <span class="n">c</span><span class="p">);</span> <span class="n">Imath</span><span class="o">::</span><span class="n">V3f</span> <span class="n">n</span> <span class="p">(</span><span class="mf">1.0f</span><span class="p">,</span> <span class="mf">1.0f</span><span class="p">,</span> <span class="mf">1.0f</span><span class="p">);</span> <span class="n">n</span><span class="p">.</span><span class="n">normalize</span><span class="p">();</span> <span class="n">assert</span> <span class="p">(</span><span class="n">p</span><span class="p">.</span><span class="n">normal</span> <span class="o">==</span> <span class="n">n</span><span class="p">);</span> <span class="n">Imath</span><span class="o">::</span><span class="n">V3f</span> <span class="n">o</span> <span class="p">(</span><span class="mf">0.0f</span><span class="p">,</span> <span class="mf">0.0f</span><span class="p">,</span> <span class="mf">0.0f</span><span class="p">);</span> <span class="kt">float</span> <span class="n">d</span> <span class="o">=</span> <span class="n">p</span><span class="p">.</span><span class="n">distanceTo</span> <span class="p">(</span><span class="n">o</span><span class="p">);</span> <span class="n">assert</span> <span class="p">(</span><span class="n">Imath</span><span class="o">::</span><span class="n">equalWithAbsError</span> <span class="p">(</span><span class="n">d</span><span class="p">,</span> <span class="mf">-0.57735f</span><span class="p">,</span> <span class="mf">1e-6f</span><span class="p">));</span> <span class="p">}</span> </pre></div> </div> <dl class="cpp type"> <dt id="_CPPv4N5Imath7Plane3fE"> <span id="_CPPv3N5Imath7Plane3fE"></span><span id="_CPPv2N5Imath7Plane3fE"></span><span id="Imath::Plane3f"></span><span class="target" id="_imath_plane_8h_1a5e79e2b10496a59284b50a9b7c61db0f"></span><em class="property">typedef </em><a class="reference internal" href="#_CPPv4I0EN5Imath6Plane3E" title="Imath::Plane3">Plane3</a><float> <code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">Plane3f</code><a class="headerlink" href="#_CPPv4N5Imath7Plane3fE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Plane of type float. </p> </dd></dl> <dl class="cpp type"> <dt id="_CPPv4N5Imath7Plane3dE"> <span id="_CPPv3N5Imath7Plane3dE"></span><span id="_CPPv2N5Imath7Plane3dE"></span><span id="Imath::Plane3d"></span><span class="target" id="_imath_plane_8h_1a2e4667663b4f0d99f939c84010ad1761"></span><em class="property">typedef </em><a class="reference internal" href="#_CPPv4I0EN5Imath6Plane3E" title="Imath::Plane3">Plane3</a><double> <code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">Plane3d</code><a class="headerlink" href="#_CPPv4N5Imath7Plane3dE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Plane of type double. </p> </dd></dl> <dl class="cpp class"> <dt id="_CPPv4I0EN5Imath6Plane3E"> <span id="_CPPv3I0EN5Imath6Plane3E"></span><span id="_CPPv2I0EN5Imath6Plane3E"></span>template<class <code class="sig-name descname">T</code>><br /><span class="target" id="class_imath_1_1_plane3"></span><em class="property">class </em><code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">Plane3</code><a class="headerlink" href="#_CPPv4I0EN5Imath6Plane3E" title="Permalink to this definition">¶</a><br /></dt> <dd><p>The <code class="docutils literal notranslate"><a class="reference internal" href="#class_imath_1_1_plane3"><span class="std std-ref"><span class="pre">Plane3</span></span></a></code> class represents a half space in 3D, so the normal may point either towards or away from origin. </p> <p>The plane <code class="docutils literal notranslate"><span class="pre">P</span></code> can be represented by <a class="reference internal" href="#class_imath_1_1_plane3"><span class="std std-ref">Plane3</span></a> as either <code class="docutils literal notranslate"><span class="pre">p</span></code> or <code class="docutils literal notranslate"><span class="pre">-p</span></code> corresponding to the two half-spaces on either side of the plane. Any function which computes a distance will return either negative or positive values for the distance indicating which half-space the point is in. Note that reflection, and intersection functions will operate as expected. </p> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric">Direct access to member fields</p> <dl class="cpp var"> <dt id="_CPPv4N5Imath6Plane36normalE"> <span id="_CPPv3N5Imath6Plane36normalE"></span><span id="_CPPv2N5Imath6Plane36normalE"></span><span id="Imath::Plane3::normal__Vec3:T:"></span><span class="target" id="class_imath_1_1_plane3_1a123190aa5807bd3808fd0a71c70f178b"></span><a class="reference internal" href="Vec3.html#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath6Plane3E" title="Imath::Plane3::T">T</a>> <code class="sig-name descname">normal</code><a class="headerlink" href="#_CPPv4N5Imath6Plane36normalE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>The normal to the plane. </p> </dd></dl> <dl class="cpp var"> <dt id="_CPPv4N5Imath6Plane38distanceE"> <span id="_CPPv3N5Imath6Plane38distanceE"></span><span id="_CPPv2N5Imath6Plane38distanceE"></span><span id="Imath::Plane3::distance__T"></span><span class="target" id="class_imath_1_1_plane3_1a70c56db40664f05dcf8cdf9095064bde"></span><a class="reference internal" href="#_CPPv4I0EN5Imath6Plane3E" title="Imath::Plane3::T">T</a> <code class="sig-name descname">distance</code><a class="headerlink" href="#_CPPv4N5Imath6Plane38distanceE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>The distance from the origin to the plane. </p> </dd></dl> </div> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric">Constructors</p> <dl class="cpp function"> <dt id="_CPPv4N5Imath6Plane36Plane3Ev"> <span id="_CPPv3N5Imath6Plane36Plane3Ev"></span><span id="_CPPv2N5Imath6Plane36Plane3Ev"></span><span id="Imath::Plane3::Plane3"></span><span class="target" id="class_imath_1_1_plane3_1a18ea827d2accd3f028154eb00ff2183b"></span><em class="property">inline</em> <code class="sig-name descname">Plane3</code><span class="sig-paren">(</span><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath6Plane36Plane3Ev" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Uninitialized by default. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath6Plane36Plane3ERK4Vec3I1TE1T"> <span id="_CPPv3N5Imath6Plane36Plane3ERK4Vec3I1TE1T"></span><span id="_CPPv2N5Imath6Plane36Plane3ERK4Vec3I1TE1T"></span><span id="Imath::Plane3::Plane3__Vec3:T:CR.TCE"></span><span class="target" id="class_imath_1_1_plane3_1a2083af77341f6bce87a08d8a6c8b8bf6"></span><em class="property">inline</em> <em class="property">constexpr</em> <code class="sig-name descname">Plane3</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="Vec3.html#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath6Plane3E" title="Imath::Plane3::T">T</a>> &<em>normal</em>, <a class="reference internal" href="#_CPPv4I0EN5Imath6Plane3E" title="Imath::Plane3::T">T</a> <em>distance</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath6Plane36Plane3ERK4Vec3I1TE1T" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Initialize with a normal and distance. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath6Plane36Plane3ERK4Vec3I1TERK4Vec3I1TE"> <span id="_CPPv3N5Imath6Plane36Plane3ERK4Vec3I1TERK4Vec3I1TE"></span><span id="_CPPv2N5Imath6Plane36Plane3ERK4Vec3I1TERK4Vec3I1TE"></span><span id="Imath::Plane3::Plane3__Vec3:T:CR.Vec3:T:CRCE"></span><span class="target" id="class_imath_1_1_plane3_1acd288e43f19d8676bf1312ba41f01eae"></span><em class="property">inline</em> <em class="property">constexpr</em> <code class="sig-name descname">Plane3</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="Vec3.html#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath6Plane3E" title="Imath::Plane3::T">T</a>> &<em>point</em>, <em class="property">const</em> <a class="reference internal" href="Vec3.html#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath6Plane3E" title="Imath::Plane3::T">T</a>> &<em>normal</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath6Plane36Plane3ERK4Vec3I1TERK4Vec3I1TE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Initialize with a point and a normal. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath6Plane36Plane3ERK4Vec3I1TERK4Vec3I1TERK4Vec3I1TE"> <span id="_CPPv3N5Imath6Plane36Plane3ERK4Vec3I1TERK4Vec3I1TERK4Vec3I1TE"></span><span id="_CPPv2N5Imath6Plane36Plane3ERK4Vec3I1TERK4Vec3I1TERK4Vec3I1TE"></span><span id="Imath::Plane3::Plane3__Vec3:T:CR.Vec3:T:CR.Vec3:T:CRCE"></span><span class="target" id="class_imath_1_1_plane3_1a4fc0a2722ee61f3d42c9fcce6f424d01"></span><em class="property">inline</em> <em class="property">constexpr</em> <code class="sig-name descname">Plane3</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="Vec3.html#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath6Plane3E" title="Imath::Plane3::T">T</a>> &<em>point1</em>, <em class="property">const</em> <a class="reference internal" href="Vec3.html#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath6Plane3E" title="Imath::Plane3::T">T</a>> &<em>point2</em>, <em class="property">const</em> <a class="reference internal" href="Vec3.html#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath6Plane3E" title="Imath::Plane3::T">T</a>> &<em>point3</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath6Plane36Plane3ERK4Vec3I1TERK4Vec3I1TERK4Vec3I1TE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Initialize with three points. </p> </dd></dl> </div> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric">Manipulation</p> <dl class="cpp function"> <dt id="_CPPv4N5Imath6Plane33setERK4Vec3I1TE1T"> <span id="_CPPv3N5Imath6Plane33setERK4Vec3I1TE1T"></span><span id="_CPPv2N5Imath6Plane33setERK4Vec3I1TE1T"></span><span id="Imath::Plane3::set__Vec3:T:CR.T"></span><span class="target" id="class_imath_1_1_plane3_1a19cfe74049f5028913dc53d036fae397"></span><em class="property">inline</em> void <code class="sig-name descname">set</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="Vec3.html#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath6Plane3E" title="Imath::Plane3::T">T</a>> &<em>normal</em>, <a class="reference internal" href="#_CPPv4I0EN5Imath6Plane3E" title="Imath::Plane3::T">T</a> <em>distance</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath6Plane33setERK4Vec3I1TE1T" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Set via a given normal and distance. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath6Plane33setERK4Vec3I1TERK4Vec3I1TE"> <span id="_CPPv3N5Imath6Plane33setERK4Vec3I1TERK4Vec3I1TE"></span><span id="_CPPv2N5Imath6Plane33setERK4Vec3I1TERK4Vec3I1TE"></span><span id="Imath::Plane3::set__Vec3:T:CR.Vec3:T:CR"></span><span class="target" id="class_imath_1_1_plane3_1a7f6810e36be674ec5c358ff7fdfb866c"></span><em class="property">inline</em> void <code class="sig-name descname">set</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="Vec3.html#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath6Plane3E" title="Imath::Plane3::T">T</a>> &<em>point</em>, <em class="property">const</em> <a class="reference internal" href="Vec3.html#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath6Plane3E" title="Imath::Plane3::T">T</a>> &<em>normal</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath6Plane33setERK4Vec3I1TERK4Vec3I1TE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Set via a given point and normal. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath6Plane33setERK4Vec3I1TERK4Vec3I1TERK4Vec3I1TE"> <span id="_CPPv3N5Imath6Plane33setERK4Vec3I1TERK4Vec3I1TERK4Vec3I1TE"></span><span id="_CPPv2N5Imath6Plane33setERK4Vec3I1TERK4Vec3I1TERK4Vec3I1TE"></span><span id="Imath::Plane3::set__Vec3:T:CR.Vec3:T:CR.Vec3:T:CR"></span><span class="target" id="class_imath_1_1_plane3_1a3ed3509e307ee74e415f5dd5fe71a7b6"></span><em class="property">inline</em> void <code class="sig-name descname">set</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="Vec3.html#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath6Plane3E" title="Imath::Plane3::T">T</a>> &<em>point1</em>, <em class="property">const</em> <a class="reference internal" href="Vec3.html#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath6Plane3E" title="Imath::Plane3::T">T</a>> &<em>point2</em>, <em class="property">const</em> <a class="reference internal" href="Vec3.html#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath6Plane3E" title="Imath::Plane3::T">T</a>> &<em>point3</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath6Plane33setERK4Vec3I1TERK4Vec3I1TERK4Vec3I1TE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Set via three points. </p> </dd></dl> </div> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric">Utility Methods</p> <dl class="cpp function"> <dt id="_CPPv4NK5Imath6Plane39intersectERK5Line3I1TER4Vec3I1TE"> <span id="_CPPv3NK5Imath6Plane39intersectERK5Line3I1TER4Vec3I1TE"></span><span id="_CPPv2NK5Imath6Plane39intersectERK5Line3I1TER4Vec3I1TE"></span><span id="Imath::Plane3::intersect__Line3:T:CR.Vec3:T:RCCE"></span><span class="target" id="class_imath_1_1_plane3_1aae6efab8f8b6a18f011e39e14018d1c0"></span><em class="property">inline</em> <em class="property">constexpr</em> bool <code class="sig-name descname">intersect</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="Line3.html#_CPPv4I0EN5Imath5Line3E" title="Imath::Line3">Line3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath6Plane3E" title="Imath::Plane3::T">T</a>> &<em>line</em>, <a class="reference internal" href="Vec3.html#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath6Plane3E" title="Imath::Plane3::T">T</a>> &<em>intersection</em><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4NK5Imath6Plane39intersectERK5Line3I1TER4Vec3I1TE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Determine if a line intersects the plane. </p> <p><dl class="simple"> <dt><strong>Return</strong></dt><dd><p>True if the line intersects the plane. </p> </dd> <dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple"> <li><p><code class="docutils literal notranslate"><span class="pre">line</span></code>: The line </p></li> <li><p><code class="docutils literal notranslate"><span class="pre">[out]</span> <span class="pre">intersection</span></code>: The point of intersection </p></li> </ul> </dd> </dl> </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4NK5Imath6Plane310intersectTERK5Line3I1TER1T"> <span id="_CPPv3NK5Imath6Plane310intersectTERK5Line3I1TER1T"></span><span id="_CPPv2NK5Imath6Plane310intersectTERK5Line3I1TER1T"></span><span id="Imath::Plane3::intersectT__Line3:T:CR.TRCCE"></span><span class="target" id="class_imath_1_1_plane3_1aec331d3c8a9f54658b80a27c239a44f5"></span><em class="property">inline</em> <em class="property">constexpr</em> bool <code class="sig-name descname">intersectT</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="Line3.html#_CPPv4I0EN5Imath5Line3E" title="Imath::Line3">Line3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath6Plane3E" title="Imath::Plane3::T">T</a>> &<em>line</em>, <a class="reference internal" href="#_CPPv4I0EN5Imath6Plane3E" title="Imath::Plane3::T">T</a> &<em>parameter</em><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4NK5Imath6Plane310intersectTERK5Line3I1TER1T" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Determine if a line intersects the plane. </p> <p><dl class="simple"> <dt><strong>Return</strong></dt><dd><p>True if the line intersects the plane. </p> </dd> <dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple"> <li><p><code class="docutils literal notranslate"><span class="pre">line</span></code>: The line </p></li> <li><p><code class="docutils literal notranslate"><span class="pre">[out]</span> <span class="pre">parameter</span></code>: The parametric value of the point of intersection </p></li> </ul> </dd> </dl> </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4NK5Imath6Plane310distanceToERK4Vec3I1TE"> <span id="_CPPv3NK5Imath6Plane310distanceToERK4Vec3I1TE"></span><span id="_CPPv2NK5Imath6Plane310distanceToERK4Vec3I1TE"></span><span id="Imath::Plane3::distanceTo__Vec3:T:CRCCE"></span><span class="target" id="class_imath_1_1_plane3_1ab9a551b95652a8d8cfdba3fac696973e"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath6Plane3E" title="Imath::Plane3::T">T</a> <code class="sig-name descname">distanceTo</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="Vec3.html#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath6Plane3E" title="Imath::Plane3::T">T</a>> &<em>point</em><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4NK5Imath6Plane310distanceToERK4Vec3I1TE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Return the distance from a point to the plane. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4NK5Imath6Plane312reflectPointERK4Vec3I1TE"> <span id="_CPPv3NK5Imath6Plane312reflectPointERK4Vec3I1TE"></span><span id="_CPPv2NK5Imath6Plane312reflectPointERK4Vec3I1TE"></span><span id="Imath::Plane3::reflectPoint__Vec3:T:CRCCE"></span><span class="target" id="class_imath_1_1_plane3_1ac957332a3f3c0c0421d1eb640af887e7"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="Vec3.html#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath6Plane3E" title="Imath::Plane3::T">T</a>> <code class="sig-name descname">reflectPoint</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="Vec3.html#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath6Plane3E" title="Imath::Plane3::T">T</a>> &<em>point</em><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4NK5Imath6Plane312reflectPointERK4Vec3I1TE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Reflect the given point around the plane. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4NK5Imath6Plane313reflectVectorERK4Vec3I1TE"> <span id="_CPPv3NK5Imath6Plane313reflectVectorERK4Vec3I1TE"></span><span id="_CPPv2NK5Imath6Plane313reflectVectorERK4Vec3I1TE"></span><span id="Imath::Plane3::reflectVector__Vec3:T:CRCCE"></span><span class="target" id="class_imath_1_1_plane3_1aa9abc8e3e688c82c2c9dd0af0cc50cf9"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="Vec3.html#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath6Plane3E" title="Imath::Plane3::T">T</a>> <code class="sig-name descname">reflectVector</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="Vec3.html#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath6Plane3E" title="Imath::Plane3::T">T</a>> &<em>vec</em><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4NK5Imath6Plane313reflectVectorERK4Vec3I1TE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Reflect the direction vector around the plane. </p> </dd></dl> </div> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4I0EN5ImathlsERNSt7ostreamERNSt7ostreamERK6Plane3I1TE"> <span id="_CPPv3I0EN5ImathlsERNSt7ostreamERK6Plane3I1TE"></span><span id="_CPPv2I0EN5ImathlsERNSt7ostreamERK6Plane3I1TE"></span>template<class <code class="sig-name descname">T</code>><br /><span class="target" id="_imath_plane_8h_1aaf848a9e251b954c24348402cc1e2c1f"></span>std::ostream &<code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">operator<<</code><span class="sig-paren">(</span>std::ostream &<em>o</em>, <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath6Plane3E" title="Imath::Plane3">Plane3</a><<a class="reference internal" href="#_CPPv4I0EN5ImathlsERNSt7ostreamERNSt7ostreamERK6Plane3I1TE" title="Imath::operator<<::T">T</a>> &<em>plane</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv4I0EN5ImathlsERNSt7ostreamERNSt7ostreamERK6Plane3I1TE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Stream output, as “(normal distance)”. </p> </dd></dl> </div> <div class="clearer"></div> </div> </div> </div> <div class="sphinxsidebar" role="navigation" aria-label="main navigation"> <div class="sphinxsidebarwrapper"> <p class="logo"><a href="../index.html"> <img class="logo" src="../_static/imath-logo-blue.png" alt="Logo"/> </a></p> <h4>Previous topic</h4> <p class="topless"><a href="Matrix44.html" title="previous chapter">Matrix44</a></p> <h4>Next topic</h4> <p class="topless"><a href="Quat.html" title="next chapter">Quat</a></p> <div role="note" aria-label="source link"> <h3>This Page</h3> <ul class="this-page-menu"> <li><a href="../_sources/classes/Plane3.rst.txt" rel="nofollow">Show Source</a></li> </ul> </div> <div id="searchbox" style="display: none" role="search"> <h3 id="searchlabel">Quick search</h3> <div class="searchformwrapper"> <form class="search" action="../search.html" method="get"> <input type="text" name="q" aria-labelledby="searchlabel" /> <input type="submit" value="Go" /> </form> </div> </div> <script>$('#searchbox').show(0);</script> </div> </div> <div class="clearer"></div> </div> <div class="related" role="navigation" aria-label="related navigation"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="../genindex.html" title="General Index" >index</a></li> <li class="right" > <a href="Quat.html" title="Quat" >next</a> |</li> <li class="right" > <a href="Matrix44.html" title="Matrix44" >previous</a> |</li> <li class="nav-item nav-item-0"><a href="../index.html">Imath</a> »</li> <li class="nav-item nav-item-this"><a href="">Plane3</a></li> </ul> </div> <div class="footer" role="contentinfo"> © Copyright 2021, Contributors to the OpenEXR Project. Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 3.4.3. </div> </body> </html>