Файловый менеджер - Редактировать - /usr/share/doc/imath-devel/html/functions/line.html
�азад
<!doctype html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Line3 Functions — 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="Matrix Functions" href="matrix.html" /> <link rel="prev" title="GLU Functions" href="glu.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="matrix.html" title="Matrix Functions" accesskey="N">next</a> |</li> <li class="right" > <a href="glu.html" title="GLU Functions" 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="">Line3 Functions</a></li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body" role="main"> <div class="section" id="line3-functions"> <span id="line-functions"></span><h1>Line3 Functions<a class="headerlink" href="#line3-functions" title="Permalink to this headline">¶</a></h1> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="c1">#include <Imath/ImathLineAlgo.h></span> </pre></div> </div> <p>Functions that operate on the <code class="docutils literal notranslate"><span class="pre">Line3</span></code> object.</p> <dl class="cpp function"> <dt id="_CPPv4I0EN5Imath13closestPointsEbRK5Line3I1TERK5Line3I1TER4Vec3I1TER4Vec3I1TE"> <span id="_CPPv3I0EN5Imath13closestPointsERK5Line3I1TERK5Line3I1TER4Vec3I1TER4Vec3I1TE"></span><span id="_CPPv2I0EN5Imath13closestPointsERK5Line3I1TERK5Line3I1TER4Vec3I1TER4Vec3I1TE"></span>template<class <code class="sig-name descname">T</code>><br /><span class="target" id="_imath_line_algo_8h_1a87e6378f7e27fe0dd595a0df7073e397"></span><em class="property">constexpr</em> bool <code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">closestPoints</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="../classes/Line3.html#_CPPv4I0EN5Imath5Line3E" title="Imath::Line3">Line3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath13closestPointsEbRK5Line3I1TERK5Line3I1TER4Vec3I1TER4Vec3I1TE" title="Imath::closestPoints::T">T</a>> &<em>line1</em>, <em class="property">const</em> <a class="reference internal" href="../classes/Line3.html#_CPPv4I0EN5Imath5Line3E" title="Imath::Line3">Line3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath13closestPointsEbRK5Line3I1TERK5Line3I1TER4Vec3I1TER4Vec3I1TE" title="Imath::closestPoints::T">T</a>> &<em>line2</em>, <a class="reference internal" href="../classes/Vec3.html#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath13closestPointsEbRK5Line3I1TERK5Line3I1TER4Vec3I1TER4Vec3I1TE" title="Imath::closestPoints::T">T</a>> &<em>point1</em>, <a class="reference internal" href="../classes/Vec3.html#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath13closestPointsEbRK5Line3I1TERK5Line3I1TER4Vec3I1TER4Vec3I1TE" title="Imath::closestPoints::T">T</a>> &<em>point2</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4I0EN5Imath13closestPointsEbRK5Line3I1TERK5Line3I1TER4Vec3I1TER4Vec3I1TE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Compute point1 and point2 such that point1 is on line1, point2 is on line2 and the distance between point1 and point2 is minimal. </p> <p>This function returns true if point1 and point2 can be computed, or false if line1 and line2 are parallel or nearly parallel. This function assumes that line1.dir and line2.dir are normalized. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4I0EN5Imath9intersectEbRK5Line3I1TERK4Vec3I1TERK4Vec3I1TERK4Vec3I1TER4Vec3I1TER4Vec3I1TERb"> <span id="_CPPv3I0EN5Imath9intersectERK5Line3I1TERK4Vec3I1TERK4Vec3I1TERK4Vec3I1TER4Vec3I1TER4Vec3I1TERb"></span><span id="_CPPv2I0EN5Imath9intersectERK5Line3I1TERK4Vec3I1TERK4Vec3I1TERK4Vec3I1TER4Vec3I1TER4Vec3I1TERb"></span>template<class <code class="sig-name descname">T</code>><br /><span class="target" id="_imath_line_algo_8h_1ab84eb77aaf1211df83e57a3af2a21a4b"></span><em class="property">constexpr</em> bool <code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">intersect</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="../classes/Line3.html#_CPPv4I0EN5Imath5Line3E" title="Imath::Line3">Line3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath9intersectEbRK5Line3I1TERK4Vec3I1TERK4Vec3I1TERK4Vec3I1TER4Vec3I1TER4Vec3I1TERb" title="Imath::intersect::T">T</a>> &<em>line</em>, <em class="property">const</em> <a class="reference internal" href="../classes/Vec3.html#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath9intersectEbRK5Line3I1TERK4Vec3I1TERK4Vec3I1TERK4Vec3I1TER4Vec3I1TER4Vec3I1TERb" title="Imath::intersect::T">T</a>> &<em>v0</em>, <em class="property">const</em> <a class="reference internal" href="../classes/Vec3.html#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath9intersectEbRK5Line3I1TERK4Vec3I1TERK4Vec3I1TERK4Vec3I1TER4Vec3I1TER4Vec3I1TERb" title="Imath::intersect::T">T</a>> &<em>v1</em>, <em class="property">const</em> <a class="reference internal" href="../classes/Vec3.html#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath9intersectEbRK5Line3I1TERK4Vec3I1TERK4Vec3I1TERK4Vec3I1TER4Vec3I1TER4Vec3I1TERb" title="Imath::intersect::T">T</a>> &<em>v2</em>, <a class="reference internal" href="../classes/Vec3.html#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath9intersectEbRK5Line3I1TERK4Vec3I1TERK4Vec3I1TERK4Vec3I1TER4Vec3I1TER4Vec3I1TERb" title="Imath::intersect::T">T</a>> &<em>pt</em>, <a class="reference internal" href="../classes/Vec3.html#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath9intersectEbRK5Line3I1TERK4Vec3I1TERK4Vec3I1TERK4Vec3I1TER4Vec3I1TER4Vec3I1TERb" title="Imath::intersect::T">T</a>> &<em>barycentric</em>, bool &<em>front</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4I0EN5Imath9intersectEbRK5Line3I1TERK4Vec3I1TERK4Vec3I1TERK4Vec3I1TER4Vec3I1TER4Vec3I1TERb" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Given a line and a triangle (v0, v1, v2), the intersect() function finds the intersection of the line and the plane that contains the triangle. </p> <p>If the intersection point cannot be computed, either because the line and the triangle’s plane are nearly parallel or because the triangle’s area is very small, intersect() returns false.</p> <p>If the intersection point is outside the triangle, intersect returns false.</p> <p>If the intersection point, pt, is inside the triangle, intersect() computes a front-facing flag and the barycentric coordinates of the intersection point, and returns true.</p> <p>The front-facing flag is true if the dot product of the triangle’s normal, (v2-v1)%(v1-v0), and the line’s direction is negative.</p> <p>The barycentric coordinates have the following property: <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">pt</span> <span class="o">=</span> <span class="n">v0</span> <span class="o">*</span> <span class="n">barycentric</span><span class="o">.</span><span class="n">x</span> <span class="o">+</span> <span class="n">v1</span> <span class="o">*</span> <span class="n">barycentric</span><span class="o">.</span><span class="n">y</span> <span class="o">+</span> <span class="n">v2</span> <span class="o">*</span> <span class="n">barycentric</span><span class="o">.</span><span class="n">z</span> </pre></div> </div> </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4I0EN5Imath13closestVertexE4Vec3I1TERK4Vec3I1TERK4Vec3I1TERK4Vec3I1TERK5Line3I1TE"> <span id="_CPPv3I0EN5Imath13closestVertexERK4Vec3I1TERK4Vec3I1TERK4Vec3I1TERK5Line3I1TE"></span><span id="_CPPv2I0EN5Imath13closestVertexERK4Vec3I1TERK4Vec3I1TERK4Vec3I1TERK5Line3I1TE"></span>template<class <code class="sig-name descname">T</code>><br /><span class="target" id="_imath_line_algo_8h_1adf7592b9a4a6c14bc3c6991fe3d09496"></span><em class="property">constexpr</em> <a class="reference internal" href="../classes/Vec3.html#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath13closestVertexE4Vec3I1TERK4Vec3I1TERK4Vec3I1TERK4Vec3I1TERK5Line3I1TE" title="Imath::closestVertex::T">T</a>> <code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">closestVertex</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="../classes/Vec3.html#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath13closestVertexE4Vec3I1TERK4Vec3I1TERK4Vec3I1TERK4Vec3I1TERK5Line3I1TE" title="Imath::closestVertex::T">T</a>> &<em>v0</em>, <em class="property">const</em> <a class="reference internal" href="../classes/Vec3.html#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath13closestVertexE4Vec3I1TERK4Vec3I1TERK4Vec3I1TERK4Vec3I1TERK5Line3I1TE" title="Imath::closestVertex::T">T</a>> &<em>v1</em>, <em class="property">const</em> <a class="reference internal" href="../classes/Vec3.html#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath13closestVertexE4Vec3I1TERK4Vec3I1TERK4Vec3I1TERK4Vec3I1TERK5Line3I1TE" title="Imath::closestVertex::T">T</a>> &<em>v2</em>, <em class="property">const</em> <a class="reference internal" href="../classes/Line3.html#_CPPv4I0EN5Imath5Line3E" title="Imath::Line3">Line3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath13closestVertexE4Vec3I1TERK4Vec3I1TERK4Vec3I1TERK4Vec3I1TERK5Line3I1TE" title="Imath::closestVertex::T">T</a>> &<em>l</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4I0EN5Imath13closestVertexE4Vec3I1TERK4Vec3I1TERK4Vec3I1TERK4Vec3I1TERK5Line3I1TE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Return the vertex that is closest to the given line. </p> <p>The returned point is either v0, v1, or v2. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4I0EN5Imath11rotatePointE4Vec3I1TEK4Vec3I1TE5Line3I1TE1T"> <span id="_CPPv3I0EN5Imath11rotatePointEK4Vec3I1TE5Line3I1TE1T"></span><span id="_CPPv2I0EN5Imath11rotatePointEK4Vec3I1TE5Line3I1TE1T"></span>template<class <code class="sig-name descname">T</code>><br /><span class="target" id="_imath_line_algo_8h_1a939c9cb0aab528492190b6bf43b4eda3"></span><em class="property">constexpr</em> <a class="reference internal" href="../classes/Vec3.html#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath11rotatePointE4Vec3I1TEK4Vec3I1TE5Line3I1TE1T" title="Imath::rotatePoint::T">T</a>> <code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">rotatePoint</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="../classes/Vec3.html#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath11rotatePointE4Vec3I1TEK4Vec3I1TE5Line3I1TE1T" title="Imath::rotatePoint::T">T</a>> <em>p</em>, <a class="reference internal" href="../classes/Line3.html#_CPPv4I0EN5Imath5Line3E" title="Imath::Line3">Line3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath11rotatePointE4Vec3I1TEK4Vec3I1TE5Line3I1TE1T" title="Imath::rotatePoint::T">T</a>> <em>l</em>, <a class="reference internal" href="#_CPPv4I0EN5Imath11rotatePointE4Vec3I1TEK4Vec3I1TE5Line3I1TE1T" title="Imath::rotatePoint::T">T</a> <em>angle</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4I0EN5Imath11rotatePointE4Vec3I1TEK4Vec3I1TE5Line3I1TE1T" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Rotate the point p around the line l by the given angle. </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="glu.html" title="previous chapter">GLU Functions</a></p> <h4>Next topic</h4> <p class="topless"><a href="matrix.html" title="next chapter">Matrix Functions</a></p> <div role="note" aria-label="source link"> <h3>This Page</h3> <ul class="this-page-menu"> <li><a href="../_sources/functions/line.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="matrix.html" title="Matrix Functions" >next</a> |</li> <li class="right" > <a href="glu.html" title="GLU Functions" >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="">Line3 Functions</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>
| ver. 1.4 |
Github
|
.
| PHP 8.2.29 | Генераци� �траницы: 0 |
proxy
|
phpinfo
|
�а�тройка