diff options
author | neodarz <neodarz@neodarz.net> | 2018-08-11 20:21:34 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2018-08-11 20:21:34 +0200 |
commit | 0ea5fc66924303d1bf73ba283a383e2aadee02f2 (patch) | |
tree | 2568e71a7ccc44ec23b8bb3f0ff97fb6bf2ed709 /docs/doxygen/nel/a03012.html | |
download | nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.tar.xz nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.zip |
Initial commit
Diffstat (limited to 'docs/doxygen/nel/a03012.html')
-rw-r--r-- | docs/doxygen/nel/a03012.html | 149 |
1 files changed, 149 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a03012.html b/docs/doxygen/nel/a03012.html new file mode 100644 index 00000000..9b7b5cff --- /dev/null +++ b/docs/doxygen/nel/a03012.html @@ -0,0 +1,149 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> +<title>NeL: NLSOUND::CompareSources struct Reference</title> +<link href="doxygen.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.3.6 --> +<div class="qindex"> <form class="search" action="search.php" method="get"> +<a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related Pages</a> | <span class="search"><u>S</u>earch for <input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div> +<h1>NLSOUND::CompareSources Struct Reference</h1><table border=0 cellpadding=0 cellspacing=0> +<tr><td></td></tr> +<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a03012.html#NLSOUND_1_1CompareSourcesa0">CompareSources</a> (const CVector &pos)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a03012.html#NLSOUND_1_1CompareSourcesa1">operator()</a> (const <a class="el" href="a03395.html">CSimpleSource</a> *s1, const <a class="el" href="a03395.html">CSimpleSource</a> *s2)</td></tr> + +<tr><td colspan=2><br><h2>Data Fields</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>const CVector & </td><td class="memItemRight" valign=bottom><a class="el" href="a03012.html#NLSOUND_1_1CompareSourceso0">_Pos</a></td></tr> + +</table> +<hr><h2>Constructor & Destructor Documentation</h2> +<a class="anchor" name="NLSOUND_1_1CompareSourcesa0" doxytag="NLSOUND::CompareSources::CompareSources" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> NLSOUND::CompareSources::CompareSources </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const CVector & </td> + <td class="mdname1" valign="top" nowrap> <em>pos</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05465.html#l01943">1943</a> of file <a class="el" href="a05465.html">audio_mixer_user.cpp</a>. +<p> +<div class="fragment"><pre>01943 : <a class="code" href="a03012.html#NLSOUND_1_1CompareSourceso0">_Pos</a>(pos) {} +</pre></div> </td> + </tr> +</table> +<hr><h2>Member Function Documentation</h2> +<a class="anchor" name="NLSOUND_1_1CompareSourcesa1" doxytag="NLSOUND::CompareSources::operator()" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool NLSOUND::CompareSources::operator() </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a03395.html">CSimpleSource</a> * </td> + <td class="mdname" nowrap> <em>s1</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>const <a class="el" href="a03395.html">CSimpleSource</a> * </td> + <td class="mdname" nowrap> <em>s2</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05465.html#l01946">1946</a> of file <a class="el" href="a05465.html">audio_mixer_user.cpp</a>. +<p> +References <a class="el" href="a06427.html#l00141">NLSOUND::CSourceCommon::getPos()</a>, and <a class="el" href="a06428.html#l00059">NLSOUND::CSourceCommon::getPriority()</a>. +<p> +<div class="fragment"><pre>01947 { +01948 <span class="keywordflow">if</span> (s1->getPriority() < s2->getPriority()) +01949 { +01950 <span class="keywordflow">return</span> <span class="keyword">true</span>; +01951 } +01952 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (s1->getPriority() == s2->getPriority()) +01953 { +01954 <span class="comment">// Equal priority, test distances to the listener</span> +01955 <span class="keyword">const</span> CVector &src1pos = s1->getPos(); +01956 <span class="keyword">const</span> CVector &src2pos = s2->getPos();; +01957 <span class="keywordflow">return</span> ( (src1pos-<a class="code" href="a03012.html#NLSOUND_1_1CompareSourceso0">_Pos</a>).sqrnorm() < (src2pos-<a class="code" href="a03012.html#NLSOUND_1_1CompareSourceso0">_Pos</a>).sqrnorm() ); +01958 } +01959 <span class="keywordflow">else</span> +01960 { +01961 <span class="keywordflow">return</span> <span class="keyword">false</span>; +01962 } +01963 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Field Documentation</h2> +<a class="anchor" name="NLSOUND_1_1CompareSourceso0" doxytag="NLSOUND::CompareSources::_Pos" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> const CVector& <a class="el" href="a03012.html#NLSOUND_1_1CompareSourceso0">NLSOUND::CompareSources::_Pos</a> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05465.html#l01966">1966</a> of file <a class="el" href="a05465.html">audio_mixer_user.cpp</a>. </td> + </tr> +</table> +<hr>The documentation for this struct was generated from the following file:<ul> +<li><a class="el" href="a05465.html">audio_mixer_user.cpp</a></ul> +<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 14:39:33 2004 for NeL by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border=0 > +</a>1.3.6 </small></address> +</body> +</html> |