%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/thread-self/root/proc/self/root/usr/share/doc/imath-devel/html/classes/
Upload File :
Create Path :
Current File : //proc/thread-self/root/proc/self/root/usr/share/doc/imath-devel/html/classes/Vec4.html


<!doctype html>

<html>
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Vec4 &#8212; 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="Box Functions" href="../functions/box.html" />
    <link rel="prev" title="Vec3" href="Vec3.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="../functions/box.html" title="Box Functions"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="Vec3.html" title="Vec3"
             accesskey="P">previous</a> |</li>
        <li class="nav-item nav-item-0"><a href="../index.html">Imath</a> &#187;</li>
        <li class="nav-item nav-item-this"><a href="">Vec4</a></li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body" role="main">
            
  <div class="section" id="vec4">
<h1>Vec4<a class="headerlink" href="#vec4" title="Permalink to this headline">¶</a></h1>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="c1">#include &lt;Imath/ImathVec.h&gt;</span>
</pre></div>
</div>
<p>The <code class="docutils literal notranslate"><span class="pre">Vec4</span></code> class template represents a 4D 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">Vec4</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">&lt;Imath/ImathVec.h&gt;</span><span class="cp"></span>

<span class="kt">void</span>
<span class="nf">vec4_example</span><span class="p">()</span>
<span class="p">{</span>
    <span class="n">Imath</span><span class="o">::</span><span class="n">V4f</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="mf">4.0f</span><span class="p">);</span>
    <span class="n">Imath</span><span class="o">::</span><span class="n">V4f</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">b</span><span class="p">.</span><span class="n">w</span> <span class="o">=</span> <span class="n">a</span><span class="p">[</span><span class="mi">3</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="_CPPv4N5Imath3V4sE">
<span id="_CPPv3N5Imath3V4sE"></span><span id="_CPPv2N5Imath3V4sE"></span><span id="Imath::V4s"></span><span class="target" id="_imath_vec_8h_1ae49ece19e36d8209156dda722b6f6cdb"></span><em class="property">typedef </em><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a>&lt;short&gt; <code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">V4s</code><a class="headerlink" href="#_CPPv4N5Imath3V4sE" title="Permalink to this definition">¶</a><br /></dt>
<dd><p><a class="reference internal" href="#class_imath_1_1_vec4"><span class="std std-ref">Vec4</span></a> of short. </p>
</dd></dl>

<dl class="cpp type">
<dt id="_CPPv4N5Imath3V4iE">
<span id="_CPPv3N5Imath3V4iE"></span><span id="_CPPv2N5Imath3V4iE"></span><span id="Imath::V4i"></span><span class="target" id="_imath_vec_8h_1afe53d1bdbe7d3321389d4e350a9b425d"></span><em class="property">typedef </em><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a>&lt;int&gt; <code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">V4i</code><a class="headerlink" href="#_CPPv4N5Imath3V4iE" title="Permalink to this definition">¶</a><br /></dt>
<dd><p><a class="reference internal" href="#class_imath_1_1_vec4"><span class="std std-ref">Vec4</span></a> of integer. </p>
</dd></dl>

<dl class="cpp type">
<dt id="_CPPv4N5Imath5V4i64E">
<span id="_CPPv3N5Imath5V4i64E"></span><span id="_CPPv2N5Imath5V4i64E"></span><span id="Imath::V4i64"></span><span class="target" id="_imath_vec_8h_1a67f2f5e1f6c57185f81a480ebac185f2"></span><em class="property">typedef </em><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a>&lt;int64_t&gt; <code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">V4i64</code><a class="headerlink" href="#_CPPv4N5Imath5V4i64E" title="Permalink to this definition">¶</a><br /></dt>
<dd><p><a class="reference internal" href="#class_imath_1_1_vec4"><span class="std std-ref">Vec4</span></a> of int64_t. </p>
</dd></dl>

<dl class="cpp type">
<dt id="_CPPv4N5Imath3V4fE">
<span id="_CPPv3N5Imath3V4fE"></span><span id="_CPPv2N5Imath3V4fE"></span><span id="Imath::V4f"></span><span class="target" id="_imath_vec_8h_1a804f5f1a3e2d8b3318cd43717ac91edb"></span><em class="property">typedef </em><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a>&lt;float&gt; <code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">V4f</code><a class="headerlink" href="#_CPPv4N5Imath3V4fE" title="Permalink to this definition">¶</a><br /></dt>
<dd><p><a class="reference internal" href="#class_imath_1_1_vec4"><span class="std std-ref">Vec4</span></a> of float. </p>
</dd></dl>

