geos_390_docs/classgeos_1_1algorithm_1_1R...

522 lines
28 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::RayCrossingCounterDD 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_1RayCrossingCounterDD.html">RayCrossingCounterDD</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="classgeos_1_1algorithm_1_1RayCrossingCounterDD-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">geos::algorithm::RayCrossingCounterDD Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Counts the number of segments crossed by a horizontal ray extending to the right from a given point, in an incremental fashion.
<a href="classgeos_1_1algorithm_1_1RayCrossingCounterDD.html#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="RayCrossingCounterDD_8h_source.html">RayCrossingCounterDD.h</a>&gt;</code></p>
<div class="dynheader">
Collaboration diagram for geos::algorithm::RayCrossingCounterDD:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classgeos_1_1algorithm_1_1RayCrossingCounterDD__coll__graph.svg" width="303" height="147"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a1f9e4b37c251c12df228f76478e15542"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1algorithm_1_1RayCrossingCounterDD.html#a1f9e4b37c251c12df228f76478e15542">RayCrossingCounterDD</a> (const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> &amp;p_point)</td></tr>
<tr class="separator:a1f9e4b37c251c12df228f76478e15542"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6be057bfdbcf1955179188b2980b37c6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1algorithm_1_1RayCrossingCounterDD.html#a6be057bfdbcf1955179188b2980b37c6">countSegment</a> (const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> &amp;p1, const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> &amp;p2)</td></tr>
<tr class="memdesc:a6be057bfdbcf1955179188b2980b37c6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Counts a segment. <a href="#a6be057bfdbcf1955179188b2980b37c6">More...</a><br /></td></tr>
<tr class="separator:a6be057bfdbcf1955179188b2980b37c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a622decf42bc6ecbf316ffa296e61019b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1algorithm_1_1RayCrossingCounterDD.html#a622decf42bc6ecbf316ffa296e61019b">isOnSegment</a> ()</td></tr>
<tr class="memdesc:a622decf42bc6ecbf316ffa296e61019b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reports whether the point lies exactly on one of the supplied segments. <a href="#a622decf42bc6ecbf316ffa296e61019b">More...</a><br /></td></tr>
<tr class="separator:a622decf42bc6ecbf316ffa296e61019b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a32e946a3adff29e77fc82e7251e2ff9a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacegeos_1_1geom.html#ae55a225cd843a6b153a7b6ca5a4707c8">geom::Location</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1algorithm_1_1RayCrossingCounterDD.html#a32e946a3adff29e77fc82e7251e2ff9a">getLocation</a> ()</td></tr>
<tr class="memdesc:a32e946a3adff29e77fc82e7251e2ff9a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the <a class="el" href="namespacegeos_1_1geom.html#ae55a225cd843a6b153a7b6ca5a4707c8">Location</a> of the point relative to the ring, polygon or multipolygon from which the processed segments were provided. <a href="#a32e946a3adff29e77fc82e7251e2ff9a">More...</a><br /></td></tr>
<tr class="separator:a32e946a3adff29e77fc82e7251e2ff9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2bb2dbc3eec8af82a1b226d5b39a39c0"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1algorithm_1_1RayCrossingCounterDD.html#a2bb2dbc3eec8af82a1b226d5b39a39c0">isPointInPolygon</a> ()</td></tr>
<tr class="memdesc:a2bb2dbc3eec8af82a1b226d5b39a39c0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Tests whether the point lies in or on the ring, polygon or multipolygon from which the processed segments were provided. <a href="#a2bb2dbc3eec8af82a1b226d5b39a39c0">More...</a><br /></td></tr>
<tr class="separator:a2bb2dbc3eec8af82a1b226d5b39a39c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><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:a8a7e4bdb2c7f0404bb3704fddf73446a"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="namespacegeos_1_1geom.html#ae55a225cd843a6b153a7b6ca5a4707c8">geom::Location</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1algorithm_1_1RayCrossingCounterDD.html#a8a7e4bdb2c7f0404bb3704fddf73446a">locatePointInRing</a> (const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> &amp;p, const <a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html">geom::CoordinateSequence</a> &amp;ring)</td></tr>
<tr class="memdesc:a8a7e4bdb2c7f0404bb3704fddf73446a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines the <a class="el" href="namespacegeos_1_1geom.html#ae55a225cd843a6b153a7b6ca5a4707c8">Location</a> of a point in a ring. This method is an exemplar of how to use this class. <a href="#a8a7e4bdb2c7f0404bb3704fddf73446a">More...</a><br /></td></tr>
<tr class="separator:a8a7e4bdb2c7f0404bb3704fddf73446a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a10ddc0fcfa241232ad7ffadb4d7e3666"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="namespacegeos_1_1geom.html#ae55a225cd843a6b153a7b6ca5a4707c8">geom::Location</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1algorithm_1_1RayCrossingCounterDD.html#a10ddc0fcfa241232ad7ffadb4d7e3666">locatePointInRing</a> (const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> &amp;p, const std::vector&lt; const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> * &gt; &amp;ring)</td></tr>
<tr class="memdesc:a10ddc0fcfa241232ad7ffadb4d7e3666"><td class="mdescLeft">&#160;</td><td class="mdescRight">Semantically equal to the above, just different args encoding. <a href="#a10ddc0fcfa241232ad7ffadb4d7e3666">More...</a><br /></td></tr>
<tr class="separator:a10ddc0fcfa241232ad7ffadb4d7e3666"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a98a1bdae61284143d206bec140b8a69d"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1algorithm_1_1RayCrossingCounterDD.html#a98a1bdae61284143d206bec140b8a69d">orientationIndex</a> (const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> &amp;p1, const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> &amp;p2, const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> &amp;q)</td></tr>
<tr class="memdesc:a98a1bdae61284143d206bec140b8a69d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the index of the direction of the point <code>q</code> relative to a vector specified by <code>p1-p2</code>. <a href="#a98a1bdae61284143d206bec140b8a69d">More...</a><br /></td></tr>
<tr class="separator:a98a1bdae61284143d206bec140b8a69d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:a585c6ddaedc94f5a3e159a4cfab06b60"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1algorithm_1_1RayCrossingCounterDD.html#a585c6ddaedc94f5a3e159a4cfab06b60">RayCrossingCounterDD</a> (const <a class="el" href="classgeos_1_1algorithm_1_1RayCrossingCounterDD.html">RayCrossingCounterDD</a> &amp;other)=delete</td></tr>
<tr class="separator:a585c6ddaedc94f5a3e159a4cfab06b60"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a520e3e4e11997b366c06777579564a77"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgeos_1_1algorithm_1_1RayCrossingCounterDD.html">RayCrossingCounterDD</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1algorithm_1_1RayCrossingCounterDD.html#a520e3e4e11997b366c06777579564a77">operator=</a> (const <a class="el" href="classgeos_1_1algorithm_1_1RayCrossingCounterDD.html">RayCrossingCounterDD</a> &amp;rhs)=delete</td></tr>
<tr class="separator:a520e3e4e11997b366c06777579564a77"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a1aa2b15f5253c95ee126d79d3a5681db"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1algorithm_1_1RayCrossingCounterDD.html#a1aa2b15f5253c95ee126d79d3a5681db">point</a></td></tr>
<tr class="separator:a1aa2b15f5253c95ee126d79d3a5681db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aba8c74d2f578bf3d058a52e746d33af8"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1algorithm_1_1RayCrossingCounterDD.html#aba8c74d2f578bf3d058a52e746d33af8">crossingCount</a></td></tr>
<tr class="separator:aba8c74d2f578bf3d058a52e746d33af8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af7707b3b63e04862a2c12befd9b81ccc"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1algorithm_1_1RayCrossingCounterDD.html#af7707b3b63e04862a2c12befd9b81ccc">isPointOnSegment</a></td></tr>
<tr class="separator:af7707b3b63e04862a2c12befd9b81ccc"><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>Counts the number of segments crossed by a horizontal ray extending to the right from a given point, in an incremental fashion. </p>
<p>This can be used to determine whether a point lies in a polygonal geometry. The class determines the situation where the point lies exactly on a segment. When being used for Point-In-Polygon determination, this case allows short-circuiting the evaluation.</p>
<p>This class handles polygonal geometries with any number of shells and holes. The orientation of the shell and hole rings is unimportant. In order to compute a correct location for a given polygonal geometry, it is essential that <b>all</b> segments are counted which</p>
<ul>
<li>touch the ray</li>
<li>lie in in any ring which may contain the point</li>
</ul>
<p>The only exception is when the point-on-segment situation is detected, in which case no further processing is required. The implication of the above rule is that segments which can be a priori determined to <em>not</em> touch the ray (i.e. by a test of their bounding box or Y-extent) do not need to be counted. This allows for optimization by indexing. </p>
<p>Definition at line <a class="el" href="RayCrossingCounterDD_8h_source.html#l00064">64</a> of file <a class="el" href="RayCrossingCounterDD_8h_source.html">RayCrossingCounterDD.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a585c6ddaedc94f5a3e159a4cfab06b60"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">geos::algorithm::RayCrossingCounterDD::RayCrossingCounterDD </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classgeos_1_1algorithm_1_1RayCrossingCounterDD.html">RayCrossingCounterDD</a> &amp;&#160;</td>
<td class="paramname"><em>other</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span><span class="mlabel">delete</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a1f9e4b37c251c12df228f76478e15542"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">geos::algorithm::RayCrossingCounterDD::RayCrossingCounterDD </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> &amp;&#160;</td>
<td class="paramname"><em>p_point</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="RayCrossingCounterDD_8h_source.html#l00109">109</a> of file <a class="el" href="RayCrossingCounterDD_8h_source.html">RayCrossingCounterDD.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a6be057bfdbcf1955179188b2980b37c6"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void geos::algorithm::RayCrossingCounterDD::countSegment </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> &amp;&#160;</td>
<td class="paramname"><em>p1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> &amp;&#160;</td>
<td class="paramname"><em>p2</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Counts a segment. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">p1</td><td>an endpoint of the segment </td></tr>
<tr><td class="paramname">p2</td><td>another endpoint of the segment </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a32e946a3adff29e77fc82e7251e2ff9a"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespacegeos_1_1geom.html#ae55a225cd843a6b153a7b6ca5a4707c8">geom::Location</a> geos::algorithm::RayCrossingCounterDD::getLocation </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Gets the <a class="el" href="namespacegeos_1_1geom.html#ae55a225cd843a6b153a7b6ca5a4707c8">Location</a> of the point relative to the ring, polygon or multipolygon from which the processed segments were provided. </p>
<p>This method only determines the correct location if <b>all</b> relevant segments must have been processed.</p>
<dl class="section return"><dt>Returns</dt><dd>the Location of the point </dd></dl>
</div>
</div>
<a class="anchor" id="a622decf42bc6ecbf316ffa296e61019b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool geos::algorithm::RayCrossingCounterDD::isOnSegment </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Reports whether the point lies exactly on one of the supplied segments. </p>
<p>This method may be called at any time as segments are processed. If the result of this method is <code>true</code>, no further segments need be supplied, since the result will never change again.</p>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if the point lies exactly on a segment </dd></dl>
<p>Definition at line <a class="el" href="RayCrossingCounterDD_8h_source.html#l00134">134</a> of file <a class="el" href="RayCrossingCounterDD_8h_source.html">RayCrossingCounterDD.h</a>.</p>
</div>
</div>
<a class="anchor" id="a2bb2dbc3eec8af82a1b226d5b39a39c0"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool geos::algorithm::RayCrossingCounterDD::isPointInPolygon </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Tests whether the point lies in or on the ring, polygon or multipolygon from which the processed segments were provided. </p>
<p>This method only determines the correct location if <b>all</b> relevant segments must have been processed.</p>
<dl class="section return"><dt>Returns</dt><dd>true if the point lies in or on the supplied polygon </dd></dl>
</div>
</div>
<a class="anchor" id="a8a7e4bdb2c7f0404bb3704fddf73446a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="namespacegeos_1_1geom.html#ae55a225cd843a6b153a7b6ca5a4707c8">geom::Location</a> geos::algorithm::RayCrossingCounterDD::locatePointInRing </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> &amp;&#160;</td>
<td class="paramname"><em>p</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html">geom::CoordinateSequence</a> &amp;&#160;</td>
<td class="paramname"><em>ring</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>Determines the <a class="el" href="namespacegeos_1_1geom.html#ae55a225cd843a6b153a7b6ca5a4707c8">Location</a> of a point in a ring. This method is an exemplar of how to use this class. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">p</td><td>the point to test </td></tr>
<tr><td class="paramname">ring</td><td>an array of Coordinates forming a ring </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the location of the point in the ring </dd></dl>
</div>
</div>
<a class="anchor" id="a10ddc0fcfa241232ad7ffadb4d7e3666"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="namespacegeos_1_1geom.html#ae55a225cd843a6b153a7b6ca5a4707c8">geom::Location</a> geos::algorithm::RayCrossingCounterDD::locatePointInRing </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> &amp;&#160;</td>
<td class="paramname"><em>p</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const std::vector&lt; const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> * &gt; &amp;&#160;</td>
<td class="paramname"><em>ring</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>Semantically equal to the above, just different args encoding. </p>
</div>
</div>
<a class="anchor" id="a520e3e4e11997b366c06777579564a77"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classgeos_1_1algorithm_1_1RayCrossingCounterDD.html">RayCrossingCounterDD</a>&amp; geos::algorithm::RayCrossingCounterDD::operator= </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classgeos_1_1algorithm_1_1RayCrossingCounterDD.html">RayCrossingCounterDD</a> &amp;&#160;</td>
<td class="paramname"><em>rhs</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span><span class="mlabel">delete</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a98a1bdae61284143d206bec140b8a69d"></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::RayCrossingCounterDD::orientationIndex </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> &amp;&#160;</td>
<td class="paramname"><em>p1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> &amp;&#160;</td>
<td class="paramname"><em>p2</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> &amp;&#160;</td>
<td class="paramname"><em>q</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>Returns the index of the direction of the point <code>q</code> relative to a vector specified by <code>p1-p2</code>. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">p1</td><td>the origin point of the vector </td></tr>
<tr><td class="paramname">p2</td><td>the final point of the vector </td></tr>
<tr><td class="paramname">q</td><td>the point to compute the direction to</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 if q is counter-clockwise (left) from p1-p2 </dd>
<dd>
-1 if q is clockwise (right) from p1-p2 </dd>
<dd>
0 if q is collinear with p1-p2 </dd></dl>
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="aba8c74d2f578bf3d058a52e746d33af8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int geos::algorithm::RayCrossingCounterDD::crossingCount</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="RayCrossingCounterDD_8h_source.html#l00068">68</a> of file <a class="el" href="RayCrossingCounterDD_8h_source.html">RayCrossingCounterDD.h</a>.</p>
</div>
</div>
<a class="anchor" id="af7707b3b63e04862a2c12befd9b81ccc"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool geos::algorithm::RayCrossingCounterDD::isPointOnSegment</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="RayCrossingCounterDD_8h_source.html#l00071">71</a> of file <a class="el" href="RayCrossingCounterDD_8h_source.html">RayCrossingCounterDD.h</a>.</p>
</div>
</div>
<a class="anchor" id="a1aa2b15f5253c95ee126d79d3a5681db"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a>&amp; geos::algorithm::RayCrossingCounterDD::point</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="RayCrossingCounterDD_8h_source.html#l00066">66</a> of file <a class="el" href="RayCrossingCounterDD_8h_source.html">RayCrossingCounterDD.h</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="RayCrossingCounterDD_8h_source.html">RayCrossingCounterDD.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>