%PDF- %PDF-
| Direktori : /usr/share/doc/imath-devel/html/functions/ |
| Current File : //usr/share/doc/imath-devel/html/functions/vec.html |
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vector Functions — 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="prev" title="Roots" href="roots.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="roots.html" title="Roots"
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="">Vector Functions</a></li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">
<div class="section" id="vector-functions">
<span id="id1"></span><h1>Vector Functions<a class="headerlink" href="#vector-functions" title="Permalink to this headline">¶</a></h1>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="c1">#include <Imath/ImathVecAlgo.h></span>
</pre></div>
</div>
<p>Functions that operate on vectors.</p>
<dl class="cpp function">
<dt id="_CPPv4I0EN5Imath13closestVertexE3VecRK3VecRK3VecRK3VecRK3Vec">
<span id="_CPPv3I0EN5Imath13closestVertexERK3VecRK3VecRK3VecRK3Vec"></span><span id="_CPPv2I0EN5Imath13closestVertexERK3VecRK3VecRK3VecRK3Vec"></span>template<class <code class="sig-name descname">Vec</code>><br /><span class="target" id="_imath_vec_algo_8h_1a534bc0e75cfd1cd0dde049a8db6827e3"></span><em class="property">constexpr</em> <a class="reference internal" href="#_CPPv4I0EN5Imath13closestVertexE3VecRK3VecRK3VecRK3VecRK3Vec" title="Imath::closestVertex::Vec">Vec</a> <code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">closestVertex</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath13closestVertexE3VecRK3VecRK3VecRK3VecRK3Vec" title="Imath::closestVertex::Vec">Vec</a> &<em>v0</em>, <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath13closestVertexE3VecRK3VecRK3VecRK3VecRK3Vec" title="Imath::closestVertex::Vec">Vec</a> &<em>v1</em>, <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath13closestVertexE3VecRK3VecRK3VecRK3VecRK3Vec" title="Imath::closestVertex::Vec">Vec</a> &<em>v2</em>, <em class="property">const</em> <a class="reference internal" href="#_CPPv4I0EN5Imath13closestVertexE3VecRK3VecRK3VecRK3VecRK3Vec" title="Imath::closestVertex::Vec">Vec</a> &<em>p</em><span class="sig-paren">)</span> <em class="property">noexcept</em><a class="headerlink" href="#_CPPv4I0EN5Imath13closestVertexE3VecRK3VecRK3VecRK3VecRK3Vec" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Find the vertex of triangle <code class="docutils literal notranslate"><span class="pre">(v0,</span> <span class="pre">v1,</span> <span class="pre">v2)</span></code> that is closest to point <code class="docutils literal notranslate"><span class="pre">p</span></code> (<code class="docutils literal notranslate"><a class="reference internal" href="../classes/Vec2.html#class_imath_1_1_vec2"><span class="std std-ref"><span class="pre">Vec2</span></span></a></code>, <code class="docutils literal notranslate"><a class="reference internal" href="../classes/Vec3.html#class_imath_1_1_vec3"><span class="std std-ref"><span class="pre">Vec3</span></span></a></code>, <code class="docutils literal notranslate"><a class="reference internal" href="../classes/Vec4.html#class_imath_1_1_vec4"><span class="std std-ref"><span class="pre">Vec4</span></span></a></code>) </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="roots.html"
title="previous chapter">Roots</a></p>
<div role="note" aria-label="source link">
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="../_sources/functions/vec.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="roots.html" title="Roots"
>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="">Vector Functions</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>