<dl class="cpp type">
<dt id="_CPPv4N5Imath3V4dE">
<span id="_CPPv3N5Imath3V4dE"></span><span id="_CPPv2N5Imath3V4dE"></span><span id="Imath::V4d"></span><span class="target" id="_imath_vec_8h_1a718a8c408de613924ff74fe3fe685e83"></span><em class="property">typedef </em><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a>&lt;double&gt; <code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">V4d</code><a class="headerlink" href="#_CPPv4N5Imath3V4dE" title="Permalink to this definition">¶</a><br /></dt>
<dd><p><a class="reference internal" href="#class_imath_1_1_vec4"><span class="std std-ref">Vec4</span></a> of double. </p>
</dd></dl>

<dl class="cpp class">
<dt id="_CPPv4I0EN5Imath4Vec4E">
<span id="_CPPv3I0EN5Imath4Vec4E"></span><span id="_CPPv2I0EN5Imath4Vec4E"></span>template&lt;class <code class="sig-name descname">T</code>&gt;<br /><span class="target" id="class_imath_1_1_vec4"></span><em class="property">class </em><code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">Vec4</code><a class="headerlink" href="#_CPPv4I0EN5Imath4Vec4E" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>4-element vector </p>
<div class="breathe-sectiondef docutils container">
<p class="breathe-sectiondef-title rubric">Direct access to elements</p>
<dl class="cpp var">
<dt id="_CPPv4N5Imath4Vec41xE">
<span id="_CPPv3N5Imath4Vec41xE"></span><span id="_CPPv2N5Imath4Vec41xE"></span><span id="Imath::Vec4::x__T"></span><span class="target" id="class_imath_1_1_vec4_1a4ea3460eb482aa0479dc517a3d15b49a"></span><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4::T">T</a> <code class="sig-name descname">x</code><a class="headerlink" href="#_CPPv4N5Imath4Vec41xE" title="Permalink to this definition">¶</a><br /></dt>
<dd></dd></dl>

<dl class="cpp var">
<dt id="_CPPv4N5Imath4Vec41yE">
<span id="_CPPv3N5Imath4Vec41yE"></span><span id="_CPPv2N5Imath4Vec41yE"></span><span id="Imath::Vec4::y__T"></span><span class="target" id="class_imath_1_1_vec4_1a42b46daafd415a7fe88bf686c8751f82"></span><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4::T">T</a> <code class="sig-name descname">y</code><a class="headerlink" href="#_CPPv4N5Imath4Vec41yE" title="Permalink to this definition">¶</a><br /></dt>
<dd></dd></dl>

<dl class="cpp var">
<dt id="_CPPv4N5Imath4Vec41zE">
<span id="_CPPv3N5Imath4Vec41zE"></span><span id="_CPPv2N5Imath4Vec41zE"></span><span id="Imath::Vec4::z__T"></span><span class="target" id="class_imath_1_1_vec4_1a05564925be3f7deeee42d484e3aea4be"></span><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4::T">T</a> <code class="sig-name descname">z</code><a class="headerlink" href="#_CPPv4N5Imath4Vec41zE" title="Permalink to this definition">¶</a><br /></dt>
<dd></dd></dl>

