%PDF- %PDF-
Direktori : /proc/thread-self/root/proc/self/root/usr/share/doc/imath-devel/html/classes/ |
Current File : //proc/thread-self/root/proc/self/root/usr/share/doc/imath-devel/html/classes/Matrix22.html |
<!doctype html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Matrix22 — 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="Matrix33" href="Matrix33.html" /> <link rel="prev" title="Line3" href="Line3.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="Matrix33.html" title="Matrix33" accesskey="N">next</a> |</li> <li class="right" > <a href="Line3.html" title="Line3" 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="">Matrix22</a></li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body" role="main"> <div class="section" id="matrix22"> <h1>Matrix22<a class="headerlink" href="#matrix22" title="Permalink to this headline">¶</a></h1> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="c1">#include <Imath/ImathMatrix.h></span> </pre></div> </div> <p>The <code class="docutils literal notranslate"><span class="pre">Matrix22</span></code> class template represents a 2x2 matrix, with predefined typedefs for <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>There are also various utility functions that operate on matrices defined in <code class="docutils literal notranslate"><span class="pre">ImathMatrixAlgo.h</span></code> and described in <a class="reference internal" href="../functions/matrix.html#matrix-functions"><span class="std std-ref">Matrix 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/ImathMatrix.h></span><span class="cp"></span> <span class="cp">#include</span> <span class="cpf"><Imath/ImathMatrixAlgo.h></span><span class="cp"></span> <span class="kt">void</span> <span class="nf">matrix22_example</span><span class="p">()</span> <span class="p">{</span> <span class="n">Imath</span><span class="o">::</span><span class="n">M22f</span> <span class="n">M</span> <span class="p">(</span><span class="n">Imath</span><span class="o">::</span><span class="n">UNINITIALIZED</span><span class="p">);</span> <span class="c1">// uninitialized</span> <span class="n">M</span><span class="p">.</span><span class="n">makeIdentity</span><span class="p">();</span> <span class="n">assert</span> <span class="p">(</span><span class="n">M</span><span class="p">[</span><span class="mi">0</span><span class="p">][</span><span class="mi">0</span><span class="p">]</span> <span class="o">==</span> <span class="mf">1.0f</span><span class="p">);</span> <span class="n">assert</span> <span class="p">(</span><span class="n">M</span><span class="p">[</span><span class="mi">0</span><span class="p">][</span><span class="mi">1</span><span class="p">]</span> <span class="o">==</span> <span class="mf">0.0f</span><span class="p">);</span> <span class="n">Imath</span><span class="o">::</span><span class="n">M22f</span> <span class="n">Minv</span> <span class="o">=</span> <span class="n">M</span><span class="p">.</span><span class="n">inverse</span><span class="p">();</span> <span class="n">Imath</span><span class="o">::</span><span class="n">M22f</span> <span class="n">R</span><span class="p">;</span> <span class="n">assert</span> <span class="p">(</span><span class="n">R</span> <span class="o">==</span> <span class="n">Imath</span><span class="o">::</span><span class="n">identity22f</span><span class="p">);</span> <span class="n">R</span><span class="p">.</span><span class="n">rotate</span> <span class="p">(</span><span class="n">M_PI</span><span class="o">/</span><span class="mi">4</span><span class="p">);</span> <span class="n">M</span> <span class="o">=</span> <span class="n">R</span> <span class="o">*</span> <span class="n">M</span><span class="p">;</span> <span class="n">Imath</span><span class="o">::</span><span class="n">V2f</span> <span class="n">v2</span> <span class="p">(</span><span class="mf">1.0f</span><span class="p">,</span> <span class="mf">0.0f</span><span class="p">);</span> <span class="n">Imath</span><span class="o">::</span><span class="n">V2f</span> <span class="n">r2</span> <span class="o">=</span> <span class="n">v2</span> <span class="o">*</span> <span class="n">M</span><span class="p">;</span> <span class="n">assert</span> <span class="p">(</span><span class="n">r2</span><span class="p">.</span><span class="n">equalWithAbsError</span> <span class="p">(</span><span class="n">Imath</span><span class="o">::</span><span class="n">V2f</span> <span class="p">(</span><span class="mf">0.707107f</span><span class="p">,</span> <span class="mf">0.707107f</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="_CPPv4N5Imath4M22fE"> <span id="_CPPv3N5Imath4M22fE"></span><span id="_CPPv2N5Imath4M22fE"></span><span id="Imath::M22f"></span><span class="target" id="_imath_matrix_8h_1a56267ccc7d9c595eef21f85064f61bc3"></span><em class="property">typedef </em><a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a><float> <code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">M22f</code><a class="headerlink" href="#_CPPv4N5Imath4M22fE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>2x2 matrix of float </p> </dd></dl> <dl class="cpp type"> <dt id="_CPPv4N5Imath4M22dE"> <span id="_CPPv3N5Imath4M22dE"></span><span id="_CPPv2N5Imath4M22dE"></span><span id="Imath::M22d"></span><span class="target" id="_imath_matrix_8h_1a9953aaace34de624574ed2daafa04afa"></span><em class="property">typedef </em><a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a><double> <code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">M22d</code><a class="headerlink" href="#_CPPv4N5Imath4M22dE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>2x2 matrix of double </p> </dd></dl> <dl class="cpp class"> <dt id="_CPPv4I0EN5Imath8Matrix22E"> <span id="_CPPv3I0EN5Imath8Matrix22E"></span><span id="_CPPv2I0EN5Imath8Matrix22E"></span>template<class <code class="sig-name descname">T</code>><br /><span class="target" id="class_imath_1_1_matrix22"></span><em class="property">class </em><code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">Matrix22</code><a class="headerlink" href="#_CPPv4I0EN5Imath8Matrix22E" title="Permalink to this definition">¶</a><br /></dt> <dd><p>2x2 transformation matrix </p> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric">Direct access to elements</p> <dl class="cpp var"> <dt id="_CPPv4N5Imath8Matrix221xE"> <span id="_CPPv3N5Imath8Matrix221xE"></span><span id="_CPPv2N5Imath8Matrix221xE"></span><span id="Imath::Matrix22::x__TAA"></span><span class="target" id="class_imath_1_1_matrix22_1aa2538fabeabbcd0bea77f37b605d42ec"></span><a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22::T">T</a> <code class="sig-name descname">x</code>[2][2]<a class="headerlink" href="#_CPPv4N5Imath8Matrix221xE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Matrix elements. </p> </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="_CPPv4N5Imath8Matrix228Matrix22E13Uninitialized"> <span id="_CPPv3N5Imath8Matrix228Matrix22E13Uninitialized"></span><span id="_CPPv2N5Imath8Matrix228Matrix22E13Uninitialized"></span><span id="Imath::Matrix22::Matrix22__Uninitialized"></span><span class="target" id="class_imath_1_1_matrix22_1a6acd039c23f5cae28be8ccbe56c39ef0"></span><em class="property">inline</em> <code class="sig-name descname">Matrix22</code><span class="sig-paren">(</span>Uninitialized<span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath8Matrix228Matrix22E13Uninitialized" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Uninitialized. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath8Matrix228Matrix22Ev"> <span id="_CPPv3N5Imath8Matrix228Matrix22Ev"></span><span id="_CPPv2N5Imath8Matrix228Matrix22Ev"></span><span id="Imath::Matrix22::Matrix22CE"></span><span class="target" id="class_imath_1_1_matrix22_1af848a5e3da77243e40065b9df88389a4"></span><em class="property">inline</em> <em class="property">constexpr</em> <code class="sig-name descname">Matrix22</code><span class="sig-paren">(</span><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath8Matrix228Matrix22Ev" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Default constructor: initialize to identity. </p> <p><div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="mi">1</span> <span class="mi">0</span> <span class="mi">0</span> <span class="mi">1</span> </pre></div> </div> </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath8Matrix228Matrix22E1T"> <span id="_CPPv3N5Imath8Matrix228Matrix22E1T"></span><span id="_CPPv2N5Imath8Matrix228Matrix22E1T"></span><span id="Imath::Matrix22::Matrix22__TCE"></span><span class="target" id="class_imath_1_1_matrix22_1afdab8e1f647a7ff691c774d9c881434b"></span><em class="property">inline</em> <em class="property">constexpr</em> <code class="sig-name descname">Matrix22</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22::T">T</a> <em>a</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath8Matrix228Matrix22E1T" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Initialize to scalar constant: </p> <p><div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">a</span> <span class="n">a</span> <span class="n">a</span> <span class="n">a</span> </pre></div> </div> </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath8Matrix228Matrix22EAL2E_AL2E_K1T"> <span id="_CPPv3N5Imath8Matrix228Matrix22EAL2E_AL2E_K1T"></span><span id="_CPPv2N5Imath8Matrix228Matrix22EA2_A2_K1T"></span><span id="Imath::Matrix22::Matrix22__TCAACE"></span><span class="target" id="class_imath_1_1_matrix22_1ad321de6172207a86c228dc5da268e8e2"></span><em class="property">inline</em> <em class="property">constexpr</em> <code class="sig-name descname">Matrix22</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22::T">T</a> <em>a</em>[2][2]<span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath8Matrix228Matrix22EAL2E_AL2E_K1T" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Construct from 2x2 array: </p> <p><div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">a</span><span class="p">[</span><span class="mi">0</span><span class="p">][</span><span class="mi">0</span><span class="p">]</span> <span class="n">a</span><span class="p">[</span><span class="mi">0</span><span class="p">][</span><span class="mi">1</span><span class="p">]</span> <span class="n">a</span><span class="p">[</span><span class="mi">1</span><span class="p">][</span><span class="mi">0</span><span class="p">]</span> <span class="n">a</span><span class="p">[</span><span class="mi">1</span><span class="p">][</span><span class="mi">1</span><span class="p">]</span> </pre></div> </div> </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath8Matrix228Matrix22E1T1T1T1T"> <span id="_CPPv3N5Imath8Matrix228Matrix22E1T1T1T1T"></span><span id="_CPPv2N5Imath8Matrix228Matrix22E1T1T1T1T"></span><span id="Imath::Matrix22::Matrix22__T.T.T.TCE"></span><span class="target" id="class_imath_1_1_matrix22_1ab2117be752340f8730004100b010b8a1"></span><em class="property">inline</em> <em class="property">constexpr</em> <code class="sig-name descname">Matrix22</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22::T">T</a> <em>a</em>, <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22::T">T</a> <em>b</em>, <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22::T">T</a> <em>c</em>, <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22::T">T</a> <em>d</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath8Matrix228Matrix22E1T1T1T1T" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Construct from given scalar values: </p> <p><div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">a</span> <span class="n">b</span> <span class="n">c</span> <span class="n">d</span> </pre></div> </div> </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath8Matrix228Matrix22ERK8Matrix22"> <span id="_CPPv3N5Imath8Matrix228Matrix22ERK8Matrix22"></span><span id="_CPPv2N5Imath8Matrix228Matrix22ERK8Matrix22"></span><span id="Imath::Matrix22::Matrix22__Matrix22CRCE"></span><span class="target" id="class_imath_1_1_matrix22_1a53c8f1a8f236425b5872e903ff2d9ce3"></span><em class="property">inline</em> <em class="property">constexpr</em> <code class="sig-name descname">Matrix22</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4N5Imath8Matrix228Matrix22ERK8Matrix22" title="Imath::Matrix22::Matrix22">Matrix22</a> &<em>v</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath8Matrix228Matrix22ERK8Matrix22" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Copy constructor. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4I0EN5Imath8Matrix228Matrix22ERK8Matrix22I1SE"> <span id="_CPPv3I0EN5Imath8Matrix228Matrix22ERK8Matrix22I1SE"></span><span id="_CPPv2I0EN5Imath8Matrix228Matrix22ERK8Matrix22I1SE"></span>template<class <code class="sig-name descname">S</code>><br /><span class="target" id="class_imath_1_1_matrix22_1aebde2e4dd7cad77dc0d3cc07b055fe1b"></span><em class="property">inline</em> <em class="property">explicit</em> <em class="property">constexpr</em> <code class="sig-name descname">Matrix22</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix228Matrix22ERK8Matrix22I1SE" title="Imath::Matrix22::Matrix22">Matrix22</a><<a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix228Matrix22ERK8Matrix22I1SE" title="Imath::Matrix22::Matrix22::S">S</a>> &<em>v</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4I0EN5Imath8Matrix228Matrix22ERK8Matrix22I1SE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Construct from <a class="reference internal" href="#class_imath_1_1_matrix22"><span class="std std-ref">Matrix22</span></a> of another base type. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath8Matrix22aSERK8Matrix22"> <span id="_CPPv3N5Imath8Matrix22aSERK8Matrix22"></span><span id="_CPPv2N5Imath8Matrix22aSERK8Matrix22"></span><span id="Imath::Matrix22::assign-operator__Matrix22CRCE"></span><span class="target" id="class_imath_1_1_matrix22_1ae9b8ed40fe18edac875ae194e3ad3ab7"></span><em class="property">inline</em> <em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a> &<code class="sig-name descname">operator=</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a> &<em>v</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath8Matrix22aSERK8Matrix22" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Assignment. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath8Matrix22aSE1T"> <span id="_CPPv3N5Imath8Matrix22aSE1T"></span><span id="_CPPv2N5Imath8Matrix22aSE1T"></span><span id="Imath::Matrix22::assign-operator__TCE"></span><span class="target" id="class_imath_1_1_matrix22_1aed4d52a290d5fbcf9933cf78fb003268"></span><em class="property">inline</em> <em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a> &<code class="sig-name descname">operator=</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22::T">T</a> <em>a</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath8Matrix22aSE1T" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Assignment from scalar. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath8Matrix22D0Ev"> <span id="_CPPv3N5Imath8Matrix22D0Ev"></span><span id="_CPPv2N5Imath8Matrix22D0Ev"></span><span id="Imath::Matrix22::~Matrix22"></span><span class="target" id="class_imath_1_1_matrix22_1a0fd01a3b86572318cbb0c6a0417c7d4d"></span><code class="sig-name descname">~Matrix22</code><span class="sig-paren">(</span><span class="sig-paren">)</span> <em class="property">noexcept</em> = default<a class="headerlink" href="#_CPPv4N5Imath8Matrix22D0Ev" 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="_CPPv4N5Imath8Matrix228getValueEv"> <span id="_CPPv3N5Imath8Matrix228getValueEv"></span><span id="_CPPv2N5Imath8Matrix228getValueEv"></span><span id="Imath::Matrix22::getValue"></span><span class="target" id="class_imath_1_1_matrix22_1a5ba1658f40208ab17a521d4d60f59986"></span><em class="property">inline</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22::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="#_CPPv4N5Imath8Matrix228getValueEv" 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="_CPPv4NK5Imath8Matrix228getValueEv"> <span id="_CPPv3NK5Imath8Matrix228getValueEv"></span><span id="_CPPv2NK5Imath8Matrix228getValueEv"></span><span id="Imath::Matrix22::getValueC"></span><span class="target" id="class_imath_1_1_matrix22_1a93994ee5a18b326072d753647caef492"></span><em class="property">inline</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22::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="#_CPPv4NK5Imath8Matrix228getValueEv" 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="_CPPv4I0ENK5Imath8Matrix228getValueEvR8Matrix22I1SE"> <span id="_CPPv3I0ENK5Imath8Matrix228getValueER8Matrix22I1SE"></span><span id="_CPPv2I0ENK5Imath8Matrix228getValueER8Matrix22I1SE"></span>template<class <code class="sig-name descname">S</code>><br /><span class="target" id="class_imath_1_1_matrix22_1aba580df3425102c765010dba098a232d"></span><em class="property">inline</em> void <code class="sig-name descname">getValue</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a><<a class="reference internal" href="#_CPPv4I0ENK5Imath8Matrix228getValueEvR8Matrix22I1SE" title="Imath::Matrix22::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="#_CPPv4I0ENK5Imath8Matrix228getValueEvR8Matrix22I1SE" 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="_CPPv4I0EN5Imath8Matrix228setValueER8Matrix22RK8Matrix22I1SE"> <span id="_CPPv3I0EN5Imath8Matrix228setValueERK8Matrix22I1SE"></span><span id="_CPPv2I0EN5Imath8Matrix228setValueERK8Matrix22I1SE"></span>template<class <code class="sig-name descname">S</code>><br /><span class="target" id="class_imath_1_1_matrix22_1a83def6148e7a1eab6f28fbb7e3fd7552"></span><em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a> &<code class="sig-name descname">setValue</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a><<a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix228setValueER8Matrix22RK8Matrix22I1SE" title="Imath::Matrix22::setValue::S">S</a>> &<em>v</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4I0EN5Imath8Matrix228setValueER8Matrix22RK8Matrix22I1SE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Set the value. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4I0EN5Imath8Matrix2212setTheMatrixER8Matrix22RK8Matrix22I1SE"> <span id="_CPPv3I0EN5Imath8Matrix2212setTheMatrixERK8Matrix22I1SE"></span><span id="_CPPv2I0EN5Imath8Matrix2212setTheMatrixERK8Matrix22I1SE"></span>template<class <code class="sig-name descname">S</code>><br /><span class="target" id="class_imath_1_1_matrix22_1afc3cbbc7943e7f173fabd650ce4f7ef7"></span><em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a> &<code class="sig-name descname">setTheMatrix</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a><<a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix2212setTheMatrixER8Matrix22RK8Matrix22I1SE" title="Imath::Matrix22::setTheMatrix::S">S</a>> &<em>v</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4I0EN5Imath8Matrix2212setTheMatrixER8Matrix22RK8Matrix22I1SE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Set the value. </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="_CPPv4NK5Imath8Matrix22eqERK8Matrix22"> <span id="_CPPv3NK5Imath8Matrix22eqERK8Matrix22"></span><span id="_CPPv2NK5Imath8Matrix22eqERK8Matrix22"></span><span id="Imath::Matrix22::eq-operator__Matrix22CRCCE"></span><span class="target" id="class_imath_1_1_matrix22_1ad45ed700133cf576a535c56589af3736"></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="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a> &<em>v</em><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4NK5Imath8Matrix22eqERK8Matrix22" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Equality. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4NK5Imath8Matrix22neERK8Matrix22"> <span id="_CPPv3NK5Imath8Matrix22neERK8Matrix22"></span><span id="_CPPv2NK5Imath8Matrix22neERK8Matrix22"></span><span id="Imath::Matrix22::neq-operator__Matrix22CRCCE"></span><span class="target" id="class_imath_1_1_matrix22_1ad89c9c96a32400c267c8233cdbd145b6"></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="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a> &<em>v</em><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4NK5Imath8Matrix22neERK8Matrix22" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Inequality. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4NK5Imath8Matrix2217equalWithAbsErrorERK8Matrix22I1TE1T"> <span id="_CPPv3NK5Imath8Matrix2217equalWithAbsErrorERK8Matrix22I1TE1T"></span><span id="_CPPv2NK5Imath8Matrix2217equalWithAbsErrorERK8Matrix22I1TE1T"></span><span id="Imath::Matrix22::equalWithAbsError__Matrix22:T:CR.TCCE"></span><span class="target" id="class_imath_1_1_matrix22_1a60de71010c5e5eda4d831716cdc30e85"></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="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a><<a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22::T">T</a>> &<em>v</em>, <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22::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="#_CPPv4NK5Imath8Matrix2217equalWithAbsErrorERK8Matrix22I1TE1T" 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="_CPPv4NK5Imath8Matrix2217equalWithRelErrorERK8Matrix22I1TE1T"> <span id="_CPPv3NK5Imath8Matrix2217equalWithRelErrorERK8Matrix22I1TE1T"></span><span id="_CPPv2NK5Imath8Matrix2217equalWithRelErrorERK8Matrix22I1TE1T"></span><span id="Imath::Matrix22::equalWithRelError__Matrix22:T:CR.TCCE"></span><span class="target" id="class_imath_1_1_matrix22_1a2dedf096534ab6d550186b2c22ccff20"></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="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a><<a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22::T">T</a>> &<em>v</em>, <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22::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="#_CPPv4NK5Imath8Matrix2217equalWithRelErrorERK8Matrix22I1TE1T" 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="_CPPv4N5Imath8Matrix22pLERK8Matrix22"> <span id="_CPPv3N5Imath8Matrix22pLERK8Matrix22"></span><span id="_CPPv2N5Imath8Matrix22pLERK8Matrix22"></span><span id="Imath::Matrix22::add-assign-operator__Matrix22CRCE"></span><span class="target" id="class_imath_1_1_matrix22_1a88952c0ef0826846a6a8b7838d9e8374"></span><em class="property">inline</em> <em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a> &<code class="sig-name descname">operator+=</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a> &<em>v</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath8Matrix22pLERK8Matrix22" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Component-wise addition. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath8Matrix22pLE1T"> <span id="_CPPv3N5Imath8Matrix22pLE1T"></span><span id="_CPPv2N5Imath8Matrix22pLE1T"></span><span id="Imath::Matrix22::add-assign-operator__TCE"></span><span class="target" id="class_imath_1_1_matrix22_1a21a8ca2b7c1954345fd3383d055ab725"></span><em class="property">inline</em> <em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a> &<code class="sig-name descname">operator+=</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22::T">T</a> <em>a</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath8Matrix22pLE1T" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Component-wise addition. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4NK5Imath8Matrix22plERK8Matrix22"> <span id="_CPPv3NK5Imath8Matrix22plERK8Matrix22"></span><span id="_CPPv2NK5Imath8Matrix22plERK8Matrix22"></span><span id="Imath::Matrix22::add-operator__Matrix22CRCCE"></span><span class="target" id="class_imath_1_1_matrix22_1a5a75c76c332f1e50e71a0183a9e77cfb"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a> <code class="sig-name descname">operator+</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a> &<em>v</em><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4NK5Imath8Matrix22plERK8Matrix22" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Component-wise addition. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath8Matrix22mIERK8Matrix22"> <span id="_CPPv3N5Imath8Matrix22mIERK8Matrix22"></span><span id="_CPPv2N5Imath8Matrix22mIERK8Matrix22"></span><span id="Imath::Matrix22::sub-assign-operator__Matrix22CRCE"></span><span class="target" id="class_imath_1_1_matrix22_1abb4c4bbd4c3782e0a5130fe20e695c54"></span><em class="property">inline</em> <em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a> &<code class="sig-name descname">operator-=</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a> &<em>v</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath8Matrix22mIERK8Matrix22" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Component-wise subtraction. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath8Matrix22mIE1T"> <span id="_CPPv3N5Imath8Matrix22mIE1T"></span><span id="_CPPv2N5Imath8Matrix22mIE1T"></span><span id="Imath::Matrix22::sub-assign-operator__TCE"></span><span class="target" id="class_imath_1_1_matrix22_1ae997d61432ab393578987a49c770e25b"></span><em class="property">inline</em> <em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a> &<code class="sig-name descname">operator-=</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22::T">T</a> <em>a</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath8Matrix22mIE1T" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Component-wise subtraction. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4NK5Imath8Matrix22miERK8Matrix22"> <span id="_CPPv3NK5Imath8Matrix22miERK8Matrix22"></span><span id="_CPPv2NK5Imath8Matrix22miERK8Matrix22"></span><span id="Imath::Matrix22::sub-operator__Matrix22CRCCE"></span><span class="target" id="class_imath_1_1_matrix22_1a5c9aec7bf70a748a361435df5c8d3c5e"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a> <code class="sig-name descname">operator-</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a> &<em>v</em><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4NK5Imath8Matrix22miERK8Matrix22" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Component-wise subtraction. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4NK5Imath8Matrix22miEv"> <span id="_CPPv3NK5Imath8Matrix22miEv"></span><span id="_CPPv2NK5Imath8Matrix22miEv"></span><span id="Imath::Matrix22::sub-operatorCCE"></span><span class="target" id="class_imath_1_1_matrix22_1af8fa30bb0b98b8874f89f1df6892e3e4"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</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="#_CPPv4NK5Imath8Matrix22miEv" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Component-wise multiplication by -1. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath8Matrix226negateEv"> <span id="_CPPv3N5Imath8Matrix226negateEv"></span><span id="_CPPv2N5Imath8Matrix226negateEv"></span><span id="Imath::Matrix22::negateCE"></span><span class="target" id="class_imath_1_1_matrix22_1a7ec3e9537bf71f6987fd239af1f32a08"></span><em class="property">inline</em> <em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</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="#_CPPv4N5Imath8Matrix226negateEv" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Component-wise multiplication by -1. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath8Matrix22mLE1T"> <span id="_CPPv3N5Imath8Matrix22mLE1T"></span><span id="_CPPv2N5Imath8Matrix22mLE1T"></span><span id="Imath::Matrix22::mul-assign-operator__TCE"></span><span class="target" id="class_imath_1_1_matrix22_1adde19b8b13d3b3e422a044a072c36906"></span><em class="property">inline</em> <em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a> &<code class="sig-name descname">operator*=</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22::T">T</a> <em>a</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath8Matrix22mLE1T" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Component-wise multiplication. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4NK5Imath8Matrix22mlE1T"> <span id="_CPPv3NK5Imath8Matrix22mlE1T"></span><span id="_CPPv2NK5Imath8Matrix22mlE1T"></span><span id="Imath::Matrix22::mul-operator__TCCE"></span><span class="target" id="class_imath_1_1_matrix22_1a12cd109352fc106750b5906765cd4c3e"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a> <code class="sig-name descname">operator*</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22::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="#_CPPv4NK5Imath8Matrix22mlE1T" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Component-wise multiplication. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath8Matrix22dVE1T"> <span id="_CPPv3N5Imath8Matrix22dVE1T"></span><span id="_CPPv2N5Imath8Matrix22dVE1T"></span><span id="Imath::Matrix22::div-assign-operator__TCE"></span><span class="target" id="class_imath_1_1_matrix22_1a40da182f3a4562a26d51c6fd92aee9b2"></span><em class="property">inline</em> <em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a> &<code class="sig-name descname">operator/=</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22::T">T</a> <em>a</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath8Matrix22dVE1T" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Component-wise division. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4NK5Imath8Matrix22dvE1T"> <span id="_CPPv3NK5Imath8Matrix22dvE1T"></span><span id="_CPPv2NK5Imath8Matrix22dvE1T"></span><span id="Imath::Matrix22::div-operator__TCCE"></span><span class="target" id="class_imath_1_1_matrix22_1a0cf02f24f17a7eb2bc92d7d3095a512c"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a> <code class="sig-name descname">operator/</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22::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="#_CPPv4NK5Imath8Matrix22dvE1T" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Component-wise division. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath8Matrix22mLERK8Matrix22"> <span id="_CPPv3N5Imath8Matrix22mLERK8Matrix22"></span><span id="_CPPv2N5Imath8Matrix22mLERK8Matrix22"></span><span id="Imath::Matrix22::mul-assign-operator__Matrix22CRCE"></span><span class="target" id="class_imath_1_1_matrix22_1a0ea4ae25cd85455d5dfcfc05090defa6"></span><em class="property">inline</em> <em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a> &<code class="sig-name descname">operator*=</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a> &<em>v</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath8Matrix22mLERK8Matrix22" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Matrix-matrix multiplication. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4NK5Imath8Matrix22mlERK8Matrix22"> <span id="_CPPv3NK5Imath8Matrix22mlERK8Matrix22"></span><span id="_CPPv2NK5Imath8Matrix22mlERK8Matrix22"></span><span id="Imath::Matrix22::mul-operator__Matrix22CRCCE"></span><span class="target" id="class_imath_1_1_matrix22_1a6d1c3b1c327d362bd403c6c16dd88877"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a> <code class="sig-name descname">operator*</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a> &<em>v</em><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4NK5Imath8Matrix22mlERK8Matrix22" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Matrix-matrix multiplication. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4I0ENK5Imath8Matrix2213multDirMatrixEvRK4Vec2I1SER4Vec2I1SE"> <span id="_CPPv3I0ENK5Imath8Matrix2213multDirMatrixERK4Vec2I1SER4Vec2I1SE"></span><span id="_CPPv2I0ENK5Imath8Matrix2213multDirMatrixERK4Vec2I1SER4Vec2I1SE"></span>template<class <code class="sig-name descname">S</code>><br /><span class="target" id="class_imath_1_1_matrix22_1a2e18ccbcfa1dca8f9c750f62bf56dfbc"></span><em class="property">inline</em> void <code class="sig-name descname">multDirMatrix</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="Vec2.html#_CPPv4I0EN5Imath4Vec2E" title="Imath::Vec2">Vec2</a><<a class="reference internal" href="#_CPPv4I0ENK5Imath8Matrix2213multDirMatrixEvRK4Vec2I1SER4Vec2I1SE" title="Imath::Matrix22::multDirMatrix::S">S</a>> &<em>src</em>, <a class="reference internal" href="Vec2.html#_CPPv4I0EN5Imath4Vec2E" title="Imath::Vec2">Vec2</a><<a class="reference internal" href="#_CPPv4I0ENK5Imath8Matrix2213multDirMatrixEvRK4Vec2I1SER4Vec2I1SE" title="Imath::Matrix22::multDirMatrix::S">S</a>> &<em>dst</em><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4I0ENK5Imath8Matrix2213multDirMatrixEvRK4Vec2I1SER4Vec2I1SE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Vector * matrix multiplication. </p> <p><dl class="simple"> <dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple"> <li><p><code class="docutils literal notranslate"><span class="pre">[in]</span> <span class="pre">src</span></code>: Input vector </p></li> <li><p><code class="docutils literal notranslate"><span class="pre">[out]</span> <span class="pre">dst</span></code>: transformed vector </p></li> </ul> </dd> </dl> </p> </dd></dl> </div> <div class="breathe-sectiondef docutils container"> <p class="breathe-sectiondef-title rubric">Maniplation</p> <dl class="cpp function"> <dt id="_CPPv4N5Imath8Matrix2212makeIdentityEv"> <span id="_CPPv3N5Imath8Matrix2212makeIdentityEv"></span><span id="_CPPv2N5Imath8Matrix2212makeIdentityEv"></span><span id="Imath::Matrix22::makeIdentity"></span><span class="target" id="class_imath_1_1_matrix22_1ace00baecb704bedd09437f455181150c"></span><em class="property">inline</em> void <code class="sig-name descname">makeIdentity</code><span class="sig-paren">(</span><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath8Matrix2212makeIdentityEv" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Set to the identity. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath8Matrix229transposeEv"> <span id="_CPPv3N5Imath8Matrix229transposeEv"></span><span id="_CPPv2N5Imath8Matrix229transposeEv"></span><span id="Imath::Matrix22::transposeCE"></span><span class="target" id="class_imath_1_1_matrix22_1a13d4d636c73ae09047f3bb4870f6243b"></span><em class="property">inline</em> <em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a> &<code class="sig-name descname">transpose</code><span class="sig-paren">(</span><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath8Matrix229transposeEv" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Transpose. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4NK5Imath8Matrix2210transposedEv"> <span id="_CPPv3NK5Imath8Matrix2210transposedEv"></span><span id="_CPPv2NK5Imath8Matrix2210transposedEv"></span><span id="Imath::Matrix22::transposedCCE"></span><span class="target" id="class_imath_1_1_matrix22_1a661af9a84fa72ffa2eb952385fd8c6c8"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a> <code class="sig-name descname">transposed</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="#_CPPv4NK5Imath8Matrix2210transposedEv" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Return the transpose. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath8Matrix226invertEb"> <span id="_CPPv3N5Imath8Matrix226invertEb"></span><span id="_CPPv2N5Imath8Matrix226invertEb"></span><span id="Imath::Matrix22::invert__bCE"></span><span class="target" id="class_imath_1_1_matrix22_1aa1785ff3250326208b9b3a15a7c5a384"></span><em class="property">inline</em> <em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a> &<code class="sig-name descname">invert</code><span class="sig-paren">(</span>bool <em>singExc</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv4N5Imath8Matrix226invertEb" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Invert in place. </p> <p><dl class="simple"> <dt><strong>Return</strong></dt><dd><p>const reference to this </p> </dd> <dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple"> <li><p><code class="docutils literal notranslate"><span class="pre">singExc</span></code>: If true, throw an exception if the matrix cannot be inverted. </p></li> </ul> </dd> </dl> </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath8Matrix226invertEv"> <span id="_CPPv3N5Imath8Matrix226invertEv"></span><span id="_CPPv2N5Imath8Matrix226invertEv"></span><span id="Imath::Matrix22::invertCE"></span><span class="target" id="class_imath_1_1_matrix22_1acaf5c11e09fb588d81ff49d155eefec4"></span><em class="property">inline</em> <em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a> &<code class="sig-name descname">invert</code><span class="sig-paren">(</span><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath8Matrix226invertEv" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Invert in place. </p> <p><dl class="simple"> <dt><strong>Return</strong></dt><dd><p>const reference to this </p> </dd> </dl> </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4NK5Imath8Matrix227inverseEb"> <span id="_CPPv3NK5Imath8Matrix227inverseEb"></span><span id="_CPPv2NK5Imath8Matrix227inverseEb"></span><span id="Imath::Matrix22::inverse__bCCE"></span><span class="target" id="class_imath_1_1_matrix22_1a71bccc77509cfed5c6a284aa6397e65e"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a><<a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22::T">T</a>> <code class="sig-name descname">inverse</code><span class="sig-paren">(</span>bool <em>singExc</em><span class="sig-paren">)</span> <em class="property">const</em><a class="headerlink" href="#_CPPv4NK5Imath8Matrix227inverseEb" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Return the inverse, leaving this unmodified. </p> <p><dl class="simple"> <dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple"> <li><p><code class="docutils literal notranslate"><span class="pre">singExc</span></code>: If true, throw an exception if the matrix cannot be inverted. </p></li> </ul> </dd> </dl> </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4NK5Imath8Matrix227inverseEv"> <span id="_CPPv3NK5Imath8Matrix227inverseEv"></span><span id="_CPPv2NK5Imath8Matrix227inverseEv"></span><span id="Imath::Matrix22::inverseCCE"></span><span class="target" id="class_imath_1_1_matrix22_1a10e6797b4f82c711d2bdb0a5d998ec04"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a><<a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22::T">T</a>> <code class="sig-name descname">inverse</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="#_CPPv4NK5Imath8Matrix227inverseEv" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Return the inverse, leaving this unmodified. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4NK5Imath8Matrix2211determinantEv"> <span id="_CPPv3NK5Imath8Matrix2211determinantEv"></span><span id="_CPPv2NK5Imath8Matrix2211determinantEv"></span><span id="Imath::Matrix22::determinantCCE"></span><span class="target" id="class_imath_1_1_matrix22_1a29e68f3c8d48c4e5d60393d5e6477de0"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22::T">T</a> <code class="sig-name descname">determinant</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="#_CPPv4NK5Imath8Matrix2211determinantEv" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Determinant. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4I0EN5Imath8Matrix2211setRotationERK8Matrix221S"> <span id="_CPPv3I0EN5Imath8Matrix2211setRotationE1S"></span><span id="_CPPv2I0EN5Imath8Matrix2211setRotationE1S"></span>template<class <code class="sig-name descname">S</code>><br /><span class="target" id="class_imath_1_1_matrix22_1ac4a2b34a1b3374f973a2b8b4eb3e60d5"></span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a> &<code class="sig-name descname">setRotation</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix2211setRotationERK8Matrix221S" title="Imath::Matrix22::setRotation::S">S</a> <em>r</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4I0EN5Imath8Matrix2211setRotationERK8Matrix221S" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Set matrix to rotation by r (in radians) </p> <p><dl class="simple"> <dt><strong>Return</strong></dt><dd><p>const referenced to this </p> </dd> </dl> </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4I0EN5Imath8Matrix226rotateERK8Matrix221S"> <span id="_CPPv3I0EN5Imath8Matrix226rotateE1S"></span><span id="_CPPv2I0EN5Imath8Matrix226rotateE1S"></span>template<class <code class="sig-name descname">S</code>><br /><span class="target" id="class_imath_1_1_matrix22_1a7ebb1b32f072c189a0020c1e533963fa"></span><em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a> &<code class="sig-name descname">rotate</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix226rotateERK8Matrix221S" title="Imath::Matrix22::rotate::S">S</a> <em>r</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4I0EN5Imath8Matrix226rotateERK8Matrix221S" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Rotate the given matrix by r (in radians) </p> <p><dl class="simple"> <dt><strong>Return</strong></dt><dd><p>const referenced to this </p> </dd> </dl> </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4N5Imath8Matrix228setScaleE1T"> <span id="_CPPv3N5Imath8Matrix228setScaleE1T"></span><span id="_CPPv2N5Imath8Matrix228setScaleE1T"></span><span id="Imath::Matrix22::setScale__TCE"></span><span class="target" id="class_imath_1_1_matrix22_1a4885cb217ed3bcf0ae38b8821202502d"></span><em class="property">inline</em> <em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a> &<code class="sig-name descname">setScale</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22::T">T</a> <em>s</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath8Matrix228setScaleE1T" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Set matrix to scale by given uniform factor. </p> <p><dl class="simple"> <dt><strong>Return</strong></dt><dd><p>const referenced to this </p> </dd> </dl> </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4I0EN5Imath8Matrix228setScaleERK8Matrix22RK4Vec2I1SE"> <span id="_CPPv3I0EN5Imath8Matrix228setScaleERK4Vec2I1SE"></span><span id="_CPPv2I0EN5Imath8Matrix228setScaleERK4Vec2I1SE"></span>template<class <code class="sig-name descname">S</code>><br /><span class="target" id="class_imath_1_1_matrix22_1ac94cfe354544b50f0ba919f5889ca9b1"></span><em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a> &<code class="sig-name descname">setScale</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="Vec2.html#_CPPv4I0EN5Imath4Vec2E" title="Imath::Vec2">Vec2</a><<a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix228setScaleERK8Matrix22RK4Vec2I1SE" title="Imath::Matrix22::setScale::S">S</a>> &<em>s</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4I0EN5Imath8Matrix228setScaleERK8Matrix22RK4Vec2I1SE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Set matrix to scale by given vector. </p> <p><dl class="simple"> <dt><strong>Return</strong></dt><dd><p>const referenced to this </p> </dd> </dl> </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4I0EN5Imath8Matrix225scaleERK8Matrix22RK4Vec2I1SE"> <span id="_CPPv3I0EN5Imath8Matrix225scaleERK4Vec2I1SE"></span><span id="_CPPv2I0EN5Imath8Matrix225scaleERK4Vec2I1SE"></span>template<class <code class="sig-name descname">S</code>><br /><span class="target" id="class_imath_1_1_matrix22_1a527704f75e26344eab3dcdf90938b2a6"></span><em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a> &<code class="sig-name descname">scale</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="Vec2.html#_CPPv4I0EN5Imath4Vec2E" title="Imath::Vec2">Vec2</a><<a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix225scaleERK8Matrix22RK4Vec2I1SE" title="Imath::Matrix22::scale::S">S</a>> &<em>s</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4I0EN5Imath8Matrix225scaleERK8Matrix22RK4Vec2I1SE" title="Permalink to this definition">¶</a><br /></dt> <dd><p><dl class="simple"> <dt><strong>Return</strong></dt><dd><p>const referenced to this </p> </dd> </dl> </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_matrix22_1ab4c779394b32641c4204a071cf24f106"></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_matrix22_1a5f1bd3e5a73a66ea958d95688590c30b"></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_matrix22_1a4669d719189020cc7ec8715a6d72dbd7"></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_matrix22_1a48815fa1250a98e5f49e78e32ea00111"></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="_CPPv4N5Imath8Matrix228BaseTypeE"> <span id="_CPPv3N5Imath8Matrix228BaseTypeE"></span><span id="_CPPv2N5Imath8Matrix228BaseTypeE"></span><span id="Imath::Matrix22::BaseType"></span><span class="target" id="class_imath_1_1_matrix22_1ae64360722cf7ef8baa4b387269b492c1"></span><em class="property">typedef </em><a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22::T">T</a> <code class="sig-name descname">BaseType</code><a class="headerlink" href="#_CPPv4N5Imath8Matrix228BaseTypeE" 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> <dl class="cpp type"> <dt id="_CPPv4N5Imath8Matrix2211BaseVecTypeE"> <span id="_CPPv3N5Imath8Matrix2211BaseVecTypeE"></span><span id="_CPPv2N5Imath8Matrix2211BaseVecTypeE"></span><span id="Imath::Matrix22::BaseVecType"></span><span class="target" id="class_imath_1_1_matrix22_1a14799f03329441345f57eab0d6f66acb"></span><em class="property">typedef </em><a class="reference internal" href="Vec2.html#_CPPv4I0EN5Imath4Vec2E" title="Imath::Vec2">Vec2</a><<a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22::T">T</a>> <code class="sig-name descname">BaseVecType</code><a class="headerlink" href="#_CPPv4N5Imath8Matrix2211BaseVecTypeE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>The base vector type. </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="_CPPv4N5Imath8Matrix22ixEi"> <span id="_CPPv3N5Imath8Matrix22ixEi"></span><span id="_CPPv2N5Imath8Matrix22ixEi"></span><span id="Imath::Matrix22::subscript-operator__i"></span><span class="target" id="class_imath_1_1_matrix22_1af247d93e691d1d39f527496590ed399a"></span><em class="property">inline</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22::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="#_CPPv4N5Imath8Matrix22ixEi" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Row access. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4NK5Imath8Matrix22ixEi"> <span id="_CPPv3NK5Imath8Matrix22ixEi"></span><span id="_CPPv2NK5Imath8Matrix22ixEi"></span><span id="Imath::Matrix22::subscript-operator__iC"></span><span class="target" id="class_imath_1_1_matrix22_1a2ca4af4fadb6ae665f0b181f9e986836"></span><em class="property">inline</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22::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="#_CPPv4NK5Imath8Matrix22ixEi" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Row access. </p> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4I0EN5Imath8Matrix228setValueER8Matrix22I1TERK8Matrix22I1SE"> template<class <code class="sig-name descname">S</code>><br /><span class="target" id="class_imath_1_1_matrix22_1aa956f32b10843c6d7b77b7072b9ec1f8"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a><<a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22::T">T</a>> &<code class="sig-name descname">setValue</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a><<a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix228setValueER8Matrix22I1TERK8Matrix22I1SE" title="Imath::Matrix22::setValue::S">S</a>> &<em>v</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4I0EN5Imath8Matrix228setValueER8Matrix22I1TERK8Matrix22I1SE" title="Permalink to this definition">¶</a><br /></dt> <dd></dd></dl> <dl class="cpp function"> <dt id="_CPPv4I0EN5Imath8Matrix2212setTheMatrixER8Matrix22I1TERK8Matrix22I1SE"> template<class <code class="sig-name descname">S</code>><br /><span class="target" id="class_imath_1_1_matrix22_1afe21fba96ff4151f994ab84b9d709944"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a><<a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22::T">T</a>> &<code class="sig-name descname">setTheMatrix</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a><<a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix2212setTheMatrixER8Matrix22I1TERK8Matrix22I1SE" title="Imath::Matrix22::setTheMatrix::S">S</a>> &<em>v</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4I0EN5Imath8Matrix2212setTheMatrixER8Matrix22I1TERK8Matrix22I1SE" title="Permalink to this definition">¶</a><br /></dt> <dd></dd></dl> <dl class="cpp function"> <dt id="_CPPv4I0EN5Imath8Matrix2211setRotationERK8Matrix22I1TE1S"> template<class <code class="sig-name descname">S</code>><br /><span class="target" id="class_imath_1_1_matrix22_1acfaaef6cef4ac96e7f3d516d676dcf86"></span><em class="property">inline</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a><<a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22::T">T</a>> &<code class="sig-name descname">setRotation</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix2211setRotationERK8Matrix22I1TE1S" title="Imath::Matrix22::setRotation::S">S</a> <em>r</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4I0EN5Imath8Matrix2211setRotationERK8Matrix22I1TE1S" title="Permalink to this definition">¶</a><br /></dt> <dd></dd></dl> <dl class="cpp function"> <dt id="_CPPv4I0EN5Imath8Matrix226rotateERK8Matrix22I1TE1S"> template<class <code class="sig-name descname">S</code>><br /><span class="target" id="class_imath_1_1_matrix22_1a55d3dfabb7dd86d871fdf2feab841e11"></span><em class="property">inline</em> <em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a><<a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22::T">T</a>> &<code class="sig-name descname">rotate</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix226rotateERK8Matrix22I1TE1S" title="Imath::Matrix22::rotate::S">S</a> <em>r</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4I0EN5Imath8Matrix226rotateERK8Matrix22I1TE1S" title="Permalink to this definition">¶</a><br /></dt> <dd></dd></dl> <dl class="cpp function"> <dt id="_CPPv4I0EN5Imath8Matrix228setScaleERK8Matrix22I1TERK4Vec2I1SE"> template<class <code class="sig-name descname">S</code>><br /><span class="target" id="class_imath_1_1_matrix22_1a73522bcc37d062053938ddeb3080d3d3"></span><em class="property">inline</em> <em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a><<a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22::T">T</a>> &<code class="sig-name descname">setScale</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="Vec2.html#_CPPv4I0EN5Imath4Vec2E" title="Imath::Vec2">Vec2</a><<a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix228setScaleERK8Matrix22I1TERK4Vec2I1SE" title="Imath::Matrix22::setScale::S">S</a>> &<em>s</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4I0EN5Imath8Matrix228setScaleERK8Matrix22I1TERK4Vec2I1SE" title="Permalink to this definition">¶</a><br /></dt> <dd></dd></dl> <dl class="cpp function"> <dt id="_CPPv4I0EN5Imath8Matrix225scaleERK8Matrix22I1TERK4Vec2I1SE"> template<class <code class="sig-name descname">S</code>><br /><span class="target" id="class_imath_1_1_matrix22_1af8850b9ea065987a21c94688b7842166"></span><em class="property">inline</em> <em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a><<a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22::T">T</a>> &<code class="sig-name descname">scale</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="Vec2.html#_CPPv4I0EN5Imath4Vec2E" title="Imath::Vec2">Vec2</a><<a class="reference internal" href="#_CPPv4I0EN5Imath8Matrix225scaleERK8Matrix22I1TERK4Vec2I1SE" title="Imath::Matrix22::scale::S">S</a>> &<em>s</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4I0EN5Imath8Matrix225scaleERK8Matrix22I1TERK4Vec2I1SE" title="Permalink to this definition">¶</a><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_matrix22_1a66e1cdb23bffddbce69484bc8e77500f"></span><code class="sig-name descname">static inline constexpr static unsigned int dimensions () noexcept</code></dt> <dd><p>Return the number of the row and column dimensions, i.e. 2. </p> </dd></dl> </div> </dd></dl> <dl class="cpp function"> <dt id="_CPPv4I0EN5ImathlsERNSt7ostreamERNSt7ostreamERK8Matrix22I1TE"> <span id="_CPPv3I0EN5ImathlsERNSt7ostreamERK8Matrix22I1TE"></span><span id="_CPPv2I0EN5ImathlsERNSt7ostreamERK8Matrix22I1TE"></span>template<class <code class="sig-name descname">T</code>><br /><span class="target" id="_imath_matrix_8h_1a14ad81cc9ffa06231b5ec6716027e9f4"></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="#_CPPv4I0EN5Imath8Matrix22E" title="Imath::Matrix22">Matrix22</a><<a class="reference internal" href="#_CPPv4I0EN5ImathlsERNSt7ostreamERNSt7ostreamERK8Matrix22I1TE" title="Imath::operator<<::T">T</a>> &<em>m</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv4I0EN5ImathlsERNSt7ostreamERNSt7ostreamERK8Matrix22I1TE" title="Permalink to this definition">¶</a><br /></dt> <dd><p>Stream output, as: (m00 m01 m10 m11) </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="Line3.html" title="previous chapter">Line3</a></p> <h4>Next topic</h4> <p class="topless"><a href="Matrix33.html" title="next chapter">Matrix33</a></p> <div role="note" aria-label="source link"> <h3>This Page</h3> <ul class="this-page-menu"> <li><a href="../_sources/classes/Matrix22.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="Matrix33.html" title="Matrix33" >next</a> |</li> <li class="right" > <a href="Line3.html" title="Line3" >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="">Matrix22</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>