Файловый менеджер - Редактировать - /usr/share/doc/imath-devel/html/classes/Interval.html
�азад
<!doctype html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Interval — 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="Line3" href="Line3.html" /> <link rel="prev" title="Frustum" href="Frustum.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="Line3.html" title="Line3" accesskey="N">next</a> |</li> <li class="right" > <a href="Frustum.html" title="Frustum" 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="">Interval</a></li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body" role="main"> <div class="section" id="interval"> <h1>Interval<a class="headerlink" href="#interval" title="Permalink to this headline">¶</a></h1> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="c1">#include <Imath/ImathInterval.h></span> </pre></div> </div> <p>The <code class="docutils literal notranslate"><span class="pre">Interval</span></code> class template represents a scalar interval, with predefined typedefs for <code class="docutils literal notranslate"><span class="pre">short</span></code>, <code class="docutils literal notranslate"><span class="pre">int</span></code>, <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>An <code class="docutils literal notranslate"><span class="pre">Interval</span></code> is essentially a <code class="docutils literal notranslate"><span class="pre">Box<T></span></code> that allows <code class="docutils literal notranslate"><span class="pre">T</span></code> to be a scalar.</p> <p>Example:</p> <div class="highlight-c++ notranslate"><div class="highlight"><pre><span></span><span class="cp">#include</span> <span class="cpf"><Imath/ImathInterval.h></span><span class="cp"></span> <span class="kt">void</span> <span class="nf">interval_example</span><span class="p">()</span> <span class="p">{</span> <span class="n">Imath</span><span class="o">::</span><span class="n">Intervalf</span> <span class="n">v</span><span class="p">;</span> <span class="n">assert</span> <span class="p">(</span><span class="n">v</span><span class="p">.</span><span class="n">isEmpty</span><span class="p">());</span> <span class="n">assert</span> <span class="p">(</span><span class="o">!</span><span class="n">v</span><span class="p">.</span><span class="n">hasVolume</span><span class="p">());</span> <span class="n">assert</span> <span class="p">(</span><span class="o">!</span><span class="n">v</span><span class="p">.</span><span class="n">isInfinite</span><span class="p">());</span> <span class="n">v</span><span class="p">.</span><span class="n">extendBy</span> <span class="p">(</span><span class="mf">1.0f</span><span class="p">);</span> <span class="n">assert</span> <span class="p">(</span><span class="o">!</span><span class="n">v</span><span class="p">.</span><span class="n">isEmpty</span><span class="p">());</span> <span class="n">v</span><span class="p">.</span><span class="n">extendBy</span> <span class="p">(</span><span class="mf">2.0f</span><span class="p">);</span> <span class="n">assert</span> <span class="p">(</span><span class="n">v</span><span class="p">.</span><span class="n">hasVolume</span><span class="p">());</span> <span class="n">assert</span> <span class="p">(</span><span class="n">v</span><span class="p">.</span><span class="n">intersects</span> <span class="p">(</span><span class="mf">1.5f</span><span class="p">));</span> <span class="p">}</span> </pre></div> </div> <dl class="cpp type"> <dt id="_CPPv4N5Imath9IntervalsE"> <span id="_CPPv3N5Imath9IntervalsE"></span><span id="_CPPv2N5Imath9IntervalsE"></span><span id="Imath::Intervals"></span><span class="target" id="_imath_interval_8h_1afc6975eb80b0a92a1541c1ee6268937c"></span><em class="property">typedef </em><a class="reference internal" href="#_CPPv4I0EN5Imath8IntervalE" title="Imath::Interval">Interval</a><short> <code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">Intervals</code><a class="headerlink" href="#_CPPv4N5Imath9IntervalsE" title="Permalink to this definition">¶</a><br /></dt> <dd><p><a class="reference internal" href="#class_imath_1_1_interval"><span class="std std-ref">Interval</span></a> of type short. </p> </dd></dl> <dl class="cpp type"> <dt id="_CPPv4N5Imath9IntervaliE"> <span id="_CPPv3N5Imath9IntervaliE"></span><span id="_CPPv2N5Imath9IntervaliE"></span><span id="Imath::Intervali"></span><span class="target" id="_imath_interval_8h_1a3e1213e93815282af1398bc90cbc8693"></span><em class="property">typedef </em><a class="reference internal" href="#_CPPv4I0EN5Imath8IntervalE" title="Imath::Interval">Interval</a><int> <code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">Intervali</code><a class="headerlink" href="#_CPPv4N5Imath9IntervaliE" title="Permalink to this definition">¶</a><br /></dt> <dd><p><a class="reference internal" href="#class_imath_1_1_interval"><span class="std std-ref">Interval</span></a> of type integer. </p> </dd></dl> <dl class="cpp type"> <dt id="_CPPv4N5Imath9IntervalfE"> <span id="_CPPv3N5Imath9IntervalfE"></span><span id="_CPPv2N5Imath9IntervalfE"></span><span id="Imath::Intervalf"></span><span class="target" id="_imath_interval_8h_1a37302813bd6a5495b8f1b756c6314ce9"></span><em class="property">typedef </em><a class="reference internal" href="#_CPPv4I0EN5Imath8IntervalE" title="Imath::Interval">Interval</a><float> <code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">Intervalf</code><a class="headerlink" href="#_CPPv4N5Imath9IntervalfE" title="Permalink to this definition">¶</a><br /></dt> <dd><p><a class="reference internal" href="#class_imath_1_1_interval"><span class="std std-ref">Interval</span></a> of type float. </p> </dd></dl> <dl class="cpp type"> <dt id="_CPPv4N5Imath9IntervaldE"> <span id="_CPPv3N5Imath9IntervaldE"></span><span id="_CPPv2N5Imath9IntervaldE"></span><span id="Imath::Intervald"></span><span class="target" id="_imath_interval_8h_1a888031809836ec9fc35dd0b30bc73c1f"></span><em class="property">typedef </em><a class="reference internal" href="#_CPPv4I0EN5Imath8IntervalE" title="Imath::Interval">Interval</a><double> <code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">Intervald</code><a class="headerlink" href="#_CPPv4N5Imath9IntervaldE" title="Permalink to this definition">¶</a><br /></dt> <dd><p><a class="reference internal" href="#class_imath_1_1_interval"><span class="std std-ref">Interval</span></a> of type double. </p> </dd></dl> <dl class="cpp class"> <dt id="_CPPv4I0EN5Imath8IntervalE"> <span id="_CPPv3I0EN5Imath8IntervalE"></span><span id="_CPPv2I0EN5Imath8IntervalE"></span>template<class <code class="sig-name descname">T</code>><br /><span class="target" id="class_imath_1_1_interval"></span><em class="property">class </em><code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">Interval</code><a class="headerlink" href="#_CPPv4I0EN5Imath8IntervalE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>An <a class="reference internal" href="#class_imath_1_1_interval"><span class="std std-ref">Interval</span></a> has a min and a max and some miscellaneous functions. </p> <p>It is basically a Box<T> that allows T to be a scalar. </p> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric">Direct access to bounds</p> <dl class="cpp var"> <dt id="_CPPv4N5Imath8Interval3minE"> <span id="_CPPv3N5Imath8Interval3minE"></span><span id="_CPPv2N5Imath8Interval3minE"></span><span id="Imath::Interval::min__T"></span><span class="target" id="class_imath_1_1_interval_1ad00955ad4c4fd34b3869e86a6c501584"></span><a class="reference internal" href="#_CPPv4I0EN5Imath8IntervalE" title="Imath::Interval::T">T</a> <code class="sig-name descname">min</code><a class="headerlink" href="#_CPPv4N5Imath8Interval3minE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>The minimum value of the interval. </p> </dd></dl> <dl class="cpp var"> <dt id="_CPPv4N5Imath8Interval3maxE"> <span id="_CPPv3N5Imath8Interval3maxE"></span><span id="_CPPv2N5Imath8Interval3maxE"></span><span id="Imath::Interval::max__T"></span><span class="target" id="class_imath_1_1_interval_1a785e32acfdd3eab443ba9f57cb94b560"></span><a class="reference internal" href="#_CPPv4I0EN5Imath8IntervalE" title="Imath::Interval::T">T</a> <code class="sig-name descname">max</code><a class="headerlink" href="#_CPPv4N5Imath8Interval3maxE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>The minimum value of the interval. </p> </dd></dl> </div> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric">Constructors</p> <dl class="cpp function"> <dt id="_CPPv4N5Imath8Interval8IntervalEv"> <span id="_CPPv3N5Imath8Interval8IntervalEv"></span><span id="_CPPv2N5Imath8Interval8IntervalEv"></span><span id="Imath::Interval::IntervalCE"></span><span class="target" id="class_imath_1_1_interval_1aa0b5792d6769fe7291d7e79f877915f0"></span><em class="property">inline</em> <em class="property">constexpr</em> <code class="sig-name descname">Interval</code><span class="sig-paren">(</span><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath8Interval8IntervalEv" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Initialize to the empty interval. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath8Interval8IntervalERK1T"> <span id="_CPPv3N5Imath8Interval8IntervalERK1T"></span><span id="_CPPv2N5Imath8Interval8IntervalERK1T"></span><span id="Imath::Interval::Interval__TCRCE"></span><span class="target" id="class_imath_1_1_interval_1a558387fa45e50e3a0a0ebc25fffae13e"></span><em class="property">inline</em> <em class="property">constexpr</em> <code class="sig-name descname">Interval</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8IntervalE" title="Imath::Interval::T">T</a> &<em>point</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath8Interval8IntervalERK1T" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Intitialize to a single point. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath8Interval8IntervalERK1TRK1T"> <span id="_CPPv3N5Imath8Interval8IntervalERK1TRK1T"></span><span id="_CPPv2N5Imath8Interval8IntervalERK1TRK1T"></span><span id="Imath::Interval::Interval__TCR.TCRCE"></span><span class="target" id="class_imath_1_1_interval_1a17276f44f8f6f7f4923a5eee0ed533d6"></span><em class="property">inline</em> <em class="property">constexpr</em> <code class="sig-name descname">Interval</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8IntervalE" title="Imath::Interval::T">T</a> &<em>minT</em>, <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8IntervalE" title="Imath::Interval::T">T</a> &<em>maxT</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath8Interval8IntervalERK1TRK1T" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Intitialize to a given (min,max) </p> </dd></dl> </div> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric">Comparison</p> <dl class="cpp function"> <dt id="_CPPv4NK5Imath8IntervaleqERK8IntervalI1TE"> <span id="_CPPv3NK5Imath8IntervaleqERK8IntervalI1TE"></span><span id="_CPPv2NK5Imath8IntervaleqERK8IntervalI1TE"></span><span id="Imath::Interval::eq-operator__Interval:T:CRCCE"></span><span class="target" id="class_imath_1_1_interval_1af21bdb7529f0ed4606387a3f0f2afab3"></span><em class="property">inline</em> <em class="property">constexpr</em> bool <code class="sig-name descname">operator==</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8IntervalE" title="Imath::Interval">Interval</a><<a class="reference internal" href="#_CPPv4I0EN5Imath8IntervalE" title="Imath::Interval::T">T</a>> &<em>src</em><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4NK5Imath8IntervaleqERK8IntervalI1TE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Equality. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4NK5Imath8IntervalneERK8IntervalI1TE"> <span id="_CPPv3NK5Imath8IntervalneERK8IntervalI1TE"></span><span id="_CPPv2NK5Imath8IntervalneERK8IntervalI1TE"></span><span id="Imath::Interval::neq-operator__Interval:T:CRCCE"></span><span class="target" id="class_imath_1_1_interval_1a126868869b4b8fff8f1c6d47370c6a1f"></span><em class="property">inline</em> <em class="property">constexpr</em> bool <code class="sig-name descname">operator!=</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8IntervalE" title="Imath::Interval">Interval</a><<a class="reference internal" href="#_CPPv4I0EN5Imath8IntervalE" title="Imath::Interval::T">T</a>> &<em>src</em><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4NK5Imath8IntervalneERK8IntervalI1TE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Inequality. </p> </dd></dl> </div> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric">Manipulation</p> <dl class="cpp function"> <dt id="_CPPv4N5Imath8Interval9makeEmptyEv"> <span id="_CPPv3N5Imath8Interval9makeEmptyEv"></span><span id="_CPPv2N5Imath8Interval9makeEmptyEv"></span><span id="Imath::Interval::makeEmpty"></span><span class="target" id="class_imath_1_1_interval_1a0515be04142566ab04368ef2827d0981"></span><em class="property">inline</em> void <code class="sig-name descname">makeEmpty</code><span class="sig-paren">(</span><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath8Interval9makeEmptyEv" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Set the interval to be empty. </p> <p>An interval is empty if the minimum is greater than the maximum. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath8Interval8extendByERK1T"> <span id="_CPPv3N5Imath8Interval8extendByERK1T"></span><span id="_CPPv2N5Imath8Interval8extendByERK1T"></span><span id="Imath::Interval::extendBy__TCR"></span><span class="target" id="class_imath_1_1_interval_1a2ea293449c5504449ab129467442f5e6"></span><em class="property">inline</em> void <code class="sig-name descname">extendBy</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8IntervalE" title="Imath::Interval::T">T</a> &<em>point</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath8Interval8extendByERK1T" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Extend the interval to include the given point. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath8Interval8extendByERK8IntervalI1TE"> <span id="_CPPv3N5Imath8Interval8extendByERK8IntervalI1TE"></span><span id="_CPPv2N5Imath8Interval8extendByERK8IntervalI1TE"></span><span id="Imath::Interval::extendBy__Interval:T:CR"></span><span class="target" id="class_imath_1_1_interval_1af940d19beea227cde516ea64d04ebd10"></span><em class="property">inline</em> void <code class="sig-name descname">extendBy</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8IntervalE" title="Imath::Interval">Interval</a><<a class="reference internal" href="#_CPPv4I0EN5Imath8IntervalE" title="Imath::Interval::T">T</a>> &<em>interval</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath8Interval8extendByERK8IntervalI1TE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Extend the interval to include the given interval. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath8Interval12makeInfiniteEv"> <span id="_CPPv3N5Imath8Interval12makeInfiniteEv"></span><span id="_CPPv2N5Imath8Interval12makeInfiniteEv"></span><span id="Imath::Interval::makeInfinite"></span><span class="target" id="class_imath_1_1_interval_1ab6815f65829447d830ea0b981d63ee08"></span><em class="property">inline</em> void <code class="sig-name descname">makeInfinite</code><span class="sig-paren">(</span><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath8Interval12makeInfiniteEv" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Make the interval include the entire range of the base type. </p> </dd></dl> </div> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric">Query</p> <dl class="cpp function"> <dt id="_CPPv4NK5Imath8Interval4sizeEv"> <span id="_CPPv3NK5Imath8Interval4sizeEv"></span><span id="_CPPv2NK5Imath8Interval4sizeEv"></span><span id="Imath::Interval::sizeCCE"></span><span class="target" id="class_imath_1_1_interval_1aae2c79ecaa065fdd1dc8545c99970153"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8IntervalE" title="Imath::Interval::T">T</a> <code class="sig-name descname">size</code><span class="sig-paren">(</span><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4NK5Imath8Interval4sizeEv" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Return the size of the interval. The size is (max-min). An empty box has a size of 0. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4NK5Imath8Interval6centerEv"> <span id="_CPPv3NK5Imath8Interval6centerEv"></span><span id="_CPPv2NK5Imath8Interval6centerEv"></span><span id="Imath::Interval::centerCCE"></span><span class="target" id="class_imath_1_1_interval_1a9a12c51db7b220cf8309aea5d16793fc"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8IntervalE" title="Imath::Interval::T">T</a> <code class="sig-name descname">center</code><span class="sig-paren">(</span><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4NK5Imath8Interval6centerEv" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Return the center of the interval. </p> <p>The center is defined as (max+min)/2. The center of an empty interval is undefined. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4NK5Imath8Interval10intersectsERK1T"> <span id="_CPPv3NK5Imath8Interval10intersectsERK1T"></span><span id="_CPPv2NK5Imath8Interval10intersectsERK1T"></span><span id="Imath::Interval::intersects__TCRCCE"></span><span class="target" id="class_imath_1_1_interval_1a5368d8982879a1bc745b39b6d015d6a7"></span><em class="property">inline</em> <em class="property">constexpr</em> bool <code class="sig-name descname">intersects</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8IntervalE" title="Imath::Interval::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="#_CPPv4NK5Imath8Interval10intersectsERK1T" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Return true if the given point is inside the interval, false otherwise. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4NK5Imath8Interval10intersectsERK8IntervalI1TE"> <span id="_CPPv3NK5Imath8Interval10intersectsERK8IntervalI1TE"></span><span id="_CPPv2NK5Imath8Interval10intersectsERK8IntervalI1TE"></span><span id="Imath::Interval::intersects__Interval:T:CRCCE"></span><span class="target" id="class_imath_1_1_interval_1ad8ec1bf3253fa5829bacad799b4a1b0c"></span><em class="property">inline</em> <em class="property">constexpr</em> bool <code class="sig-name descname">intersects</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8IntervalE" title="Imath::Interval">Interval</a><<a class="reference internal" href="#_CPPv4I0EN5Imath8IntervalE" title="Imath::Interval::T">T</a>> &<em>interval</em><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4NK5Imath8Interval10intersectsERK8IntervalI1TE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Return true if the given interval is inside the interval, false otherwise. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4NK5Imath8Interval7isEmptyEv"> <span id="_CPPv3NK5Imath8Interval7isEmptyEv"></span><span id="_CPPv2NK5Imath8Interval7isEmptyEv"></span><span id="Imath::Interval::isEmptyCCE"></span><span class="target" id="class_imath_1_1_interval_1a8bf395aa6cbb58738c958d9ddea49432"></span><em class="property">inline</em> <em class="property">constexpr</em> bool <code class="sig-name descname">isEmpty</code><span class="sig-paren">(</span><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4NK5Imath8Interval7isEmptyEv" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Return true if the interval is empty, false otherwise. </p> <p>An empty interval’s minimum is greater than its maximum. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4NK5Imath8Interval9hasVolumeEv"> <span id="_CPPv3NK5Imath8Interval9hasVolumeEv"></span><span id="_CPPv2NK5Imath8Interval9hasVolumeEv"></span><span id="Imath::Interval::hasVolumeCCE"></span><span class="target" id="class_imath_1_1_interval_1a0b255bfecdc786707c190eaa7212e022"></span><em class="property">inline</em> <em class="property">constexpr</em> bool <code class="sig-name descname">hasVolume</code><span class="sig-paren">(</span><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4NK5Imath8Interval9hasVolumeEv" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Return true if the interval is larger than a single point, false otherwise. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4NK5Imath8Interval10isInfiniteEv"> <span id="_CPPv3NK5Imath8Interval10isInfiniteEv"></span><span id="_CPPv2NK5Imath8Interval10isInfiniteEv"></span><span id="Imath::Interval::isInfiniteCCE"></span><span class="target" id="class_imath_1_1_interval_1a2177fbb8c918f9e057f0e7678bef03bd"></span><em class="property">inline</em> <em class="property">constexpr</em> bool <code class="sig-name descname">isInfinite</code><span class="sig-paren">(</span><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4NK5Imath8Interval10isInfiniteEv" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Return true if the interval contains all points, false otherwise. </p> <p>An infinite box has a mimimum of <code class="docutils literal notranslate"><span class="pre">numeric_limits<T>::lowest()</span></code> and a maximum of <code class="docutils literal notranslate"><span class="pre">numeric_limits<T>::max()</span></code> </p> </dd></dl> </div> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4I0EN5ImathlsERNSt7ostreamERNSt7ostreamERK8IntervalI1TE"> <span id="_CPPv3I0EN5ImathlsERNSt7ostreamERK8IntervalI1TE"></span><span id="_CPPv2I0EN5ImathlsERNSt7ostreamERK8IntervalI1TE"></span>template<class <code class="sig-name descname">T</code>><br /><span class="target" id="_imath_interval_8h_1a50d2dc9e84eaef3d3c9266721b7b3061"></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>s</em>, <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8IntervalE" title="Imath::Interval">Interval</a><<a class="reference internal" href="#_CPPv4I0EN5ImathlsERNSt7ostreamERNSt7ostreamERK8IntervalI1TE" title="Imath::operator<<::T">T</a>> &<em>v</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv4I0EN5ImathlsERNSt7ostreamERNSt7ostreamERK8IntervalI1TE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Stream output, as “(min max)”. </p> <p>Stream output. </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="Frustum.html" title="previous chapter">Frustum</a></p> <h4>Next topic</h4> <p class="topless"><a href="Line3.html" title="next chapter">Line3</a></p> <div role="note" aria-label="source link"> <h3>This Page</h3> <ul class="this-page-menu"> <li><a href="../_sources/classes/Interval.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="Line3.html" title="Line3" >next</a> |</li> <li class="right" > <a href="Frustum.html" title="Frustum" >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="">Interval</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
|
�а�тройка