<dl class="cpp var">
<dt id="_CPPv4N5Imath4Vec41wE">
<span id="_CPPv3N5Imath4Vec41wE"></span><span id="_CPPv2N5Imath4Vec41wE"></span><span id="Imath::Vec4::w__T"></span><span class="target" id="class_imath_1_1_vec4_1af221ac9c6137c54ae92581ed90315926"></span><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4::T">T</a> <code class="sig-name descname">w</code><a class="headerlink" href="#_CPPv4N5Imath4Vec41wE" 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="_CPPv4N5Imath4Vec44Vec4Ev">
<span id="_CPPv3N5Imath4Vec44Vec4Ev"></span><span id="_CPPv2N5Imath4Vec44Vec4Ev"></span><span id="Imath::Vec4::Vec4"></span><span class="target" id="class_imath_1_1_vec4_1ab62d5ac7e2afa0123675d040ee61f590"></span><em class="property">inline</em> <code class="sig-name descname">Vec4</code><span class="sig-paren">(</span><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath4Vec44Vec4Ev" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Uninitialized by default. </p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv4N5Imath4Vec44Vec4E1T">
<span id="_CPPv3N5Imath4Vec44Vec4E1T"></span><span id="_CPPv2N5Imath4Vec44Vec4E1T"></span><span id="Imath::Vec4::Vec4__TCE"></span><span class="target" id="class_imath_1_1_vec4_1a74054fa8ba203b82f5341b2cd2e1a2b4"></span><em class="property">inline</em> <em class="property">explicit</em> <em class="property">constexpr</em> <code class="sig-name descname">Vec4</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4::T">T</a> <em>a</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath4Vec44Vec4E1T" 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,a)</span></code> </p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv4N5Imath4Vec44Vec4E1T1T1T1T">
<span id="_CPPv3N5Imath4Vec44Vec4E1T1T1T1T"></span><span id="_CPPv2N5Imath4Vec44Vec4E1T1T1T1T"></span><span id="Imath::Vec4::Vec4__T.T.T.TCE"></span><span class="target" id="class_imath_1_1_vec4_1a892e28424f8e2c11fef3cfec76d9b740"></span><em class="property">inline</em> <em class="property">constexpr</em> <code class="sig-name descname">Vec4</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4::T">T</a> <em>a</em>, <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4::T">T</a> <em>b</em>, <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4::T">T</a> <em>c</em>, <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4::T">T</a> <em>d</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath4Vec44Vec4E1T1T1T1T" 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,d)</span></code> </p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv4N5Imath4Vec44Vec4ERK4Vec4">
<span id="_CPPv3N5Imath4Vec44Vec4ERK4Vec4"></span><span id="_CPPv2N5Imath4Vec44Vec4ERK4Vec4"></span><span id="Imath::Vec4::Vec4__Vec4CRCE"></span><span class="target" id="class_imath_1_1_vec4_1ab8275c9e3da3c210c7921a923f123c8a"></span><em class="property">inline</em> <em class="property">constexpr</em> <code class="sig-name descname">Vec4</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4N5Imath4Vec44Vec4ERK4Vec4" title="Imath::Vec4::Vec4">Vec4</a> &amp;<em>v</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath4Vec44Vec4ERK4Vec4" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Copy constructor. </p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv4I0EN5Imath4Vec44Vec4ERK4Vec4I1SE">
<span id="_CPPv3I0EN5Imath4Vec44Vec4ERK4Vec4I1SE"></span><span id="_CPPv2I0EN5Imath4Vec44Vec4ERK4Vec4I1SE"></span>template&lt;class <code class="sig-name descname">S</code>&gt;<br /><span class="target" id="class_imath_1_1_vec4_1ac0cd4153c9571f7cf34b4383473eb3f1"></span><em class="property">inline</em> <em class="property">constexpr</em> <code class="sig-name descname">Vec4</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec44Vec4ERK4Vec4I1SE" title="Imath::Vec4::Vec4">Vec4</a>&lt;<a class="reference internal" href="#_CPPv4I0EN5Imath4Vec44Vec4ERK4Vec4I1SE" title="Imath::Vec4::Vec4::S">S</a>&gt; &amp;<em>v</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4I0EN5Imath4Vec44Vec4ERK4Vec4I1SE" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Construct from <a class="reference internal" href="#class_imath_1_1_vec4"><span class="std std-ref">Vec4</span></a> of another base type. </p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv4I0EN5Imath4Vec44Vec4ERK4Vec3I1SE">
<span id="_CPPv3I0EN5Imath4Vec44Vec4ERK4Vec3I1SE"></span><span id="_CPPv2I0EN5Imath4Vec44Vec4ERK4Vec3I1SE"></span>template&lt;class <code class="sig-name descname">S</code>&gt;<br /><span class="target" id="class_imath_1_1_vec4_1a399e7ab7835bc980942d47c191df30e2"></span><em class="property">inline</em> <em class="property">explicit</em> <em class="property">constexpr</em> <code class="sig-name descname">Vec4</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="Vec3.html#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a>&lt;<a class="reference internal" href="#_CPPv4I0EN5Imath4Vec44Vec4ERK4Vec3I1SE" title="Imath::Vec4::Vec4::S">S</a>&gt; &amp;<em>v</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4I0EN5Imath4Vec44Vec4ERK4Vec3I1SE" title="Permalink to this definition">¶</a><br /></dt>
<dd><p><a class="reference internal" href="Vec3.html#class_imath_1_1_vec3"><span class="std std-ref">Vec3</span></a> to <a class="reference internal" href="#class_imath_1_1_vec4"><span class="std std-ref">Vec4</span></a> conversion, sets w to 1. </p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv4N5Imath4Vec4aSERK4Vec4">
<span id="_CPPv3N5Imath4Vec4aSERK4Vec4"></span><span id="_CPPv2N5Imath4Vec4aSERK4Vec4"></span><span id="Imath::Vec4::assign-operator__Vec4CRCE"></span><span class="target" id="class_imath_1_1_vec4_1a62101eb74c4bb646a24c3d421d0cbae9"></span><em class="property">inline</em> <em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a> &amp;<code class="sig-name descname">operator=</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a> &amp;<em>v</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath4Vec4aSERK4Vec4" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Assignment. </p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv4N5Imath4Vec4D0Ev">
<span id="_CPPv3N5Imath4Vec4D0Ev"></span><span id="_CPPv2N5Imath4Vec4D0Ev"></span><span id="Imath::Vec4::~Vec4"></span><span class="target" id="class_imath_1_1_vec4_1aca740a6da1eaf62364ef9624c4c4adb9"></span><code class="sig-name descname">~Vec4</code><span class="sig-paren">(</span><span class="sig-paren">)</span> <em class="property">noexcept</em> = default<a class="headerlink" href="#_CPPv4N5Imath4Vec4D0Ev" 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">Arithmetic and Comparison</p>
<dl class="cpp function">
<dt id="_CPPv4I0ENK5Imath4Vec4eqEbRK4Vec4I1SE">
<span id="_CPPv3I0ENK5Imath4Vec4eqERK4Vec4I1SE"></span><span id="_CPPv2I0ENK5Imath4Vec4eqERK4Vec4I1SE"></span>template&lt;class <code class="sig-name descname">S</code>&gt;<br /><span class="target" id="class_imath_1_1_vec4_1aeacd9a91154efd575c3be4b716051f23"></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="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a>&lt;<a class="reference internal" href="#_CPPv4I0ENK5Imath4Vec4eqEbRK4Vec4I1SE" title="Imath::Vec4::operator==::S">S</a>&gt; &amp;<em>v</em><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4I0ENK5Imath4Vec4eqEbRK4Vec4I1SE" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Equality. </p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv4I0ENK5Imath4Vec4neEbRK4Vec4I1SE">
<span id="_CPPv3I0ENK5Imath4Vec4neERK4Vec4I1SE"></span><span id="_CPPv2I0ENK5Imath4Vec4neERK4Vec4I1SE"></span>template&lt;class <code class="sig-name descname">S</code>&gt;<br /><span class="target" id="class_imath_1_1_vec4_1a63babd20f2acf545e7e2a38d26ec7645"></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="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a>&lt;<a class="reference internal" href="#_CPPv4I0ENK5Imath4Vec4neEbRK4Vec4I1SE" title="Imath::Vec4::operator!=::S">S</a>&gt; &amp;<em>v</em><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4I0ENK5Imath4Vec4neEbRK4Vec4I1SE" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Inequality. </p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv4NK5Imath4Vec417equalWithAbsErrorERK4Vec4I1TE1T">
<span id="_CPPv3NK5Imath4Vec417equalWithAbsErrorERK4Vec4I1TE1T"></span><span id="_CPPv2NK5Imath4Vec417equalWithAbsErrorERK4Vec4I1TE1T"></span><span id="Imath::Vec4::equalWithAbsError__Vec4:T:CR.TCCE"></span><span class="target" id="class_imath_1_1_vec4_1a302f706542f458d5a8d26ddf3a8e112a"></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="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a>&lt;<a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4::T">T</a>&gt; &amp;<em>v</em>, <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4::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="#_CPPv4NK5Imath4Vec417equalWithAbsErrorERK4Vec4I1TE1T" 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">&lt;=</span> <span class="n">e</span>
</pre></div>
</div>
 </p>
