diff options
Diffstat (limited to 'docs/doxygen/nel/a03305.html')
-rw-r--r-- | docs/doxygen/nel/a03305.html | 321 |
1 files changed, 321 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a03305.html b/docs/doxygen/nel/a03305.html new file mode 100644 index 00000000..a01ff536 --- /dev/null +++ b/docs/doxygen/nel/a03305.html @@ -0,0 +1,321 @@ +<!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: NLPACS::CRational64 class 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>NLPACS::CRational64 Class Reference</h1><code>#include <<a class="el" href="a05665.html">edge_collide.h</a>></code> +<p> +<hr><a name="_details"></a><h2>Detailed Description</h2> +A Rational of 2 64 bits. <dl compact><dt><b>Author:</b></dt><dd>Lionel Berenguier <p> +Nevrax France </dd></dl> +<dl compact><dt><b>Date:</b></dt><dd>2001 </dd></dl> + +<p> + +<p> +Definition at line <a class="el" href="a05665.html#l00123">123</a> of file <a class="el" href="a05665.html">edge_collide.h</a>.<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="a03305.html#NLPACS_1_1CRational64a0">CRational64</a> (<a class="el" href="a04558.html#a12">sint64</a> <a class="el" href="a04223.html#a653">num</a>, <a class="el" href="a04558.html#a12">sint64</a> den)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a03305.html#NLPACS_1_1CRational64a1">CRational64</a> (<a class="el" href="a04558.html#a12">sint64</a> a)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a03305.html#NLPACS_1_1CRational64a2">CRational64</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a03305.html#NLPACS_1_1CRational64a3">operator<</a> (const <a class="el" href="a03305.html">CRational64</a> &o) const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">operator< <a href="#NLPACS_1_1CRational64a3"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a03305.html#NLPACS_1_1CRational64a4">operator==</a> (const <a class="el" href="a03305.html">CRational64</a> &o) const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">operator== <a href="#NLPACS_1_1CRational64a4"></a><br><br></td></tr> +<tr><td colspan=2><br><h2>Data Fields</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a12">sint64</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a03305.html#NLPACS_1_1CRational64o0">Denominator</a></td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Denominator. always >0. <a href="#NLPACS_1_1CRational64o0"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a12">sint64</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a03305.html#NLPACS_1_1CRational64o1">Numerator</a></td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Numerator. <a href="#NLPACS_1_1CRational64o1"></a><br><br></td></tr> +</table> +<hr><h2>Constructor & Destructor Documentation</h2> +<a class="anchor" name="NLPACS_1_1CRational64a2" doxytag="NLPACS::CRational64::CRational64" ></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"> NLPACS::CRational64::CRational64 </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </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="a05665.html#l00134">134</a> of file <a class="el" href="a05665.html">edge_collide.h</a>. +<p> +<div class="fragment"><pre>00134 {} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLPACS_1_1CRational64a1" doxytag="NLPACS::CRational64::CRational64" ></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"> NLPACS::CRational64::CRational64 </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a12">sint64</a> </td> + <td class="mdname1" valign="top" nowrap> <em>a</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="a05665.html#l00135">135</a> of file <a class="el" href="a05665.html">edge_collide.h</a>. +<p> +References <a class="el" href="a05665.html#l00129">Denominator</a>, <a class="el" href="a05665.html#l00127">Numerator</a>, and <a class="el" href="a05981.html#l00101">sint64</a>. +<p> +<div class="fragment"><pre>00135 : <a class="code" href="a03305.html#NLPACS_1_1CRational64o1">Numerator</a>(a), <a class="code" href="a03305.html#NLPACS_1_1CRational64o0">Denominator</a>(1) {} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLPACS_1_1CRational64a0" doxytag="NLPACS::CRational64::CRational64" ></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"> NLPACS::CRational64::CRational64 </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a12">sint64</a> </td> + <td class="mdname" nowrap> <em>num</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a04558.html#a12">sint64</a> </td> + <td class="mdname" nowrap> <em>den</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="a05665.html#l00136">136</a> of file <a class="el" href="a05665.html">edge_collide.h</a>. +<p> +References <a class="el" href="a05665.html#l00129">Denominator</a>, <a class="el" href="a05646.html#l01124">num</a>, <a class="el" href="a05665.html#l00127">Numerator</a>, and <a class="el" href="a05981.html#l00101">sint64</a>. +<p> +<div class="fragment"><pre>00137 { +00138 <span class="keywordflow">if</span>(den>0) +00139 { +00140 <a class="code" href="a03305.html#NLPACS_1_1CRational64o1">Numerator</a>= <a class="code" href="a04223.html#a653">num</a>; +00141 <a class="code" href="a03305.html#NLPACS_1_1CRational64o0">Denominator</a>= den; +00142 } +00143 <span class="keywordflow">else</span> +00144 { +00145 <a class="code" href="a03305.html#NLPACS_1_1CRational64o1">Numerator</a>= -<a class="code" href="a04223.html#a653">num</a>; +00146 <a class="code" href="a03305.html#NLPACS_1_1CRational64o0">Denominator</a>= -den; +00147 } +00148 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Member Function Documentation</h2> +<a class="anchor" name="NLPACS_1_1CRational64a3" doxytag="NLPACS::CRational64::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 NLPACS::CRational64::operator< </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a03305.html">CRational64</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>o</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +operator< +<p> + +<p> +Definition at line <a class="el" href="a05665.html#l00151">151</a> of file <a class="el" href="a05665.html">edge_collide.h</a>. +<p> +References <a class="el" href="a05665.html#l00129">Denominator</a>, <a class="el" href="a05665.html#l00127">Numerator</a>, and <a class="el" href="a05665.html#l00057">NLPACS::CInt128::setMul()</a>. +<p> +<div class="fragment"><pre>00152 { +00153 CInt128 n0, n1; +00154 <span class="comment">// a/b < c/d <=> a*d < c*b</span> +00155 n0.setMul(Numerator, o.Denominator); +00156 n1.setMul(o.Numerator, Denominator); +00157 <span class="keywordflow">return</span> n0<n1; +00158 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLPACS_1_1CRational64a4" doxytag="NLPACS::CRational64::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 NLPACS::CRational64::operator== </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a03305.html">CRational64</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>o</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +operator== +<p> + +<p> +Definition at line <a class="el" href="a05665.html#l00161">161</a> of file <a class="el" href="a05665.html">edge_collide.h</a>. +<p> +References <a class="el" href="a05665.html#l00129">Denominator</a>, <a class="el" href="a05665.html#l00127">Numerator</a>, and <a class="el" href="a05665.html#l00057">NLPACS::CInt128::setMul()</a>. +<p> +<div class="fragment"><pre>00162 { +00163 CInt128 n0, n1; +00164 <span class="comment">// a/b == c/d <=> a*d == c*b</span> +00165 n0.setMul(Numerator, o.Denominator); +00166 n1.setMul(o.Numerator, Denominator); +00167 <span class="keywordflow">return</span> n0==n1; +00168 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Field Documentation</h2> +<a class="anchor" name="NLPACS_1_1CRational64o0" doxytag="NLPACS::CRational64::Denominator" ></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"> <a class="el" href="a04558.html#a12">sint64</a> <a class="el" href="a03305.html#NLPACS_1_1CRational64o0">NLPACS::CRational64::Denominator</a> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Denominator. always >0. +<p> + +<p> +Definition at line <a class="el" href="a05665.html#l00129">129</a> of file <a class="el" href="a05665.html">edge_collide.h</a>. +<p> +Referenced by <a class="el" href="a05665.html#l00135">CRational64()</a>, <a class="el" href="a05665.html#l00151">operator<()</a>, <a class="el" href="a05665.html#l00161">operator==()</a>, and <a class="el" href="a05761.html#l01649">NLPACS::CGlobalRetriever::testMovementWithCollisionChains()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLPACS_1_1CRational64o1" doxytag="NLPACS::CRational64::Numerator" ></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"> <a class="el" href="a04558.html#a12">sint64</a> <a class="el" href="a03305.html#NLPACS_1_1CRational64o1">NLPACS::CRational64::Numerator</a> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Numerator. +<p> + +<p> +Definition at line <a class="el" href="a05665.html#l00127">127</a> of file <a class="el" href="a05665.html">edge_collide.h</a>. +<p> +Referenced by <a class="el" href="a05665.html#l00135">CRational64()</a>, <a class="el" href="a05665.html#l00151">operator<()</a>, <a class="el" href="a05665.html#l00161">operator==()</a>, and <a class="el" href="a05761.html#l01649">NLPACS::CGlobalRetriever::testMovementWithCollisionChains()</a>. </td> + </tr> +</table> +<hr>The documentation for this class was generated from the following file:<ul> +<li><a class="el" href="a05665.html">edge_collide.h</a></ul> +<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 14:22:17 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> |