geos_390_docs/classgeos_1_1algorithm_1_1R...

149 lines
7.1 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>GEOS: geos::algorithm::RobustDeterminant Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">GEOS
&#160;<span id="projectnumber">3.9.1dev</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&#160;Members</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespacegeos.html">geos</a></li><li class="navelem"><a class="el" href="namespacegeos_1_1algorithm.html">algorithm</a></li><li class="navelem"><a class="el" href="classgeos_1_1algorithm_1_1RobustDeterminant.html">RobustDeterminant</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="classgeos_1_1algorithm_1_1RobustDeterminant-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">geos::algorithm::RobustDeterminant Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Implements an algorithm to compute the sign of a 2x2 determinant for double precision values robustly.
<a href="classgeos_1_1algorithm_1_1RobustDeterminant.html#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="RobustDeterminant_8h_source.html">RobustDeterminant.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:aa4281973e2c4ae3940eeb1ad3aaa0dd2"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1algorithm_1_1RobustDeterminant.html#aa4281973e2c4ae3940eeb1ad3aaa0dd2">signOfDet2x2</a> (double x1, double y1, double x2, double y2)</td></tr>
<tr class="memdesc:aa4281973e2c4ae3940eeb1ad3aaa0dd2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the sign of the determinant of the 2x2 matrix with the given entries, in a robust way. <a href="#aa4281973e2c4ae3940eeb1ad3aaa0dd2">More...</a><br /></td></tr>
<tr class="separator:aa4281973e2c4ae3940eeb1ad3aaa0dd2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Implements an algorithm to compute the sign of a 2x2 determinant for double precision values robustly. </p>
<p>It is a direct translation of code developed by Olivier Devillers.</p>
<p>The original code carries the following copyright notice:</p>
<pre></pre><pre>The original code carries the following copyright notice:
Author : Olivier Devillers
<a href="#" onclick="location.href='mai'+'lto:'+'Oli'+'vi'+'er.'+'De'+'vil'+'le'+'rs@'+'so'+'phi'+'a.'+'inr'+'ia'+'.fr'; return false;">Olivi<span style="display: none;">.nosp@m.</span>er.D<span style="display: none;">.nosp@m.</span>evill<span style="display: none;">.nosp@m.</span>ers@<span style="display: none;">.nosp@m.</span>sophi<span style="display: none;">.nosp@m.</span>a.in<span style="display: none;">.nosp@m.</span>ria.f<span style="display: none;">.nosp@m.</span>r</a>
<a href="http:/www.inria.fr:/prisme/personnel/devillers/anglais/determinant.html">http:/www.inria.fr:/prisme/personnel/devillers/anglais/determinant.html</a></pre><pre><pre class="fragment"> Copyright (c) 1995 by INRIA Prisme Project
BP 93 06902 Sophia Antipolis Cedex, France.
All rights reserved
</pre></pre><pre></pre>
<p>Definition at line <a class="el" href="RobustDeterminant_8h_source.html#l00051">51</a> of file <a class="el" href="RobustDeterminant_8h_source.html">RobustDeterminant.h</a>.</p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="aa4281973e2c4ae3940eeb1ad3aaa0dd2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static int geos::algorithm::RobustDeterminant::signOfDet2x2 </td>
<td>(</td>
<td class="paramtype">double&#160;</td>
<td class="paramname"><em>x1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&#160;</td>
<td class="paramname"><em>y1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&#160;</td>
<td class="paramname"><em>x2</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&#160;</td>
<td class="paramname"><em>y2</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Computes the sign of the determinant of the 2x2 matrix with the given entries, in a robust way. </p>
<dl class="section return"><dt>Returns</dt><dd>-1 if the determinant is negative, </dd>
<dd>
1 if the determinant is positive, </dd>
<dd>
0 if the determinant is 0. </dd></dl>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="RobustDeterminant_8h_source.html">RobustDeterminant.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>