</dd>
</dl>
</p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv4NK5Imath4Vec417equalWithRelErrorERK4Vec4I1TE1T">
<span id="_CPPv3NK5Imath4Vec417equalWithRelErrorERK4Vec4I1TE1T"></span><span id="_CPPv2NK5Imath4Vec417equalWithRelErrorERK4Vec4I1TE1T"></span><span id="Imath::Vec4::equalWithRelError__Vec4:T:CR.TCCE"></span><span class="target" id="class_imath_1_1_vec4_1a0ae4684ee301bb2d30ab001e729455c7"></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="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a>&lt;<a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4::T">T</a>&gt; &amp;<em>v</em>, <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4::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="#_CPPv4NK5Imath4Vec417equalWithRelErrorERK4Vec4I1TE1T" 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">&lt;=</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="_CPPv4NK5Imath4Vec43dotERK4Vec4">
<span id="_CPPv3NK5Imath4Vec43dotERK4Vec4"></span><span id="_CPPv2NK5Imath4Vec43dotERK4Vec4"></span><span id="Imath::Vec4::dot__Vec4CRCCE"></span><span class="target" id="class_imath_1_1_vec4_1a22c3bc42fbc06eeddd8b7ee55ef60aff"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4::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="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a> &amp;<em>v</em><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4NK5Imath4Vec43dotERK4Vec4" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Dot product. </p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv4NK5Imath4Vec4eoERK4Vec4">
<span id="_CPPv3NK5Imath4Vec4eoERK4Vec4"></span><span id="_CPPv2NK5Imath4Vec4eoERK4Vec4"></span><span id="Imath::Vec4::xor-operator__Vec4CRCCE"></span><span class="target" id="class_imath_1_1_vec4_1a8126ecb2365b1c2e5139a412c685ce4a"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4::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="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a> &amp;<em>v</em><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4NK5Imath4Vec4eoERK4Vec4" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Dot product. </p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv4N5Imath4Vec4pLERK4Vec4">
<span id="_CPPv3N5Imath4Vec4pLERK4Vec4"></span><span id="_CPPv2N5Imath4Vec4pLERK4Vec4"></span><span id="Imath::Vec4::add-assign-operator__Vec4CRCE"></span><span class="target" id="class_imath_1_1_vec4_1a58eec26d0935629cb93ab9258d2ad585"></span><em class="property">inline</em> <em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a> &amp;<code class="sig-name descname">operator+=</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a> &amp;<em>v</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath4Vec4pLERK4Vec4" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Component-wise addition. </p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv4NK5Imath4Vec4plERK4Vec4">
<span id="_CPPv3NK5Imath4Vec4plERK4Vec4"></span><span id="_CPPv2NK5Imath4Vec4plERK4Vec4"></span><span id="Imath::Vec4::add-operator__Vec4CRCCE"></span><span class="target" id="class_imath_1_1_vec4_1ab120e1cfe917a611015aa43d6c0b86ae"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a> <code class="sig-name descname">operator+</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a> &amp;<em>v</em><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4NK5Imath4Vec4plERK4Vec4" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Component-wise addition. </p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv4N5Imath4Vec4mIERK4Vec4">
<span id="_CPPv3N5Imath4Vec4mIERK4Vec4"></span><span id="_CPPv2N5Imath4Vec4mIERK4Vec4"></span><span id="Imath::Vec4::sub-assign-operator__Vec4CRCE"></span><span class="target" id="class_imath_1_1_vec4_1afef1867d2279f4149a3178ad78b2965d"></span><em class="property">inline</em> <em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a> &amp;<code class="sig-name descname">operator-=</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a> &amp;<em>v</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath4Vec4mIERK4Vec4" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Component-wise subtraction. </p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv4NK5Imath4Vec4miERK4Vec4">
<span id="_CPPv3NK5Imath4Vec4miERK4Vec4"></span><span id="_CPPv2NK5Imath4Vec4miERK4Vec4"></span><span id="Imath::Vec4::sub-operator__Vec4CRCCE"></span><span class="target" id="class_imath_1_1_vec4_1a5c4188479e4d7ee5d5b65ca424f82f5f"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a> <code class="sig-name descname">operator-</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a> &amp;<em>v</em><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4NK5Imath4Vec4miERK4Vec4" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Component-wise subtraction. </p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv4NK5Imath4Vec4miEv">
<span id="_CPPv3NK5Imath4Vec4miEv"></span><span id="_CPPv2NK5Imath4Vec4miEv"></span><span id="Imath::Vec4::sub-operatorCCE"></span><span class="target" id="class_imath_1_1_vec4_1a62c366b3b04755f3c2c8ef4ea3e025c4"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</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="#_CPPv4NK5Imath4Vec4miEv" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Component-wise multiplication by -1. </p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv4N5Imath4Vec46negateEv">
<span id="_CPPv3N5Imath4Vec46negateEv"></span><span id="_CPPv2N5Imath4Vec46negateEv"></span><span id="Imath::Vec4::negateCE"></span><span class="target" id="class_imath_1_1_vec4_1a18479f59d88af59c7a377176d86a7f5f"></span><em class="property">inline</em> <em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a> &amp;<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="#_CPPv4N5Imath4Vec46negateEv" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Component-wise multiplication by -1. </p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv4N5Imath4Vec4mLERK4Vec4">
<span id="_CPPv3N5Imath4Vec4mLERK4Vec4"></span><span id="_CPPv2N5Imath4Vec4mLERK4Vec4"></span><span id="Imath::Vec4::mul-assign-operator__Vec4CRCE"></span><span class="target" id="class_imath_1_1_vec4_1aec3a840ac09fd0f7b0a7564bc284927c"></span><em class="property">inline</em> <em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a> &amp;<code class="sig-name descname">operator*=</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a> &amp;<em>v</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath4Vec4mLERK4Vec4" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Component-wise multiplication. </p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv4N5Imath4Vec4mLE1T">
<span id="_CPPv3N5Imath4Vec4mLE1T"></span><span id="_CPPv2N5Imath4Vec4mLE1T"></span><span id="Imath::Vec4::mul-assign-operator__TCE"></span><span class="target" id="class_imath_1_1_vec4_1a0d36d4189db7326583b8f8a938e4014b"></span><em class="property">inline</em> <em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a> &amp;<code class="sig-name descname">operator*=</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4::T">T</a> <em>a</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath4Vec4mLE1T" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Component-wise multiplication. </p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv4NK5Imath4Vec4mlERK4Vec4">
<span id="_CPPv3NK5Imath4Vec4mlERK4Vec4"></span><span id="_CPPv2NK5Imath4Vec4mlERK4Vec4"></span><span id="Imath::Vec4::mul-operator__Vec4CRCCE"></span><span class="target" id="class_imath_1_1_vec4_1a0a135f35f382e26161a05aea8146e77f"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a> <code class="sig-name descname">operator*</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a> &amp;<em>v</em><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4NK5Imath4Vec4mlERK4Vec4" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Component-wise multiplication. </p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv4NK5Imath4Vec4mlE1T">
<span id="_CPPv3NK5Imath4Vec4mlE1T"></span><span id="_CPPv2NK5Imath4Vec4mlE1T"></span><span id="Imath::Vec4::mul-operator__TCCE"></span><span class="target" id="class_imath_1_1_vec4_1a1df545e81ad2576a705cbb08b8619eb6"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a> <code class="sig-name descname">operator*</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4::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="#_CPPv4NK5Imath4Vec4mlE1T" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Component-wise multiplication. </p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv4N5Imath4Vec4dVERK4Vec4">
<span id="_CPPv3N5Imath4Vec4dVERK4Vec4"></span><span id="_CPPv2N5Imath4Vec4dVERK4Vec4"></span><span id="Imath::Vec4::div-assign-operator__Vec4CRCE"></span><span class="target" id="class_imath_1_1_vec4_1a9d0318c3b6bfb3ef8376378b1a5ec989"></span><em class="property">inline</em> <em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a> &amp;<code class="sig-name descname">operator/=</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a> &amp;<em>v</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath4Vec4dVERK4Vec4" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Component-wise division. </p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv4N5Imath4Vec4dVE1T">
<span id="_CPPv3N5Imath4Vec4dVE1T"></span><span id="_CPPv2N5Imath4Vec4dVE1T"></span><span id="Imath::Vec4::div-assign-operator__TCE"></span><span class="target" id="class_imath_1_1_vec4_1a709dd921fc0c1002ba4751bafcbcb75c"></span><em class="property">inline</em> <em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a> &amp;<code class="sig-name descname">operator/=</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4::T">T</a> <em>a</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath4Vec4dVE1T" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Component-wise division. </p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv4NK5Imath4Vec4dvERK4Vec4">
<span id="_CPPv3NK5Imath4Vec4dvERK4Vec4"></span><span id="_CPPv2NK5Imath4Vec4dvERK4Vec4"></span><span id="Imath::Vec4::div-operator__Vec4CRCCE"></span><span class="target" id="class_imath_1_1_vec4_1ac452d2e122793f5d3b4608129b48db53"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a> <code class="sig-name descname">operator/</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a> &amp;<em>v</em><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4NK5Imath4Vec4dvERK4Vec4" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Component-wise division. </p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv4NK5Imath4Vec4dvE1T">
<span id="_CPPv3NK5Imath4Vec4dvE1T"></span><span id="_CPPv2NK5Imath4Vec4dvE1T"></span><span id="Imath::Vec4::div-operator__TCCE"></span><span class="target" id="class_imath_1_1_vec4_1a0297d41005454d3d672dced89c10bc70"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a> <code class="sig-name descname">operator/</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4::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="#_CPPv4NK5Imath4Vec4dvE1T" 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="_CPPv4NK5Imath4Vec46lengthEv">
<span id="_CPPv3NK5Imath4Vec46lengthEv"></span><span id="_CPPv2NK5Imath4Vec46lengthEv"></span><span id="Imath::Vec4::lengthC"></span><span class="target" id="class_imath_1_1_vec4_1abfba1994d135aff72a2a81922fe0df3f"></span><em class="property">inline</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4::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="#_CPPv4NK5Imath4Vec46lengthEv" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Return the Euclidean norm. </p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv4NK5Imath4Vec47length2Ev">
<span id="_CPPv3NK5Imath4Vec47length2Ev"></span><span id="_CPPv2NK5Imath4Vec47length2Ev"></span><span id="Imath::Vec4::length2CCE"></span><span class="target" id="class_imath_1_1_vec4_1a14fb5af8c14a353fbc0b5018c01eee3d"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4::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="#_CPPv4NK5Imath4Vec47length2Ev" 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="_CPPv4N5Imath4Vec49normalizeEv">
<span id="_CPPv3N5Imath4Vec49normalizeEv"></span><span id="_CPPv2N5Imath4Vec49normalizeEv"></span><span id="Imath::Vec4::normalize"></span><span class="target" id="class_imath_1_1_vec4_1a1c7dedb82e404930a8f85b4f1afb64c2"></span><em class="property">inline</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a> &amp;<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="#_CPPv4N5Imath4Vec49normalizeEv" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Normalize in place. If <a class="reference internal" href="#class_imath_1_1_vec4_1abfba1994d135aff72a2a81922fe0df3f"><span class="std std-ref">length()</span></a>==0, return a null vector. </p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv4N5Imath4Vec412normalizeExcEv">
<span id="_CPPv3N5Imath4Vec412normalizeExcEv"></span><span id="_CPPv2N5Imath4Vec412normalizeExcEv"></span><span id="Imath::Vec4::normalizeExc"></span><span class="target" id="class_imath_1_1_vec4_1af22d09cd55b3484f070a1dcf25a1ede3"></span><em class="property">inline</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a> &amp;<code class="sig-name descname">normalizeExc</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv4N5Imath4Vec412normalizeExcEv" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Normalize in place. If <a class="reference internal" href="#class_imath_1_1_vec4_1abfba1994d135aff72a2a81922fe0df3f"><span class="std std-ref">length()</span></a>==0, throw an exception. </p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv4N5Imath4Vec416normalizeNonNullEv">
<span id="_CPPv3N5Imath4Vec416normalizeNonNullEv"></span><span id="_CPPv2N5Imath4Vec416normalizeNonNullEv"></span><span id="Imath::Vec4::normalizeNonNull"></span><span class="target" id="class_imath_1_1_vec4_1a8fe50fbd9a0de02d88e8f8eed28bab65"></span><em class="property">inline</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a> &amp;<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="#_CPPv4N5Imath4Vec416normalizeNonNullEv" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Normalize without any checks for <a class="reference internal" href="#class_imath_1_1_vec4_1abfba1994d135aff72a2a81922fe0df3f"><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="_CPPv4NK5Imath4Vec410normalizedEv">
<span id="_CPPv3NK5Imath4Vec410normalizedEv"></span><span id="_CPPv2NK5Imath4Vec410normalizedEv"></span><span id="Imath::Vec4::normalizedC"></span><span class="target" id="class_imath_1_1_vec4_1a6191a92cfbbae064ae1e4e1208cfeca2"></span><em class="property">inline</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a>&lt;<a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4::T">T</a>&gt; <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="#_CPPv4NK5Imath4Vec410normalizedEv" 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="_CPPv4NK5Imath4Vec413normalizedExcEv">
<span id="_CPPv3NK5Imath4Vec413normalizedExcEv"></span><span id="_CPPv2NK5Imath4Vec413normalizedExcEv"></span><span id="Imath::Vec4::normalizedExcC"></span><span class="target" id="class_imath_1_1_vec4_1a98503652053ab0a39590e438506a6d13"></span><em class="property">inline</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a>&lt;<a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4::T">T</a>&gt; <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="#_CPPv4NK5Imath4Vec413normalizedExcEv" 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_vec4_1abfba1994d135aff72a2a81922fe0df3f"><span class="std std-ref">length()</span></a>==0. </p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv4NK5Imath4Vec417normalizedNonNullEv">
<span id="_CPPv3NK5Imath4Vec417normalizedNonNullEv"></span><span id="_CPPv2NK5Imath4Vec417normalizedNonNullEv"></span><span id="Imath::Vec4::normalizedNonNullC"></span><span class="target" id="class_imath_1_1_vec4_1a624e185e66731f3752da56d082894553"></span><em class="property">inline</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a>&lt;<a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4::T">T</a>&gt; <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="#_CPPv4NK5Imath4Vec417normalizedNonNullEv" 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_vec4_1abfba1994d135aff72a2a81922fe0df3f"><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_vec4_1a72f9d120f32dbbe4218556e52b4cacba"></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_vec4_1ae1e080feb1c330f785c559b1ee2f051c"></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_vec4_1a417023e1fe9671f341393e1a615f6efe"></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_vec4_1a4aaec7c01ed97141649ea2cf919976d3"></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="_CPPv4N5Imath4Vec48BaseTypeE">
<span id="_CPPv3N5Imath4Vec48BaseTypeE"></span><span id="_CPPv2N5Imath4Vec48BaseTypeE"></span><span id="Imath::Vec4::BaseType"></span><span class="target" id="class_imath_1_1_vec4_1a27cced4b5f18f47833e73a8bfcb0709b"></span><em class="property">typedef </em><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4::T">T</a> <code class="sig-name descname">BaseType</code><a class="headerlink" href="#_CPPv4N5Imath4Vec48BaseTypeE" 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="_CPPv4N5Imath4Vec4ixEi">
<span id="_CPPv3N5Imath4Vec4ixEi"></span><span id="_CPPv2N5Imath4Vec4ixEi"></span><span id="Imath::Vec4::subscript-operator__iCE"></span><span class="target" id="class_imath_1_1_vec4_1adf919e33583c3bc1f5b7c5d3014bfbf3"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4::T">T</a> &amp;<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="#_CPPv4N5Imath4Vec4ixEi" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Element access by index. </p>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv4NK5Imath4Vec4ixEi">
<span id="_CPPv3NK5Imath4Vec4ixEi"></span><span id="_CPPv2NK5Imath4Vec4ixEi"></span><span id="Imath::Vec4::subscript-operator__iCCE"></span><span class="target" id="class_imath_1_1_vec4_1a6d08ababbaa25da28e2907d3ecba6593"></span><em class="property">inline</em> <em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4::T">T</a> &amp;<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="#_CPPv4NK5Imath4Vec4ixEi" 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_vec4_1afbce293534d60e8643f0a3fedd967d8e"></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_vec4_1ad45033a4cedf53d11784700fc44e7a1f"></span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a>&lt;short&gt; &amp;<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_vec4_1a1b091b35e42e554f9cd50b2143262af8"></span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a>&lt;short&gt; &amp;<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_vec4_1a2718b15e34734b073ead767629e48eac"></span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a>&lt;short&gt; &amp;<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_vec4_1aa93edf368b2b2cec01bc1b42e3e54ad5"></span><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a>&lt;short&gt; <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_vec4_1ac0c45ff4519ac8c9c1ce375915da6789"></span><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a>&lt;short&gt; <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_vec4_1a367a8e8ded1d7daebb3de6da9f99a3c0"></span><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a>&lt;short&gt; <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_vec4_1a1bdb2c4fe4340063b1e5d9cc2c0b5b0d"></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_vec4_1afa962020adde5ffc3444d04bfe0ddca6"></span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a>&lt;int&gt; &amp;<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_vec4_1a05818b692b4f6189be629525ea32af64"></span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a>&lt;int&gt; &amp;<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_vec4_1a745a9be5c2bf1bdec1f4af991e98f297"></span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a>&lt;int&gt; &amp;<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_vec4_1a77c5e9e77f947eb726c6886488211568"></span><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a>&lt;int&gt; <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_vec4_1a9df0e33b6f94bc6f54e29469becace62"></span><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a>&lt;int&gt; <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_vec4_1af26d8aefdb54a33d55a79927460131ee"></span><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a>&lt;int&gt; <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_vec4_1ad63b9262f255f0925667cc543d30bc68"></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_vec4_1a735bf8f64b2b42a7a0bcdb424a5c2bad"></span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a>&lt;int64_t&gt; &amp;<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_vec4_1a38e65aba4e6fb8c193ca83f4705b7f0a"></span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a>&lt;int64_t&gt; &amp;<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_vec4_1a102a2c9afd9a542165054b566949fa34"></span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a>&lt;int64_t&gt; &amp;<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_vec4_1a432ff4b8c97c97081ae48585bea3dbc8"></span><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a>&lt;int64_t&gt; <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_vec4_1a0d03bf7f3c2be4c6713b6c27f18f0d6e"></span><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a>&lt;int64_t&gt; <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_vec4_1adaedb03f9e35724aa654ed80d212781b"></span><a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a>&lt;int64_t&gt; <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_vec4_1aa7eb22a51ab965aa779a6a4378004124"></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. 4. </p>
</dd></dl>

