%PDF- %PDF-
| Direktori : /usr/share/doc/imath-devel/html/classes/ |
| Current File : //usr/share/doc/imath-devel/html/classes/Color3.html |
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Color3 — 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="Color4" href="Color4.html" />
<link rel="prev" title="Box" href="Box.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="Color4.html" title="Color4"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="Box.html" title="Box"
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="">Color3</a></li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">
<div class="section" id="color3">
<h1>Color3<a class="headerlink" href="#color3" title="Permalink to this headline">¶</a></h1>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="c1">#include <Imath/ImathColor.h></span>
</pre></div>
</div>
<p>The <code class="docutils literal notranslate"><span class="pre">Color3</span></code> class template represents a 3-component color, with
pre-defined typedefs of <code class="docutils literal notranslate"><span class="pre">unsigned</span> <span class="pre">char</span></code>, <code class="docutils literal notranslate"><span class="pre">half</span></code>, and <code class="docutils literal notranslate"><span class="pre">float</span></code>.</p>
<p>The <code class="docutils literal notranslate"><span class="pre">Color3</span></code> class inherits from <code class="docutils literal notranslate"><span class="pre">Vec3</span></code> and thus has
fields named <code class="docutils literal notranslate"><span class="pre">x</span></code>, <code class="docutils literal notranslate"><span class="pre">y</span></code>, and <code class="docutils literal notranslate"><span class="pre">z</span></code>. The class itself implies no
specific interpretation of the values.</p>
<p>There are also various utility functions that operate on colors
defined in <code class="docutils literal notranslate"><span class="pre">ImathColorAlgo.h</span></code> and described in <a class="reference internal" href="../functions/color.html#color-functions"><span class="std std-ref">Color 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/ImathColor.h></span><span class="cp"></span>
<span class="kt">void</span>
<span class="nf">color3_example</span><span class="p">()</span>
<span class="p">{</span>
<span class="n">Imath</span><span class="o">::</span><span class="n">C3c</span> <span class="n">r</span> <span class="p">(</span><span class="mi">255</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">Imath</span><span class="o">::</span><span class="n">C3c</span> <span class="n">g</span> <span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="mi">255</span><span class="p">,</span> <span class="mi">0</span><span class="p">);</span>
<span class="n">Imath</span><span class="o">::</span><span class="n">C3c</span> <span class="n">b</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="mi">255</span><span class="p">);</span>
<span class="n">Imath</span><span class="o">::</span><span class="n">C3c</span> <span class="n">c</span> <span class="o">=</span> <span class="n">r</span> <span class="o">+</span> <span class="n">g</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">c</span><span class="p">.</span><span class="n">x</span> <span class="o">==</span> <span class="mi">255</span><span class="p">);</span>
<span class="n">assert</span> <span class="p">(</span><span class="n">c</span><span class="p">.</span><span class="n">x</span> <span class="o">==</span> <span class="mi">255</span><span class="p">);</span>
<span class="n">assert</span> <span class="p">(</span><span class="n">c</span><span class="p">.</span><span class="n">x</span> <span class="o">==</span> <span class="mi">255</span><span class="p">);</span>
<span class="p">}</span>
</pre></div>
</div>
<dl class="cpp type">
<dt id="_CPPv4N5Imath7Color3cE">
<span id="_CPPv3N5Imath7Color3cE"></span><span id="_CPPv2N5Imath7Color3cE"></span><span id="Imath::Color3c"></span><span class="target" id="_imath_color_8h_1ae54fb562f41ada4b17f6c3d773c11ae0"></span><em class="property">typedef </em><a class="reference internal" href="#_CPPv4I0EN5Imath6Color3E" title="Imath::Color3">Color3</a><unsigned char> <code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">Color3c</code><a class="headerlink" href="#_CPPv4N5Imath7Color3cE" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>3 8-bit integer channels </p>
</dd></dl>
<dl class="cpp type">
<dt id="_CPPv4N5Imath7Color3hE">
<span id="_CPPv3N5Imath7Color3hE"></span><span id="_CPPv2N5Imath7Color3hE"></span><span id="Imath::Color3h"></span><span class="target" id="_imath_color_8h_1a0b5a971351c935d3d4716076e35276b9"></span><em class="property">typedef </em><a class="reference internal" href="#_CPPv4I0EN5Imath6Color3E" title="Imath::Color3">Color3</a><<a class="reference internal" href="half.html#_CPPv4N5Imath4halfE" title="Imath::half">half</a>> <code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">Color3h</code><a class="headerlink" href="#_CPPv4N5Imath7Color3hE" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>3 half channels </p>
</dd></dl>
<dl class="cpp type">
<dt id="_CPPv4N5Imath7Color3fE">
<span id="_CPPv3N5Imath7Color3fE"></span><span id="_CPPv2N5Imath7Color3fE"></span><span id="Imath::Color3f"></span><span class="target" id="_imath_color_8h_1a2079f4d9226db194cdc4def1053e18f2"></span><em class="property">typedef </em><a class="reference internal" href="#_CPPv4I0EN5Imath6Color3E" title="Imath::Color3">Color3</a><float> <code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">Color3f</code><a class="headerlink" href="#_CPPv4N5Imath7Color3fE" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>3 float channels </p>
</dd></dl>
<dl class="cpp type">
<dt id="_CPPv4N5Imath3C3cE">
<span id="_CPPv3N5Imath3C3cE"></span><span id="_CPPv2N5Imath3C3cE"></span><span id="Imath::C3c"></span><span class="target" id="_imath_color_8h_1af0fd8de59a089a4d4978db1c224a2992"></span><em class="property">typedef </em><a class="reference internal" href="#_CPPv4I0EN5Imath6Color3E" title="Imath::Color3">Color3</a><unsigned char> <code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">C3c</code><a class="headerlink" href="#_CPPv4N5Imath3C3cE" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>3 8-bit integer channels </p>
</dd></dl>
<dl class="cpp type">
<dt id="_CPPv4N5Imath3C3hE">
<span id="_CPPv3N5Imath3C3hE"></span><span id="_CPPv2N5Imath3C3hE"></span><span id="Imath::C3h"></span><span class="target" id="_imath_color_8h_1a556484a52d7905e0f6cbab6289410981"></span><em class="property">typedef </em><a class="reference internal" href="#_CPPv4I0EN5Imath6Color3E" title="Imath::Color3">Color3</a><<a class="reference internal" href="half.html#_CPPv4N5Imath4halfE" title="Imath::half">half</a>> <code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">C3h</code><a class="headerlink" href="#_CPPv4N5Imath3C3hE" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>3 half channels </p>
</dd></dl>
<dl class="cpp type">
<dt id="_CPPv4N5Imath3C3fE">
<span id="_CPPv3N5Imath3C3fE"></span><span id="_CPPv2N5Imath3C3fE"></span><span id="Imath::C3f"></span><span class="target" id="_imath_color_8h_1ac78c1d508ffc56f05e3a1b7c2c68788c"></span><em class="property">typedef </em><a class="reference internal" href="#_CPPv4I0EN5Imath6Color3E" title="Imath::Color3">Color3</a><float> <code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">C3f</code><a class="headerlink" href="#_CPPv4N5Imath3C3fE" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>3 float channels </p>
</dd></dl>
<dl class="cpp class">
<dt id="_CPPv4I0EN5Imath6Color3E">
<span id="_CPPv3I0EN5Imath6Color3E"></span><span id="_CPPv2I0EN5Imath6Color3E"></span>template<class <code class="sig-name descname">T</code>><br /><span class="target" id="class_imath_1_1_color3"></span><em class="property">class </em><code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">Color3</code> : <em class="property">public</em> Imath::<a class="reference internal" href="Vec3.html#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath6Color3E" title="Imath::Color3::T">T</a>><a class="headerlink" href="#_CPPv4I0EN5Imath6Color3E" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>3-channel color class that inherits from <a class="reference internal" href="Vec3.html#class_imath_1_1_vec3"><span class="std std-ref">Vec3</span></a>. </p>
<p>This class does not impose interpretation on the channels, which can represent either rgb or hsv color values.</p>
<p>Note: because <a class="reference internal" href="#class_imath_1_1_color3"><span class="std std-ref">Color3</span></a> inherits from <a class="reference internal" href="Vec3.html#class_imath_1_1_vec3"><span class="std std-ref">Vec3</span></a>, its member fields are called <code class="docutils literal notranslate"><span class="pre">x</span></code>, <code class="docutils literal notranslate"><span class="pre">y</span></code>, and <code class="docutils literal notranslate"><span class="pre">z</span></code>. </p>
<div class="breathe-sectiondef docutils container">
<p class="breathe-sectiondef-title rubric">Constructors and Assignemt</p>
<dl class="cpp function">
<dt id="_CPPv4N5Imath6Color36Color3Ev">
<span id="_CPPv3N5Imath6Color36Color3Ev"></span><span id="_CPPv2N5Imath6Color36Color3Ev"></span><span id="Imath::Color3::Color3"></span><span class="target" id="class_imath_1_1_color3_1a5ecc988292925da290ab04165f5e4d3d"></span><em class="property">inline</em> <code class="sig-name descname">Color3</code><span class="sig-paren">(</span><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath6Color36Color3Ev" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>No initialization by default. </p>
</dd></dl>
<dl class="cpp function">
<dt id="_CPPv4N5Imath6Color36Color3E1T">
<span id="_CPPv3N5Imath6Color36Color3E1T"></span><span id="_CPPv2N5Imath6Color36Color3E1T"></span><span id="Imath::Color3::Color3__TCE"></span><span class="target" id="class_imath_1_1_color3_1abf80cdcfbb3a798e07197a88b7de3d1d"></span><em class="property">inline</em> <em class="property">explicit</em> <em class="property">constexpr</em> <code class="sig-name descname">Color3</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv4I0EN5Imath6Color3E" title="Imath::Color3::T">T</a> <em>a</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath6Color36Color3E1T" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Initialize to (a a a) </p>
</dd></dl>
<dl class="cpp function">
<dt id="_CPPv4N5Imath6Color36Color3E1T1T1T">
<span id="_CPPv3N5Imath6Color36Color3E1T1T1T"></span><span id="_CPPv2N5Imath6Color36Color3E1T1T1T"></span><span id="Imath::Color3::Color3__T.T.TCE"></span><span class="target" id="class_imath_1_1_color3_1aaca29d733f7b0b8134a10cd135a331b1"></span><em class="property">inline</em> <em class="property">constexpr</em> <code class="sig-name descname">Color3</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv4I0EN5Imath6Color3E" title="Imath::Color3::T">T</a> <em>a</em>, <a class="reference internal" href="#_CPPv4I0EN5Imath6Color3E" title="Imath::Color3::T">T</a> <em>b</em>, <a class="reference internal" href="#_CPPv4I0EN5Imath6Color3E" title="Imath::Color3::T">T</a> <em>c</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath6Color36Color3E1T1T1T" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Initialize to (a b c) </p>
</dd></dl>
<dl class="cpp function">
<dt id="_CPPv4N5Imath6Color36Color3ERK6Color3">
<span id="_CPPv3N5Imath6Color36Color3ERK6Color3"></span><span id="_CPPv2N5Imath6Color36Color3ERK6Color3"></span><span id="Imath::Color3::Color3__Color3CRCE"></span><span class="target" id="class_imath_1_1_color3_1afbe82d1dc4d50f0fb89a10fec0e13315"></span><em class="property">inline</em> <em class="property">constexpr</em> <code class="sig-name descname">Color3</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4N5Imath6Color36Color3ERK6Color3" title="Imath::Color3::Color3">Color3</a> &<em>c</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath6Color36Color3ERK6Color3" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Construct from <a class="reference internal" href="#class_imath_1_1_color3"><span class="std std-ref">Color3</span></a>. </p>
</dd></dl>
<dl class="cpp function">
<dt id="_CPPv4I0EN5Imath6Color36Color3ERK4Vec3I1SE">
<span id="_CPPv3I0EN5Imath6Color36Color3ERK4Vec3I1SE"></span><span id="_CPPv2I0EN5Imath6Color36Color3ERK4Vec3I1SE"></span>template<class <code class="sig-name descname">S</code>><br /><span class="target" id="class_imath_1_1_color3_1a1a1c70b0f9011ac6c7a8ffc4e80c392d"></span><em class="property">inline</em> <em class="property">constexpr</em> <code class="sig-name descname">Color3</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="Vec3.html#_CPPv4I0EN5Imath4Vec3E" title="Imath::Vec3">Vec3</a><<a class="reference internal" href="#_CPPv4I0EN5Imath6Color36Color3ERK4Vec3I1SE" title="Imath::Color3::Color3::S">S</a>> &<em>v</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4I0EN5Imath6Color36Color3ERK4Vec3I1SE" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Construct from <a class="reference internal" href="Vec3.html#class_imath_1_1_vec3"><span class="std std-ref">Vec3</span></a>. </p>
</dd></dl>
<dl class="cpp function">
<dt id="_CPPv4N5Imath6Color3D0Ev">
<span id="_CPPv3N5Imath6Color3D0Ev"></span><span id="_CPPv2N5Imath6Color3D0Ev"></span><span id="Imath::Color3::~Color3"></span><span class="target" id="class_imath_1_1_color3_1af3c7517e9e1cb4a0cb7f1aa5a5673941"></span><code class="sig-name descname">~Color3</code><span class="sig-paren">(</span><span class="sig-paren">)</span> = default<a class="headerlink" href="#_CPPv4N5Imath6Color3D0Ev" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Destructor. </p>
</dd></dl>
<dl class="cpp function">
<dt id="_CPPv4N5Imath6Color3aSERK6Color3">
<span id="_CPPv3N5Imath6Color3aSERK6Color3"></span><span id="_CPPv2N5Imath6Color3aSERK6Color3"></span><span id="Imath::Color3::assign-operator__Color3CRCE"></span><span class="target" id="class_imath_1_1_color3_1a16657895bffffa77973c71a480caf17c"></span><em class="property">inline</em> <em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath6Color3E" title="Imath::Color3">Color3</a> &<code class="sig-name descname">operator=</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath6Color3E" title="Imath::Color3">Color3</a> &<em>c</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath6Color3aSERK6Color3" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Component-wise assignment. </p>
</dd></dl>
</div>
<div class="breathe-sectiondef docutils container">
<p class="breathe-sectiondef-title rubric">Arithmetic</p>
<dl class="cpp function">
<dt id="_CPPv4N5Imath6Color3pLERK6Color3">
<span id="_CPPv3N5Imath6Color3pLERK6Color3"></span><span id="_CPPv2N5Imath6Color3pLERK6Color3"></span><span id="Imath::Color3::add-assign-operator__Color3CRCE"></span><span class="target" id="class_imath_1_1_color3_1a0902a323e82cc05b84ee9128c1f76b54"></span><em class="property">inline</em> <em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath6Color3E" title="Imath::Color3">Color3</a> &<code class="sig-name descname">operator+=</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath6Color3E" title="Imath::Color3">Color3</a> &<em>c</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath6Color3pLERK6Color3" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Component-wise addition. </p>
</dd></dl>
<dl class="cpp function">
<dt id="_CPPv4NK5Imath6Color3plERK6Color3">
<span id="_CPPv3NK5Imath6Color3plERK6Color3"></span><span id="_CPPv2NK5Imath6Color3plERK6Color3"></span><span id="Imath::Color3::add-operator__Color3CRCCE"></span><span class="target" id="class_imath_1_1_color3_1a166ebb4bf2abdbbaaa9afb0cbc92df53"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath6Color3E" title="Imath::Color3">Color3</a> <code class="sig-name descname">operator+</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath6Color3E" title="Imath::Color3">Color3</a> &<em>c</em><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4NK5Imath6Color3plERK6Color3" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Component-wise addition. </p>
</dd></dl>
<dl class="cpp function">
<dt id="_CPPv4N5Imath6Color3mIERK6Color3">
<span id="_CPPv3N5Imath6Color3mIERK6Color3"></span><span id="_CPPv2N5Imath6Color3mIERK6Color3"></span><span id="Imath::Color3::sub-assign-operator__Color3CRCE"></span><span class="target" id="class_imath_1_1_color3_1af62f1cccaab9654d59e5439d3afbe666"></span><em class="property">inline</em> <em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath6Color3E" title="Imath::Color3">Color3</a> &<code class="sig-name descname">operator-=</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath6Color3E" title="Imath::Color3">Color3</a> &<em>c</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath6Color3mIERK6Color3" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Component-wise subtraction. </p>
</dd></dl>
<dl class="cpp function">
<dt id="_CPPv4NK5Imath6Color3miERK6Color3">
<span id="_CPPv3NK5Imath6Color3miERK6Color3"></span><span id="_CPPv2NK5Imath6Color3miERK6Color3"></span><span id="Imath::Color3::sub-operator__Color3CRCCE"></span><span class="target" id="class_imath_1_1_color3_1a7dbdd9be18dc1ec36a4ebda04fcc398a"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath6Color3E" title="Imath::Color3">Color3</a> <code class="sig-name descname">operator-</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath6Color3E" title="Imath::Color3">Color3</a> &<em>c</em><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4NK5Imath6Color3miERK6Color3" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Component-wise subtraction. </p>
</dd></dl>
<dl class="cpp function">
<dt id="_CPPv4NK5Imath6Color3miEv">
<span id="_CPPv3NK5Imath6Color3miEv"></span><span id="_CPPv2NK5Imath6Color3miEv"></span><span id="Imath::Color3::sub-operatorCCE"></span><span class="target" id="class_imath_1_1_color3_1a429196c2c001e2dccd2d2cfb512092fb"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath6Color3E" title="Imath::Color3">Color3</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="#_CPPv4NK5Imath6Color3miEv" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Component-wise multiplication by -1. </p>
</dd></dl>
<dl class="cpp function">
<dt id="_CPPv4N5Imath6Color36negateEv">
<span id="_CPPv3N5Imath6Color36negateEv"></span><span id="_CPPv2N5Imath6Color36negateEv"></span><span id="Imath::Color3::negateCE"></span><span class="target" id="class_imath_1_1_color3_1af459d3e77803446626b4fad996ef4252"></span><em class="property">inline</em> <em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath6Color3E" title="Imath::Color3">Color3</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="#_CPPv4N5Imath6Color36negateEv" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Component-wise multiplication by -1. </p>
</dd></dl>
<dl class="cpp function">
<dt id="_CPPv4N5Imath6Color3mLERK6Color3">
<span id="_CPPv3N5Imath6Color3mLERK6Color3"></span><span id="_CPPv2N5Imath6Color3mLERK6Color3"></span><span id="Imath::Color3::mul-assign-operator__Color3CRCE"></span><span class="target" id="class_imath_1_1_color3_1a0d59091f8f44f437f8456ae928facc0e"></span><em class="property">inline</em> <em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath6Color3E" title="Imath::Color3">Color3</a> &<code class="sig-name descname">operator*=</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath6Color3E" title="Imath::Color3">Color3</a> &<em>c</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath6Color3mLERK6Color3" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Component-wise multiplication. </p>
</dd></dl>
<dl class="cpp function">
<dt id="_CPPv4N5Imath6Color3mLE1T">
<span id="_CPPv3N5Imath6Color3mLE1T"></span><span id="_CPPv2N5Imath6Color3mLE1T"></span><span id="Imath::Color3::mul-assign-operator__TCE"></span><span class="target" id="class_imath_1_1_color3_1afb80202323fae7dbdc8b32baea1dad76"></span><em class="property">inline</em> <em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath6Color3E" title="Imath::Color3">Color3</a> &<code class="sig-name descname">operator*=</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv4I0EN5Imath6Color3E" title="Imath::Color3::T">T</a> <em>a</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath6Color3mLE1T" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Component-wise multiplication. </p>
</dd></dl>
<dl class="cpp function">
<dt id="_CPPv4NK5Imath6Color3mlERK6Color3">
<span id="_CPPv3NK5Imath6Color3mlERK6Color3"></span><span id="_CPPv2NK5Imath6Color3mlERK6Color3"></span><span id="Imath::Color3::mul-operator__Color3CRCCE"></span><span class="target" id="class_imath_1_1_color3_1a51f7872158914bec22e4087c45fbd8b3"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath6Color3E" title="Imath::Color3">Color3</a> <code class="sig-name descname">operator*</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath6Color3E" title="Imath::Color3">Color3</a> &<em>c</em><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4NK5Imath6Color3mlERK6Color3" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Component-wise multiplication. </p>
</dd></dl>
<dl class="cpp function">
<dt id="_CPPv4NK5Imath6Color3mlE1T">
<span id="_CPPv3NK5Imath6Color3mlE1T"></span><span id="_CPPv2NK5Imath6Color3mlE1T"></span><span id="Imath::Color3::mul-operator__TCCE"></span><span class="target" id="class_imath_1_1_color3_1a64c3edf17aaca4a0ab1b09d262bf1d3b"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath6Color3E" title="Imath::Color3">Color3</a> <code class="sig-name descname">operator*</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv4I0EN5Imath6Color3E" title="Imath::Color3::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="#_CPPv4NK5Imath6Color3mlE1T" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Component-wise multiplication. </p>
</dd></dl>
<dl class="cpp function">
<dt id="_CPPv4N5Imath6Color3dVERK6Color3">
<span id="_CPPv3N5Imath6Color3dVERK6Color3"></span><span id="_CPPv2N5Imath6Color3dVERK6Color3"></span><span id="Imath::Color3::div-assign-operator__Color3CRCE"></span><span class="target" id="class_imath_1_1_color3_1ad059a91089025af6b07d7aa27b591a4f"></span><em class="property">inline</em> <em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath6Color3E" title="Imath::Color3">Color3</a> &<code class="sig-name descname">operator/=</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath6Color3E" title="Imath::Color3">Color3</a> &<em>c</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath6Color3dVERK6Color3" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Component-wise division. </p>
</dd></dl>
<dl class="cpp function">
<dt id="_CPPv4N5Imath6Color3dVE1T">
<span id="_CPPv3N5Imath6Color3dVE1T"></span><span id="_CPPv2N5Imath6Color3dVE1T"></span><span id="Imath::Color3::div-assign-operator__TCE"></span><span class="target" id="class_imath_1_1_color3_1a9e844f86ed6b7eab5aefbf8421393dcf"></span><em class="property">inline</em> <em class="property">constexpr</em> <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath6Color3E" title="Imath::Color3">Color3</a> &<code class="sig-name descname">operator/=</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv4I0EN5Imath6Color3E" title="Imath::Color3::T">T</a> <em>a</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4N5Imath6Color3dVE1T" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Component-wise division. </p>
</dd></dl>
<dl class="cpp function">
<dt id="_CPPv4NK5Imath6Color3dvERK6Color3">
<span id="_CPPv3NK5Imath6Color3dvERK6Color3"></span><span id="_CPPv2NK5Imath6Color3dvERK6Color3"></span><span id="Imath::Color3::div-operator__Color3CRCCE"></span><span class="target" id="class_imath_1_1_color3_1a75a96c552ba2b996a9b3546222da7742"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath6Color3E" title="Imath::Color3">Color3</a> <code class="sig-name descname">operator/</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath6Color3E" title="Imath::Color3">Color3</a> &<em>c</em><span class="sig-paren">)</span> <em class="property">const</em> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4NK5Imath6Color3dvERK6Color3" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Component-wise division. </p>
</dd></dl>
<dl class="cpp function">
<dt id="_CPPv4NK5Imath6Color3dvE1T">
<span id="_CPPv3NK5Imath6Color3dvE1T"></span><span id="_CPPv2NK5Imath6Color3dvE1T"></span><span id="Imath::Color3::div-operator__TCCE"></span><span class="target" id="class_imath_1_1_color3_1a9fe551b11b46a51823cda3d64cfe1073"></span><em class="property">inline</em> <em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath6Color3E" title="Imath::Color3">Color3</a> <code class="sig-name descname">operator/</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv4I0EN5Imath6Color3E" title="Imath::Color3::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="#_CPPv4NK5Imath6Color3dvE1T" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Component-wise division. </p>
</dd></dl>
</div>
</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="Box.html"
title="previous chapter">Box</a></p>
<h4>Next topic</h4>
<p class="topless"><a href="Color4.html"
title="next chapter">Color4</a></p>
<div role="note" aria-label="source link">
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="../_sources/classes/Color3.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="Color4.html" title="Color4"
>next</a> |</li>
<li class="right" >
<a href="Box.html" title="Box"
>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="">Color3</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>