Файловый менеджер - Редактировать - /usr/share/doc/imath-devel/html/classes/Vec3.html
�азад
<!doctype html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Vec3 — 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="Vec4" href="Vec4.html" /> <link rel="prev" title="Vec2" href="Vec2.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="Vec4.html" title="Vec4" accesskey="N">next</a> |</li> <li class="right" > <a href="Vec2.html" title="Vec2" 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="">Vec3</a></li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body" role="main"> <div class="section" id="vec3"> <h1>Vec3<a class="headerlink" href="#vec3" title="Permalink to this headline">¶</a></h1> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="c1">#include <Imath/ImathVec.h></span> </pre></div> </div> <p>The <code class="docutils literal notranslate"><span class="pre">Vec3</span></code> class template represents a 3D vector, with predefined typedefs for vectors of type <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">int64_t</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>Note that the integer specializations of <code class="docutils literal notranslate"><span class="pre">Vec3</span></code> lack the <code class="docutils literal notranslate"><span class="pre">length()</span></code> and <code class="docutils literal notranslate"><span class="pre">normalize()</span></code> methods that are present in the <code class="docutils literal notranslate"><span class="pre">float</span></code> and <code class="docutils literal notranslate"><span class="pre">double</span></code> versions, because the results don’t fit into integer quantities.</p> <p>There are also various utility functions that operate on vectors defined in <code class="docutils literal notranslate"><span class="pre">ImathVecAlgo.h</span></code> and described in <a class="reference internal" href="../functions/vec.html#vector-functions"><span class="std std-ref">Vector Functions</span></a>.</p> <p>Example:</p> <div class="highlight-c++ notranslate"><div class="highlight"><pre><span></span><span class="cp">#include</span> <span class="cpf"><Imath/ImathVec.h></span><span class="cp"></span> <span class="kt">void</span> <span class="nf">vec3_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">2.0f</span><span class="p">,</span> <span class="mf">3.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="c1">// b is uninitialized</span> <span class="n">b</span><span class="p">.</span><span class="n">x</span> <span class="o">=</span> <span class="n">a</span><span class="p">[</span><span class="mi">0</span><span class="p">];</span> <span class="n">b</span><span class="p">.</span><span class="n">y</span> <span class="o">=</span> <span class="n">a</span><span class="p">[</span><span class="mi">1</span><span class="p">];</span> <span class="n">b</span><span class="p">.</span><span class="n">z</span> <span class="o">=</span> <span class="n">a</span><span class="p">[</span><span class="mi">2</span><span class="p">];</span> <span class="n">assert</span> <span class="p">(</span><span class="n">a</span> <span class="o">==</span> <span class="n">b</span><span class="p">);</span> <span class="n">assert</span> <span class="p">(</span><span class="n">a</span><span class="p">.</span><span class="n">length</span><span class="p">()</span> <span class="o">==</span> <span class="n">sqrt</span> <span class="p">(</span><span class="n">a</span> <span class="o">^</span> <span class="n">a</span><span class="p">));</span> <span class="n">a</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">Imath</span><span class="o">::</span><span class="n">equalWithAbsError</span> <span class="p">(</span><span class="n">a</span><span class="p">.</span><span class="n">length</span><span class="p">(),</span> <span class="mf">1.0f</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="_CPPv4N5Imath3V3sE"> <span id="_CPPv3N5Imath3V3sE"></span><span id="_CPPv2N5Imath3V3sE"></span><span id="Imath::V3s"></span><span class="target" id="_imath_vec_8h_1acf4620b687443cdf7622e5ea9074e472"></span><em class="property">typedef </em><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><short> <code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">V3s</code><a class="headerlink" href="#_CPPv4N5Imath3V3sE" title="Permalink to this definition">¶</a><br /></dt> <dd><p><a class="reference internal" href="#class_imath_1_1_vec3"><span class="std std-ref">Vec3</span></a> of short. </p> </dd></dl> <dl class="cpp type"> <dt id="_CPPv4N5Imath3V3iE"> <span id="_CPPv3N5Imath3V3iE"></span><span id="_CPPv2N5Imath3V3iE"></span><span id="Imath::V3i"></span><span class="target" id="_imath_vec_8h_1a53fece0169a6ae6e9a6caa11db3ad87d"></span><em class="property">typedef </em><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><int> <code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">V3i</code><a class="headerlink" href="#_CPPv4N5Imath3V3iE" title="Permalink to this definition">¶</a><br /></dt> <dd><p><a class="reference internal" href="#class_imath_1_1_vec3"><span class="std std-ref">Vec3</span></a> of integer. </p> </dd></dl> <dl class="cpp type"> <dt id="_CPPv4N5Imath5V3i64E"> <span id="_CPPv3N5Imath5V3i64E"></span><span id="_CPPv2N5Imath5V3i64E"></span><span id="Imath::V3i64"></span><span class="target" id="_imath_vec_8h_1aaa52891cc97620c95c10588150d30024"></span><em class="property">typedef </em><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><int64_t> <code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">V3i64</code><a class="headerlink" href="#_CPPv4N5Imath5V3i64E" title="Permalink to this definition">¶</a><br /></dt> <dd><p><a class="reference internal" href="#class_imath_1_1_vec3"><span class="std std-ref">Vec3</span></a> of int64_t. </p> </dd></dl> <dl class="cpp type"> <dt id="_CPPv4N5Imath3V3fE"> <span id="_CPPv3N5Imath3V3fE"></span><span id="_CPPv2N5Imath3V3fE"></span><span id="Imath::V3f"></span><span class="target" id="_imath_vec_8h_1a13575c4d9fff43e905b40d04a7100e20"></span><em class="property">typedef </em><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><float> <code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">V3f</code><a class="headerlink" href="#_CPPv4N5Imath3V3fE" title="Permalink to this definition">¶</a><br /></dt> <dd><p><a class="reference internal" href="#class_imath_1_1_vec3"><span class="std std-ref">Vec3</span></a> of float. </p> </dd></dl> <dl class="cpp type"> <dt id="_CPPv4N5Imath3V3dE"> <span id="_CPPv3N5Imath3V3dE"></span><span id="_CPPv2N5Imath3V3dE"></span><span id="Imath::V3d"></span><span class="target" id="_imath_vec_8h_1a76b8dd330b79ffab364afc12e092d74e"></span><em class="property">typedef </em><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><double> <code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">V3d</code><a class="headerlink" href="#_CPPv4N5Imath3V3dE" title="Permalink to this definition">¶</a><br /></dt> <dd><p><a class="reference internal" href="#class_imath_1_1_vec3"><span class="std std-ref">Vec3</span></a> of double. </p> </dd></dl> <dl class="cpp class"> <dt id="_CPPv4I0EN5Imath4Vec3E"> <span id="_CPPv3I0EN5Imath4Vec3E"></span><span id="_CPPv2I0EN5Imath4Vec3E"></span>template<class <code class="sig-name descname">T</code>><br /><span class="target" id="class_imath_1_1_vec3"></span><em class="property">class </em><code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">Vec3</code><a class="headerlink" href="#_CPPv4I0EN5Imath4Vec3E" title="Permalink to this definition">¶</a><br /></dt> <dd><p>3-element vector </p> <p>Subclassed by <a class="reference internal" href="Color3.html#class_imath_1_1_color3"><span class="std std-ref">Imath::Color3< T ></span></a>, <a class="reference internal" href="Euler.html#class_imath_1_1_euler"><span class="std std-ref">Imath::Euler< T ></span></a></p> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric">Direct access to elements</p> <dl class="cpp var"> <dt id="_CPPv4N5Imath4Vec31xE"> <span id="_CPPv3N5Imath4Vec31xE"></span><span id="_CPPv2N5Imath4Vec31xE"></span><span id="Imath::Vec3::x__T"></span><span class="target" id="class_imath_1_1_vec3_1ade1d589d404e97e5a23cd1ff7af18ab6"></span><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3::T">T</a> <code class="sig-name descname">x</code><a class="headerlink" href="#_CPPv4N5Imath4Vec31xE" title="Permalink to this definition">¶</a><br /></dt> <dd></dd></dl> <dl class="cpp var"> <dt id="_CPPv4N5Imath4Vec31yE"> <span id="_CPPv3N5Imath4Vec31yE"></span><span id="_CPPv2N5Imath4Vec31yE"></span><span id="Imath::Vec3::y__T"></span><span class="target" id="class_imath_1_1_vec3_1a0e31d082530f25ad5c9aea8fef6891da"></span><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3::T">T</a> <code class="sig-name descname">y</code><a class="headerlink" href="#_CPPv4N5Imath4Vec31yE" title="Permalink to this definition">¶</a><br /></dt> <dd></dd></dl> <dl class="cpp var"> <dt id="_CPPv4N5Imath4Vec31zE"> <span id="_CPPv3N5Imath4Vec31zE"></span><span id="_CPPv2N5Imath4Vec31zE"></span><span id="Imath::Vec3::z__T"></span><span class="target" id="class_imath_1_1_vec3_1ad4f9f1cf499393cfd5b230e7a7f78574"></span><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3::T">T</a> <code class="sig-name descname">z</code><a class="headerlink" href="#_CPPv4N5Imath4Vec31zE" title="Permalink to this definition">¶</a><br /></dt> <dd></dd></dl> </div> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric">Constructors and Assignment</p> <dl class="cpp function"> <dt id="_CPPv4N5Imath4Vec34Vec3Ev"> <span id="_CPPv3N5Imath4Vec34Vec3Ev"></span><span id="_CPPv2N5Imath4Vec34Vec3Ev"></span><span id="Imath::Vec3::Vec3"></span><span class="target" id="class_imath_1_1_vec3_1a8480c3f64dafc221e06956c92f3d8e89"></span><em class="property">inline</em> <code class="sig-name descname">Vec3</code><span class="sig-paren">(</span><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath4Vec34Vec3Ev" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Uninitialized by default. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath4Vec34Vec3E1T"> <span id="_CPPv3N5Imath4Vec34Vec3E1T"></span><span id="_CPPv2N5Imath4Vec34Vec3E1T"></span><span id="Imath::Vec3::Vec3__TCE"></span><span class="target" id="class_imath_1_1_vec3_1ad4f3b242d9a669b807972441729d5118"></span><em class="property">inline</em> <em class="property">explicit</em> <em class="property">constexpr</em> <code class="sig-name descname">Vec3</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3::T">T</a> <em>a</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath4Vec34Vec3E1T" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Initialize to a scalar <code class="docutils literal notranslate"><span class="pre">(a,a,a)</span></code> </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath4Vec34Vec3E1T1T1T"> <span id="_CPPv3N5Imath4Vec34Vec3E1T1T1T"></span><span id="_CPPv2N5Imath4Vec34Vec3E1T1T1T"></span><span id="Imath::Vec3::Vec3__T.T.TCE"></span><span class="target" id="class_imath_1_1_vec3_1aa733adf84cc82f934363bd44b23d8135"></span><em class="property">inline</em> <em class="property">constexpr</em> <code class="sig-name descname">Vec3</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3::T">T</a> <em>a</em>, <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3::T">T</a> <em>b</em>, <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3::T">T</a> <em>c</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath4Vec34Vec3E1T1T1T" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Initialize to given elements <code class="docutils literal notranslate"><span class="pre">(a,b,c)</span></code> </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath4Vec34Vec3ERK4Vec3"> <span id="_CPPv3N5Imath4Vec34Vec3ERK4Vec3"></span><span id="_CPPv2N5Imath4Vec34Vec3ERK4Vec3"></span><span id="Imath::Vec3::Vec3__Vec3CRCE"></span><span class="target" id="class_imath_1_1_vec3_1a92a4552e6b3d7d5f5855bdc8c5cb1f8d"></span><em class="property">inline</em> <em class="property">constexpr</em> <code class="sig-name descname">Vec3</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4N5Imath4Vec34Vec3ERK4Vec3" title="Imath::Vec3::Vec3">Vec3</a> &<em>v</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath4Vec34Vec3ERK4Vec3" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Copy constructor. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4I0EN5Imath4Vec34Vec3ERK4Vec3I1SE"> <span id="_CPPv3I0EN5Imath4Vec34Vec3ERK4Vec3I1SE"></span><span id="_CPPv2I0EN5Imath4Vec34Vec3ERK4Vec3I1SE"></span>template<class <code class="sig-name descname">S</code>><br /><span class="target" id="class_imath_1_1_vec3_1a95f271aa48f9994d7dbcbf2dfcef7f7b"></span><em class="property">inline</em> <em class="property">constexpr</em> <code class="sig-name descname">Vec3</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec34Vec3ERK4Vec3I1SE" title="Imath::Vec3::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath4Vec34Vec3ERK4Vec3I1SE" title="Imath::Vec3::Vec3::S">S</a>> &<em>v</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4I0EN5Imath4Vec34Vec3ERK4Vec3I1SE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Construct from <a class="reference internal" href="#class_imath_1_1_vec3"><span class="std std-ref">Vec3</span></a> of another base type. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4I0EN5Imath4Vec34Vec3ERK4Vec4I1SE"> <span id="_CPPv3I0EN5Imath4Vec34Vec3ERK4Vec4I1SE"></span><span id="_CPPv2I0EN5Imath4Vec34Vec3ERK4Vec4I1SE"></span>template<class <code class="sig-name descname">S</code>><br /><span class="target" id="class_imath_1_1_vec3_1a5a58e30cfe431dc37781735d26aec2b1"></span><em class="property">inline</em> <em class="property">explicit</em> <em class="property">constexpr</em> <code class="sig-name descname">Vec3</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="Vec4.html#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a><<a class="reference internal" href="#_CPPv4I0EN5Imath4Vec34Vec3ERK4Vec4I1SE" title="Imath::Vec3::Vec3::S">S</a>> &<em>v</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4I0EN5Imath4Vec34Vec3ERK4Vec4I1SE" title="Permalink to this definition">¶</a><br /></dt> <dd><p><a class="reference internal" href="Vec4.html#class_imath_1_1_vec4"><span class="std std-ref">Vec4</span></a> to <a class="reference internal" href="#class_imath_1_1_vec3"><span class="std std-ref">Vec3</span></a> conversion: divide x, y and z by w, even if w is 0. </p> <p>The result depends on how the environment handles floating-point exceptions. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4I0EN5Imath4Vec34Vec3ERK4Vec4I1SE12InfException"> <span id="_CPPv3I0EN5Imath4Vec34Vec3ERK4Vec4I1SE12InfException"></span><span id="_CPPv2I0EN5Imath4Vec34Vec3ERK4Vec4I1SE12InfException"></span>template<class <code class="sig-name descname">S</code>><br /><span class="target" id="class_imath_1_1_vec3_1a3482564cfb65992ca6d0d3582dcdbf41"></span><em class="property">inline</em> <em class="property">explicit</em> <em class="property">constexpr</em> <code class="sig-name descname">Vec3</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="Vec4.html#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a><<a class="reference internal" href="#_CPPv4I0EN5Imath4Vec34Vec3ERK4Vec4I1SE12InfException" title="Imath::Vec3::Vec3::S">S</a>> &<em>v</em>, InfException<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv4I0EN5Imath4Vec34Vec3ERK4Vec4I1SE12InfException" title="Permalink to this definition">¶</a><br /></dt> <dd><p><a class="reference internal" href="Vec4.html#class_imath_1_1_vec4"><span class="std std-ref">Vec4</span></a> to <a class="reference internal" href="#class_imath_1_1_vec3"><span class="std std-ref">Vec3</span></a> conversion: divide x, y and z by w. </p> <p>Throws an exception if w is zero or if division by w would overflow. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath4Vec3aSERK4Vec3"> <span id="_CPPv3N5Imath4Vec3aSERK4Vec3"></span><span id="_CPPv2N5Imath4Vec3aSERK4Vec3"></span><span id="Imath::Vec3::assign-operator__Vec3CRCE"></span><span class="target" id="class_imath_1_1_vec3_1a510ee6c585702f6f410686933671b8eb"></span><em class="property">inline</em> <em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a> &<code class="sig-name descname">operator=</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a> &<em>v</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath4Vec3aSERK4Vec3" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Assignment. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath4Vec3D0Ev"> <span id="_CPPv3N5Imath4Vec3D0Ev"></span><span id="_CPPv2N5Imath4Vec3D0Ev"></span><span id="Imath::Vec3::~Vec3"></span><span class="target" id="class_imath_1_1_vec3_1ae02894d1276f536753d3c840de6b45c4"></span><code class="sig-name descname">~Vec3</code><span class="sig-paren">(</span><span class="sig-paren">)</span> <em class="property">noexcept</em> = default<a class="headerlink" href="#_CPPv4N5Imath4Vec3D0Ev" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Destructor. </p> </dd></dl> </div> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric">Compatibility with Sb</p> <dl class="cpp function"> <dt id="_CPPv4I0EN5Imath4Vec38setValueEv1S1S1S"> <span id="_CPPv3I0EN5Imath4Vec38setValueE1S1S1S"></span><span id="_CPPv2I0EN5Imath4Vec38setValueE1S1S1S"></span>template<class <code class="sig-name descname">S</code>><br /><span class="target" id="class_imath_1_1_vec3_1a48708b0e774433e6c40013a35661e9be"></span><em class="property">inline</em> void <code class="sig-name descname">setValue</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec38setValueEv1S1S1S" title="Imath::Vec3::setValue::S">S</a> <em>a</em>, <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec38setValueEv1S1S1S" title="Imath::Vec3::setValue::S">S</a> <em>b</em>, <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec38setValueEv1S1S1S" title="Imath::Vec3::setValue::S">S</a> <em>c</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4I0EN5Imath4Vec38setValueEv1S1S1S" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Set the value. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4I0EN5Imath4Vec38setValueEvRK4Vec3I1SE"> <span id="_CPPv3I0EN5Imath4Vec38setValueERK4Vec3I1SE"></span><span id="_CPPv2I0EN5Imath4Vec38setValueERK4Vec3I1SE"></span>template<class <code class="sig-name descname">S</code>><br /><span class="target" id="class_imath_1_1_vec3_1ac0be65b97246ab541a11ecede96b844e"></span><em class="property">inline</em> void <code class="sig-name descname">setValue</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath4Vec38setValueEvRK4Vec3I1SE" title="Imath::Vec3::setValue::S">S</a>> &<em>v</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4I0EN5Imath4Vec38setValueEvRK4Vec3I1SE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Set the value. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4I0ENK5Imath4Vec38getValueEvR1SR1SR1S"> <span id="_CPPv3I0ENK5Imath4Vec38getValueER1SR1SR1S"></span><span id="_CPPv2I0ENK5Imath4Vec38getValueER1SR1SR1S"></span>template<class <code class="sig-name descname">S</code>><br /><span class="target" id="class_imath_1_1_vec3_1a9096403e0abd334d6beb8f875230af5c"></span><em class="property">inline</em> void <code class="sig-name descname">getValue</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv4I0ENK5Imath4Vec38getValueEvR1SR1SR1S" title="Imath::Vec3::getValue::S">S</a> &<em>a</em>, <a class="reference internal" href="#_CPPv4I0ENK5Imath4Vec38getValueEvR1SR1SR1S" title="Imath::Vec3::getValue::S">S</a> &<em>b</em>, <a class="reference internal" href="#_CPPv4I0ENK5Imath4Vec38getValueEvR1SR1SR1S" title="Imath::Vec3::getValue::S">S</a> &<em>c</em><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4I0ENK5Imath4Vec38getValueEvR1SR1SR1S" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Return the value in <code class="docutils literal notranslate"><span class="pre">a</span></code>, <code class="docutils literal notranslate"><span class="pre">b</span></code>, and <code class="docutils literal notranslate"><span class="pre">c</span></code> </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4I0ENK5Imath4Vec38getValueEvR4Vec3I1SE"> <span id="_CPPv3I0ENK5Imath4Vec38getValueER4Vec3I1SE"></span><span id="_CPPv2I0ENK5Imath4Vec38getValueER4Vec3I1SE"></span>template<class <code class="sig-name descname">S</code>><br /><span class="target" id="class_imath_1_1_vec3_1af7792e57cd1c24cc99ee92e553a7c577"></span><em class="property">inline</em> void <code class="sig-name descname">getValue</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0ENK5Imath4Vec38getValueEvR4Vec3I1SE" title="Imath::Vec3::getValue::S">S</a>> &<em>v</em><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4I0ENK5Imath4Vec38getValueEvR4Vec3I1SE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Return the value in <code class="docutils literal notranslate"><span class="pre">v</span></code> </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath4Vec38getValueEv"> <span id="_CPPv3N5Imath4Vec38getValueEv"></span><span id="_CPPv2N5Imath4Vec38getValueEv"></span><span id="Imath::Vec3::getValue"></span><span class="target" id="class_imath_1_1_vec3_1aab7fd1d3bc6de5be7a32eaa1cf95c4aa"></span><em class="property">inline</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3::T">T</a> *<code class="sig-name descname">getValue</code><span class="sig-paren">(</span><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath4Vec38getValueEv" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Return a raw pointer to the array of values. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4NK5Imath4Vec38getValueEv"> <span id="_CPPv3NK5Imath4Vec38getValueEv"></span><span id="_CPPv2NK5Imath4Vec38getValueEv"></span><span id="Imath::Vec3::getValueC"></span><span class="target" id="class_imath_1_1_vec3_1a9608438f9bc138a25e9b36f3affeee4d"></span><em class="property">inline</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3::T">T</a> *<code class="sig-name descname">getValue</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="#_CPPv4NK5Imath4Vec38getValueEv" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Return a raw pointer to the array of values. </p> </dd></dl> </div> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric">Arithmetic and Comparison</p> <dl class="cpp function"> <dt id="_CPPv4I0ENK5Imath4Vec3eqEbRK4Vec3I1SE"> <span id="_CPPv3I0ENK5Imath4Vec3eqERK4Vec3I1SE"></span><span id="_CPPv2I0ENK5Imath4Vec3eqERK4Vec3I1SE"></span>template<class <code class="sig-name descname">S</code>><br /><span class="target" id="class_imath_1_1_vec3_1a0814031ab5e651dd00c588c07de8f3dd"></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="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0ENK5Imath4Vec3eqEbRK4Vec3I1SE" title="Imath::Vec3::operator==::S">S</a>> &<em>v</em><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4I0ENK5Imath4Vec3eqEbRK4Vec3I1SE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Equality. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4I0ENK5Imath4Vec3neEbRK4Vec3I1SE"> <span id="_CPPv3I0ENK5Imath4Vec3neERK4Vec3I1SE"></span><span id="_CPPv2I0ENK5Imath4Vec3neERK4Vec3I1SE"></span>template<class <code class="sig-name descname">S</code>><br /><span class="target" id="class_imath_1_1_vec3_1ae06c60e62ec8669b88686870aa1688a2"></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="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0ENK5Imath4Vec3neEbRK4Vec3I1SE" title="Imath::Vec3::operator!=::S">S</a>> &<em>v</em><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4I0ENK5Imath4Vec3neEbRK4Vec3I1SE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Inequality. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4NK5Imath4Vec317equalWithAbsErrorERK4Vec3I1TE1T"> <span id="_CPPv3NK5Imath4Vec317equalWithAbsErrorERK4Vec3I1TE1T"></span><span id="_CPPv2NK5Imath4Vec317equalWithAbsErrorERK4Vec3I1TE1T"></span><span id="Imath::Vec3::equalWithAbsError__Vec3:T:CR.TCCE"></span><span class="target" id="class_imath_1_1_vec3_1a6a2ca810a58bacc55756105c5ed17a5a"></span><em class="property">inline</em> <em class="property">constexpr</em> bool <code class="sig-name descname">equalWithAbsError</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3::T">T</a>> &<em>v</em>, <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3::T">T</a> <em>e</em><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4NK5Imath4Vec317equalWithAbsErrorERK4Vec3I1TE1T" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Compare two matrices and test if they are “approximately equal”: </p> <p><dl class="simple"> <dt><strong>Return</strong></dt><dd><p>True if the coefficients of this and <code class="docutils literal notranslate"><span class="pre">m</span></code> are the same with an absolute error of no more than e, i.e., for all i, j: <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="nb">abs</span> <span class="p">(</span><span class="n">this</span><span class="p">[</span><span class="n">i</span><span class="p">][</span><span class="n">j</span><span class="p">]</span> <span class="o">-</span> <span class="n">m</span><span class="p">[</span><span class="n">i</span><span class="p">][</span><span class="n">j</span><span class="p">])</span> <span class="o"><=</span> <span class="n">e</span> </pre></div> </div> </p> </dd> </dl> </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4NK5Imath4Vec317equalWithRelErrorERK4Vec3I1TE1T"> <span id="_CPPv3NK5Imath4Vec317equalWithRelErrorERK4Vec3I1TE1T"></span><span id="_CPPv2NK5Imath4Vec317equalWithRelErrorERK4Vec3I1TE1T"></span><span id="Imath::Vec3::equalWithRelError__Vec3:T:CR.TCCE"></span><span class="target" id="class_imath_1_1_vec3_1ac4de8f1899e0d010c11395e39205c9ce"></span><em class="property">inline</em> <em class="property">constexpr</em> bool <code class="sig-name descname">equalWithRelError</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3::T">T</a>> &<em>v</em>, <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3::T">T</a> <em>e</em><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4NK5Imath4Vec317equalWithRelErrorERK4Vec3I1TE1T" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Compare two matrices and test if they are “approximately equal”: </p> <p><dl class="simple"> <dt><strong>Return</strong></dt><dd><p>True if the coefficients of this and m are the same with a relative error of no more than e, i.e., for all i, j: <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="nb">abs</span> <span class="p">(</span><span class="n">this</span><span class="p">[</span><span class="n">i</span><span class="p">]</span> <span class="o">-</span> <span class="n">v</span><span class="p">[</span><span class="n">i</span><span class="p">][</span><span class="n">j</span><span class="p">])</span> <span class="o"><=</span> <span class="n">e</span> <span class="o">*</span> <span class="nb">abs</span> <span class="p">(</span><span class="n">this</span><span class="p">[</span><span class="n">i</span><span class="p">][</span><span class="n">j</span><span class="p">])</span> </pre></div> </div> </p> </dd> </dl> </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4NK5Imath4Vec33dotERK4Vec3"> <span id="_CPPv3NK5Imath4Vec33dotERK4Vec3"></span><span id="_CPPv2NK5Imath4Vec33dotERK4Vec3"></span><span id="Imath::Vec3::dot__Vec3CRCCE"></span><span class="target" id="class_imath_1_1_vec3_1af95d2127109ae3cd528f602fda11f3a9"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3::T">T</a> <code class="sig-name descname">dot</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a> &<em>v</em><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4NK5Imath4Vec33dotERK4Vec3" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Dot product. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4NK5Imath4Vec3eoERK4Vec3"> <span id="_CPPv3NK5Imath4Vec3eoERK4Vec3"></span><span id="_CPPv2NK5Imath4Vec3eoERK4Vec3"></span><span id="Imath::Vec3::xor-operator__Vec3CRCCE"></span><span class="target" id="class_imath_1_1_vec3_1a5d8ea2792f1df58bb8d2b2312aa65b6b"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3::T">T</a> <code class="sig-name descname">operator^</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a> &<em>v</em><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4NK5Imath4Vec3eoERK4Vec3" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Dot product. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4NK5Imath4Vec35crossERK4Vec3"> <span id="_CPPv3NK5Imath4Vec35crossERK4Vec3"></span><span id="_CPPv2NK5Imath4Vec35crossERK4Vec3"></span><span id="Imath::Vec3::cross__Vec3CRCCE"></span><span class="target" id="class_imath_1_1_vec3_1a476b0eb4f2938f17ddef0dba24f8da33"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a> <code class="sig-name descname">cross</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a> &<em>v</em><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4NK5Imath4Vec35crossERK4Vec3" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Right-handed cross product. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath4Vec3rMERK4Vec3"> <span id="_CPPv3N5Imath4Vec3rMERK4Vec3"></span><span id="_CPPv2N5Imath4Vec3rMERK4Vec3"></span><span id="Imath::Vec3::mod-assign-operator__Vec3CRCE"></span><span class="target" id="class_imath_1_1_vec3_1a3fa94ee6ee76ccb1615b4af81432b1aa"></span><em class="property">inline</em> <em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a> &<code class="sig-name descname">operator%=</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a> &<em>v</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath4Vec3rMERK4Vec3" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Right-handed cross product. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4NK5Imath4Vec3rmERK4Vec3"> <span id="_CPPv3NK5Imath4Vec3rmERK4Vec3"></span><span id="_CPPv2NK5Imath4Vec3rmERK4Vec3"></span><span id="Imath::Vec3::mod-operator__Vec3CRCCE"></span><span class="target" id="class_imath_1_1_vec3_1af1b8e9c14583cc3212c458d5a02bb755"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a> <code class="sig-name descname">operator%</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a> &<em>v</em><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4NK5Imath4Vec3rmERK4Vec3" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Right-handed cross product. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath4Vec3pLERK4Vec3"> <span id="_CPPv3N5Imath4Vec3pLERK4Vec3"></span><span id="_CPPv2N5Imath4Vec3pLERK4Vec3"></span><span id="Imath::Vec3::add-assign-operator__Vec3CRCE"></span><span class="target" id="class_imath_1_1_vec3_1a12173192e2543cce9582fc3877b037bc"></span><em class="property">inline</em> <em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a> &<code class="sig-name descname">operator+=</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a> &<em>v</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath4Vec3pLERK4Vec3" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Component-wise addition. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4NK5Imath4Vec3plERK4Vec3"> <span id="_CPPv3NK5Imath4Vec3plERK4Vec3"></span><span id="_CPPv2NK5Imath4Vec3plERK4Vec3"></span><span id="Imath::Vec3::add-operator__Vec3CRCCE"></span><span class="target" id="class_imath_1_1_vec3_1a0b6d86930b404ffd0f56c97f736e431b"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a> <code class="sig-name descname">operator+</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a> &<em>v</em><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4NK5Imath4Vec3plERK4Vec3" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Component-wise addition. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath4Vec3mIERK4Vec3"> <span id="_CPPv3N5Imath4Vec3mIERK4Vec3"></span><span id="_CPPv2N5Imath4Vec3mIERK4Vec3"></span><span id="Imath::Vec3::sub-assign-operator__Vec3CRCE"></span><span class="target" id="class_imath_1_1_vec3_1afd284277fcf7c6e30d544d8d451240dc"></span><em class="property">inline</em> <em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a> &<code class="sig-name descname">operator-=</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a> &<em>v</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath4Vec3mIERK4Vec3" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Component-wise subtraction. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4NK5Imath4Vec3miERK4Vec3"> <span id="_CPPv3NK5Imath4Vec3miERK4Vec3"></span><span id="_CPPv2NK5Imath4Vec3miERK4Vec3"></span><span id="Imath::Vec3::sub-operator__Vec3CRCCE"></span><span class="target" id="class_imath_1_1_vec3_1a892e6f432bdefa30205efaa7644690b5"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a> <code class="sig-name descname">operator-</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a> &<em>v</em><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4NK5Imath4Vec3miERK4Vec3" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Component-wise subtraction. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4NK5Imath4Vec3miEv"> <span id="_CPPv3NK5Imath4Vec3miEv"></span><span id="_CPPv2NK5Imath4Vec3miEv"></span><span id="Imath::Vec3::sub-operatorCCE"></span><span class="target" id="class_imath_1_1_vec3_1a278df317d3fff804738d572dbd6b44c4"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a> <code class="sig-name descname">operator-</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="#_CPPv4NK5Imath4Vec3miEv" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Component-wise multiplication by -1. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath4Vec36negateEv"> <span id="_CPPv3N5Imath4Vec36negateEv"></span><span id="_CPPv2N5Imath4Vec36negateEv"></span><span id="Imath::Vec3::negateCE"></span><span class="target" id="class_imath_1_1_vec3_1af046d5d15eb806b324508992c700f5c6"></span><em class="property">inline</em> <em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a> &<code class="sig-name descname">negate</code><span class="sig-paren">(</span><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath4Vec36negateEv" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Component-wise multiplication by -1. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath4Vec3mLERK4Vec3"> <span id="_CPPv3N5Imath4Vec3mLERK4Vec3"></span><span id="_CPPv2N5Imath4Vec3mLERK4Vec3"></span><span id="Imath::Vec3::mul-assign-operator__Vec3CRCE"></span><span class="target" id="class_imath_1_1_vec3_1a4eaa9b5c5498ad3b76a53ece30135a91"></span><em class="property">inline</em> <em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a> &<code class="sig-name descname">operator*=</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a> &<em>v</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath4Vec3mLERK4Vec3" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Component-wise multiplication. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath4Vec3mLE1T"> <span id="_CPPv3N5Imath4Vec3mLE1T"></span><span id="_CPPv2N5Imath4Vec3mLE1T"></span><span id="Imath::Vec3::mul-assign-operator__TCE"></span><span class="target" id="class_imath_1_1_vec3_1a107000bb10d47a274857c8c21eee9141"></span><em class="property">inline</em> <em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a> &<code class="sig-name descname">operator*=</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3::T">T</a> <em>a</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath4Vec3mLE1T" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Component-wise multiplication. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4NK5Imath4Vec3mlERK4Vec3"> <span id="_CPPv3NK5Imath4Vec3mlERK4Vec3"></span><span id="_CPPv2NK5Imath4Vec3mlERK4Vec3"></span><span id="Imath::Vec3::mul-operator__Vec3CRCCE"></span><span class="target" id="class_imath_1_1_vec3_1aad7d9a647d8e05dbd2fa1bc3f8045c13"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a> <code class="sig-name descname">operator*</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a> &<em>v</em><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4NK5Imath4Vec3mlERK4Vec3" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Component-wise multiplication. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4NK5Imath4Vec3mlE1T"> <span id="_CPPv3NK5Imath4Vec3mlE1T"></span><span id="_CPPv2NK5Imath4Vec3mlE1T"></span><span id="Imath::Vec3::mul-operator__TCCE"></span><span class="target" id="class_imath_1_1_vec3_1a6259645ad7e0c9febdabb61d62ac8546"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a> <code class="sig-name descname">operator*</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3::T">T</a> <em>a</em><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4NK5Imath4Vec3mlE1T" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Component-wise multiplication. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath4Vec3dVERK4Vec3"> <span id="_CPPv3N5Imath4Vec3dVERK4Vec3"></span><span id="_CPPv2N5Imath4Vec3dVERK4Vec3"></span><span id="Imath::Vec3::div-assign-operator__Vec3CRCE"></span><span class="target" id="class_imath_1_1_vec3_1a0e891843d52917e925982371cf1bf48e"></span><em class="property">inline</em> <em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a> &<code class="sig-name descname">operator/=</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a> &<em>v</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath4Vec3dVERK4Vec3" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Component-wise division. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath4Vec3dVE1T"> <span id="_CPPv3N5Imath4Vec3dVE1T"></span><span id="_CPPv2N5Imath4Vec3dVE1T"></span><span id="Imath::Vec3::div-assign-operator__TCE"></span><span class="target" id="class_imath_1_1_vec3_1aae5f3e9998169db16179bc336d85924d"></span><em class="property">inline</em> <em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a> &<code class="sig-name descname">operator/=</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3::T">T</a> <em>a</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath4Vec3dVE1T" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Component-wise division. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4NK5Imath4Vec3dvERK4Vec3"> <span id="_CPPv3NK5Imath4Vec3dvERK4Vec3"></span><span id="_CPPv2NK5Imath4Vec3dvERK4Vec3"></span><span id="Imath::Vec3::div-operator__Vec3CRCCE"></span><span class="target" id="class_imath_1_1_vec3_1af8fc4a791f57b5d01e2b1afdca46b10d"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a> <code class="sig-name descname">operator/</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a> &<em>v</em><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4NK5Imath4Vec3dvERK4Vec3" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Component-wise division. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4NK5Imath4Vec3dvE1T"> <span id="_CPPv3NK5Imath4Vec3dvE1T"></span><span id="_CPPv2NK5Imath4Vec3dvE1T"></span><span id="Imath::Vec3::div-operator__TCCE"></span><span class="target" id="class_imath_1_1_vec3_1afa4a48db260a326f8b2ae3906648b29a"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a> <code class="sig-name descname">operator/</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3::T">T</a> <em>a</em><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4NK5Imath4Vec3dvE1T" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Component-wise division. </p> </dd></dl> </div> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric">Query and Manipulation</p> <dl class="cpp function"> <dt id="_CPPv4NK5Imath4Vec36lengthEv"> <span id="_CPPv3NK5Imath4Vec36lengthEv"></span><span id="_CPPv2NK5Imath4Vec36lengthEv"></span><span id="Imath::Vec3::lengthC"></span><span class="target" id="class_imath_1_1_vec3_1aa2232bf56d4cfc3ee019f88a9e72e809"></span><em class="property">inline</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3::T">T</a> <code class="sig-name descname">length</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="#_CPPv4NK5Imath4Vec36lengthEv" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Return the Euclidean norm. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4NK5Imath4Vec37length2Ev"> <span id="_CPPv3NK5Imath4Vec37length2Ev"></span><span id="_CPPv2NK5Imath4Vec37length2Ev"></span><span id="Imath::Vec3::length2CCE"></span><span class="target" id="class_imath_1_1_vec3_1a9a15b3551f46fdc24e36e21dfb2afe7c"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3::T">T</a> <code class="sig-name descname">length2</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="#_CPPv4NK5Imath4Vec37length2Ev" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Return the square of the Euclidean norm, i.e. </p> <p>the dot product with itself. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath4Vec39normalizeEv"> <span id="_CPPv3N5Imath4Vec39normalizeEv"></span><span id="_CPPv2N5Imath4Vec39normalizeEv"></span><span id="Imath::Vec3::normalize"></span><span class="target" id="class_imath_1_1_vec3_1a75264e1dacb283c579c12510e3d24910"></span><em class="property">inline</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a> &<code class="sig-name descname">normalize</code><span class="sig-paren">(</span><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath4Vec39normalizeEv" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Normalize in place. If <a class="reference internal" href="#class_imath_1_1_vec3_1aa2232bf56d4cfc3ee019f88a9e72e809"><span class="std std-ref">length()</span></a>==0, return a null vector. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath4Vec312normalizeExcEv"> <span id="_CPPv3N5Imath4Vec312normalizeExcEv"></span><span id="_CPPv2N5Imath4Vec312normalizeExcEv"></span><span id="Imath::Vec3::normalizeExc"></span><span class="target" id="class_imath_1_1_vec3_1a10d5749d7a4516ceed279e974e3c5d2e"></span><em class="property">inline</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a> &<code class="sig-name descname">normalizeExc</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv4N5Imath4Vec312normalizeExcEv" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Normalize in place. If <a class="reference internal" href="#class_imath_1_1_vec3_1aa2232bf56d4cfc3ee019f88a9e72e809"><span class="std std-ref">length()</span></a>==0, throw an exception. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath4Vec316normalizeNonNullEv"> <span id="_CPPv3N5Imath4Vec316normalizeNonNullEv"></span><span id="_CPPv2N5Imath4Vec316normalizeNonNullEv"></span><span id="Imath::Vec3::normalizeNonNull"></span><span class="target" id="class_imath_1_1_vec3_1ae3c27f7a6ad6626dbf5ded93a2eef52a"></span><em class="property">inline</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a> &<code class="sig-name descname">normalizeNonNull</code><span class="sig-paren">(</span><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath4Vec316normalizeNonNullEv" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Normalize without any checks for <a class="reference internal" href="#class_imath_1_1_vec3_1aa2232bf56d4cfc3ee019f88a9e72e809"><span class="std std-ref">length()</span></a>==0. </p> <p>Slightly faster than the other normalization routines, but if v.length() is 0.0, the result is undefined. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4NK5Imath4Vec310normalizedEv"> <span id="_CPPv3NK5Imath4Vec310normalizedEv"></span><span id="_CPPv2NK5Imath4Vec310normalizedEv"></span><span id="Imath::Vec3::normalizedC"></span><span class="target" id="class_imath_1_1_vec3_1a7710f17c4a63456b3a8a891c80f88e73"></span><em class="property">inline</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3::T">T</a>> <code class="sig-name descname">normalized</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="#_CPPv4NK5Imath4Vec310normalizedEv" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Return a normalized vector. Does not modify *this. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4NK5Imath4Vec313normalizedExcEv"> <span id="_CPPv3NK5Imath4Vec313normalizedExcEv"></span><span id="_CPPv2NK5Imath4Vec313normalizedExcEv"></span><span id="Imath::Vec3::normalizedExcC"></span><span class="target" id="class_imath_1_1_vec3_1aaf511a42db7fb744f46e9ac705f55f7d"></span><em class="property">inline</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3::T">T</a>> <code class="sig-name descname">normalizedExc</code><span class="sig-paren">(</span><span class="sig-paren">)</span> <em class="property">const</em><a class="headerlink" href="#_CPPv4NK5Imath4Vec313normalizedExcEv" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Return a normalized vector. </p> <p>Does not modify *this. Throw an exception if <a class="reference internal" href="#class_imath_1_1_vec3_1aa2232bf56d4cfc3ee019f88a9e72e809"><span class="std std-ref">length()</span></a>==0. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4NK5Imath4Vec317normalizedNonNullEv"> <span id="_CPPv3NK5Imath4Vec317normalizedNonNullEv"></span><span id="_CPPv2NK5Imath4Vec317normalizedNonNullEv"></span><span id="Imath::Vec3::normalizedNonNullC"></span><span class="target" id="class_imath_1_1_vec3_1ae60d612ab0832636a34468d04ed73e24"></span><em class="property">inline</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3::T">T</a>> <code class="sig-name descname">normalizedNonNull</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="#_CPPv4NK5Imath4Vec317normalizedNonNullEv" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Return a normalized vector. </p> <p>Does not modify *this, and does not check for <a class="reference internal" href="#class_imath_1_1_vec3_1aa2232bf56d4cfc3ee019f88a9e72e809"><span class="std std-ref">length()</span></a>==0. Slightly faster than the other normalization routines, but if v.length() is 0.0, the result is undefined. </p> </dd></dl> </div> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric">Numeric Limits</p> <dl class="cpp function"> <dt> <span class="target" id="class_imath_1_1_vec3_1a0a9c7feac39b58279490446fbc764b73"></span><code class="sig-name descname">static inline constexpr static T baseTypeLowest () noexcept</code></dt> <dd><p>Largest possible negative value. </p> </dd></dl> <dl class="cpp function"> <dt> <span class="target" id="class_imath_1_1_vec3_1a1baa0ea08e63ce18c221c0f2696fc640"></span><code class="sig-name descname">static inline constexpr static T baseTypeMax () noexcept</code></dt> <dd><p>Largest possible positive value. </p> </dd></dl> <dl class="cpp function"> <dt> <span class="target" id="class_imath_1_1_vec3_1a979e24ca9d22d59f980d1bf2ae0290dc"></span><code class="sig-name descname">static inline constexpr static T baseTypeSmallest () noexcept</code></dt> <dd><p>Smallest possible positive value. </p> </dd></dl> <dl class="cpp function"> <dt> <span class="target" id="class_imath_1_1_vec3_1af0c4c2e2bd3912f719ae24be89609df6"></span><code class="sig-name descname">static inline constexpr static T baseTypeEpsilon () noexcept</code></dt> <dd><p>Smallest possible e for which 1+e != 1. </p> </dd></dl> </div> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric">Public Types</p> <dl class="cpp type"> <dt id="_CPPv4N5Imath4Vec38BaseTypeE"> <span id="_CPPv3N5Imath4Vec38BaseTypeE"></span><span id="_CPPv2N5Imath4Vec38BaseTypeE"></span><span id="Imath::Vec3::BaseType"></span><span class="target" id="class_imath_1_1_vec3_1a9531a9290a7fcb356b5afc4cc6a2b1f5"></span><em class="property">typedef </em><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3::T">T</a> <code class="sig-name descname">BaseType</code><a class="headerlink" href="#_CPPv4N5Imath4Vec38BaseTypeE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>The base type: In templates that accept a parameter <code class="docutils literal notranslate"><span class="pre">V</span></code>, you can refer to <code class="docutils literal notranslate"><span class="pre">T</span></code> as <code class="docutils literal notranslate"><span class="pre">V::BaseType</span></code> </p> </dd></dl> </div> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric">Public Functions</p> <dl class="cpp function"> <dt id="_CPPv4N5Imath4Vec3ixEi"> <span id="_CPPv3N5Imath4Vec3ixEi"></span><span id="_CPPv2N5Imath4Vec3ixEi"></span><span id="Imath::Vec3::subscript-operator__iCE"></span><span class="target" id="class_imath_1_1_vec3_1ad3ceffac91a1a97d188cf65b2c4dd404"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3::T">T</a> &<code class="sig-name descname">operator[]</code><span class="sig-paren">(</span>int <em>i</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath4Vec3ixEi" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Element access by index. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4NK5Imath4Vec3ixEi"> <span id="_CPPv3NK5Imath4Vec3ixEi"></span><span id="_CPPv2NK5Imath4Vec3ixEi"></span><span id="Imath::Vec3::subscript-operator__iCCE"></span><span class="target" id="class_imath_1_1_vec3_1afba4fd0523cbe27b611631a570569b7c"></span><em class="property">inline</em> <em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3::T">T</a> &<code class="sig-name descname">operator[]</code><span class="sig-paren">(</span>int <em>i</em><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4NK5Imath4Vec3ixEi" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Element access by index. </p> </dd></dl> <dl class="cpp function"> <dt> <span class="target" id="class_imath_1_1_vec3_1a555d0e5d0b2409f1929af6b8e3a0fe4e"></span>short <code class="sig-name descname">length</code><span class="sig-paren">(</span><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em> = delete<br /></dt> <dd></dd></dl> <dl class="cpp function"> <dt> <span class="target" id="class_imath_1_1_vec3_1ac5b7148f3059596e010de33feb415411"></span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><short> &<code class="sig-name descname">normalize</code><span class="sig-paren">(</span><span class="sig-paren">)</span> <em class="property">noexcept</em> = delete<br /></dt> <dd></dd></dl> <dl class="cpp function"> <dt> <span class="target" id="class_imath_1_1_vec3_1a3079f11279b504ad8aadc9b560ee0681"></span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><short> &<code class="sig-name descname">normalizeExc</code><span class="sig-paren">(</span><span class="sig-paren">)</span> = delete<br /></dt> <dd></dd></dl> <dl class="cpp function"> <dt> <span class="target" id="class_imath_1_1_vec3_1aa7c27ca202b3cba258a5ac359f44b300"></span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><short> &<code class="sig-name descname">normalizeNonNull</code><span class="sig-paren">(</span><span class="sig-paren">)</span> <em class="property">noexcept</em> = delete<br /></dt> <dd></dd></dl> <dl class="cpp function"> <dt> <span class="target" id="class_imath_1_1_vec3_1a123a4e6092d15d994f2521462fcc59c7"></span><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><short> <code class="sig-name descname">normalized</code><span class="sig-paren">(</span><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em> = delete<br /></dt> <dd></dd></dl> <dl class="cpp function"> <dt> <span class="target" id="class_imath_1_1_vec3_1ac4eebc5eba683a70520ef7d7fe98fbdd"></span><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><short> <code class="sig-name descname">normalizedExc</code><span class="sig-paren">(</span><span class="sig-paren">)</span> <em class="property">const</em> = delete<br /></dt> <dd></dd></dl> <dl class="cpp function"> <dt> <span class="target" id="class_imath_1_1_vec3_1a32f5ac19fa54b138bb1c9feb80e97897"></span><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><short> <code class="sig-name descname">normalizedNonNull</code><span class="sig-paren">(</span><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em> = delete<br /></dt> <dd></dd></dl> <dl class="cpp function"> <dt> <span class="target" id="class_imath_1_1_vec3_1a2dc56dbd26ad982ca3fd50c301a23100"></span>int <code class="sig-name descname">length</code><span class="sig-paren">(</span><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em> = delete<br /></dt> <dd></dd></dl> <dl class="cpp function"> <dt> <span class="target" id="class_imath_1_1_vec3_1a5659163f98ed589a94f77c6c3e37cdd1"></span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><int> &<code class="sig-name descname">normalize</code><span class="sig-paren">(</span><span class="sig-paren">)</span> <em class="property">noexcept</em> = delete<br /></dt> <dd></dd></dl> <dl class="cpp function"> <dt> <span class="target" id="class_imath_1_1_vec3_1ad34692d2eb87b119aa7c6d96ff96eeee"></span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><int> &<code class="sig-name descname">normalizeExc</code><span class="sig-paren">(</span><span class="sig-paren">)</span> = delete<br /></dt> <dd></dd></dl> <dl class="cpp function"> <dt> <span class="target" id="class_imath_1_1_vec3_1acdd2425d800b859575fbc38cd2a6edee"></span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><int> &<code class="sig-name descname">normalizeNonNull</code><span class="sig-paren">(</span><span class="sig-paren">)</span> <em class="property">noexcept</em> = delete<br /></dt> <dd></dd></dl> <dl class="cpp function"> <dt> <span class="target" id="class_imath_1_1_vec3_1a99371cb6f45a6a7c56488a989ebd5915"></span><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><int> <code class="sig-name descname">normalized</code><span class="sig-paren">(</span><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em> = delete<br /></dt> <dd></dd></dl> <dl class="cpp function"> <dt> <span class="target" id="class_imath_1_1_vec3_1a29787e3d0c549381cf6b3a688d08b1e1"></span><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><int> <code class="sig-name descname">normalizedExc</code><span class="sig-paren">(</span><span class="sig-paren">)</span> <em class="property">const</em> = delete<br /></dt> <dd></dd></dl> <dl class="cpp function"> <dt> <span class="target" id="class_imath_1_1_vec3_1ad3866fed7f959579c898e456c0a481a6"></span><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><int> <code class="sig-name descname">normalizedNonNull</code><span class="sig-paren">(</span><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em> = delete<br /></dt> <dd></dd></dl> <dl class="cpp function"> <dt> <span class="target" id="class_imath_1_1_vec3_1ab17d8f0e4f9845c1e121c514eb638c70"></span>int64_t <code class="sig-name descname">length</code><span class="sig-paren">(</span><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em> = delete<br /></dt> <dd></dd></dl> <dl class="cpp function"> <dt> <span class="target" id="class_imath_1_1_vec3_1a180ec8be1344096e9df6233da71ab471"></span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><int64_t> &<code class="sig-name descname">normalize</code><span class="sig-paren">(</span><span class="sig-paren">)</span> <em class="property">noexcept</em> = delete<br /></dt> <dd></dd></dl> <dl class="cpp function"> <dt> <span class="target" id="class_imath_1_1_vec3_1a3710abddf40101359dc7f984b19530eb"></span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><int64_t> &<code class="sig-name descname">normalizeExc</code><span class="sig-paren">(</span><span class="sig-paren">)</span> = delete<br /></dt> <dd></dd></dl> <dl class="cpp function"> <dt> <span class="target" id="class_imath_1_1_vec3_1abd3576c1fe5d24acf11b616a528d0957"></span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><int64_t> &<code class="sig-name descname">normalizeNonNull</code><span class="sig-paren">(</span><span class="sig-paren">)</span> <em class="property">noexcept</em> = delete<br /></dt> <dd></dd></dl> <dl class="cpp function"> <dt> <span class="target" id="class_imath_1_1_vec3_1ad1ef2762f9d9028a8b417b727e07101d"></span><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><int64_t> <code class="sig-name descname">normalized</code><span class="sig-paren">(</span><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em> = delete<br /></dt> <dd></dd></dl> <dl class="cpp function"> <dt> <span class="target" id="class_imath_1_1_vec3_1aa65e7f911177265a5e4651186c55cd35"></span><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><int64_t> <code class="sig-name descname">normalizedExc</code><span class="sig-paren">(</span><span class="sig-paren">)</span> <em class="property">const</em> = delete<br /></dt> <dd></dd></dl> <dl class="cpp function"> <dt> <span class="target" id="class_imath_1_1_vec3_1aa960a0cbbcde1f3e3eb9b1d5d4b25dbc"></span><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><int64_t> <code class="sig-name descname">normalizedNonNull</code><span class="sig-paren">(</span><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em> = delete<br /></dt> <dd></dd></dl> </div> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric">Public Static Functions</p> <dl class="cpp function"> <dt> <span class="target" id="class_imath_1_1_vec3_1af83bbe98744e7ff500826878cba4ac92"></span><code class="sig-name descname">static inline constexpr static unsigned int dimensions () noexcept</code></dt> <dd><p>Return the number of dimensions, i.e. 3. </p> </dd></dl> </div> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4I0EN5ImathlsERNSt7ostreamERNSt7ostreamERK4Vec3I1TE"> <span id="_CPPv3I0EN5ImathlsERNSt7ostreamERK4Vec3I1TE"></span><span id="_CPPv2I0EN5ImathlsERNSt7ostreamERK4Vec3I1TE"></span>template<class <code class="sig-name descname">T</code>><br /><span class="target" id="_imath_vec_8h_1a73ee1d51df6b0ff2487f82475faaffaf"></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="#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5ImathlsERNSt7ostreamERNSt7ostreamERK4Vec3I1TE" title="Imath::operator<<::T">T</a>> &<em>v</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv4I0EN5ImathlsERNSt7ostreamERNSt7ostreamERK4Vec3I1TE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Stream output, as “(x y z)”. </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="Vec2.html" title="previous chapter">Vec2</a></p> <h4>Next topic</h4> <p class="topless"><a href="Vec4.html" title="next chapter">Vec4</a></p> <div role="note" aria-label="source link"> <h3>This Page</h3> <ul class="this-page-menu"> <li><a href="../_sources/classes/Vec3.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="Vec4.html" title="Vec4" >next</a> |</li> <li class="right" > <a href="Vec2.html" title="Vec2" >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="">Vec3</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
|
�а�тройка