</div>
</dd></dl>

<dl class="cpp function">
<dt id="_CPPv4I0EN5ImathlsERNSt7ostreamERNSt7ostreamERK4Vec4I1TE">
<span id="_CPPv3I0EN5ImathlsERNSt7ostreamERK4Vec4I1TE"></span><span id="_CPPv2I0EN5ImathlsERNSt7ostreamERK4Vec4I1TE"></span>template&lt;class <code class="sig-name descname">T</code>&gt;<br /><span class="target" id="_imath_vec_8h_1a2d46040eff7880d9e99f729e17719bc1"></span>std::ostream &amp;<code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">operator&lt;&lt;</code><span class="sig-paren">(</span>std::ostream &amp;<em>s</em>, <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath4Vec4E" title="Imath::Vec4">Vec4</a>&lt;<a class="reference internal" href="#_CPPv4I0EN5ImathlsERNSt7ostreamERNSt7ostreamERK4Vec4I1TE" title="Imath::operator&lt;&lt;::T">T</a>&gt; &amp;<em>v</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv4I0EN5ImathlsERNSt7ostreamERNSt7ostreamERK4Vec4I1TE" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Stream output, as “(x y z w)”. </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="Vec3.html"
                        title="previous chapter">Vec3</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="../functions/box.html"
                        title="next chapter">Box Functions</a></p>
  <div role="note" aria-label="source link">
    <h3>This Page</h3>
    <ul class="this-page-menu">
      <li><a href="../_sources/classes/Vec4.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="../functions/box.html" title="Box Functions"
             >next</a> |</li>
        <li class="right" >
          <a href="Vec3.html" title="Vec3"
             >previous</a> |</li>
        <li class="nav-item nav-item-0"><a href="../index.html">Imath</a> &#187;</li>
        <li class="nav-item nav-item-this"><a href="">Vec4</a></li> 
      </ul>
    </div>
    <div class="footer" role="contentinfo">
        &#169; Copyright 2021, Contributors to the OpenEXR Project.
      Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 3.4.3.
    </div>
  </body>
</html>

Zerion Mini Shell 1.0