geos_390_docs/EdgeIntersection_8h_source....

85 lines
34 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: EdgeIntersection.h Source File</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><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>File&#160;Members</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_0bc14b2fb119a11b6a0f32f4d350db61.html">geos</a></li><li class="navelem"><a class="el" href="dir_2e8ed28ebb42cbdc65aded50ed5bb764.html">geomgraph</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">EdgeIntersection.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="EdgeIntersection_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">/**********************************************************************</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> * GEOS - Geometry Engine Open Source</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> * http://geos.osgeo.org</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> * Copyright (C) 2009-2011 Sandro Santilli &lt;strk@kbt.io&gt;</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> * Copyright (C) 2005-2006 Refractions Research Inc.</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> * Copyright (C) 2001-2002 Vivid Solutions Inc.</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"> * This is free software; you can redistribute and/or modify it under</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment"> * the terms of the GNU Lesser General Public Licence as published</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> * by the Free Software Foundation.</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment"> * See the COPYING file for more information.</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment"> **********************************************************************</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment"> * Last port: geomgraph/EdgeIntersection.java rev. 1.5 (JTS-1.10)</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="comment"> **********************************************************************/</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">#ifndef GEOS_GEOMGRAPH_EDGEINTERSECTION_H</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#define GEOS_GEOMGRAPH_EDGEINTERSECTION_H</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="export_8h.html">geos/export.h</a>&gt;</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="Coordinate_8h.html">geos/geom/Coordinate.h</a>&gt;</span> <span class="comment">// for composition and inlines</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="inline_8h.html">geos/inline.h</a>&gt;</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="preprocessor">#include &lt;ostream&gt;</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacegeos.html">geos</a> {</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="keyword">namespace </span>geomgraph { <span class="comment">// geos.geomgraph</span></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;</div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="classgeos_1_1geomgraph_1_1EdgeIntersection.html"> 45</a></span>&#160;<span class="keyword">class </span><a class="code" href="export_8h.html#ae36df939090171f6e9a28a8cb6254fea">GEOS_DLL</a> <a class="code" href="classgeos_1_1geomgraph_1_1EdgeIntersection.html">EdgeIntersection</a> {</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; <span class="comment">// the point of intersection</span></div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="classgeos_1_1geomgraph_1_1EdgeIntersection.html#af210032406f05ca94f819a040d05d652"> 49</a></span>&#160; <a class="code" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> <a class="code" href="classgeos_1_1geomgraph_1_1EdgeIntersection.html#af210032406f05ca94f819a040d05d652">coord</a>;</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160;</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; <span class="comment">// the edge distance of this point along the containing line segment</span></div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="classgeos_1_1geomgraph_1_1EdgeIntersection.html#aa2e8689273ad164252f9e2bd4ad3feaf"> 52</a></span>&#160; <span class="keywordtype">double</span> <a class="code" href="classgeos_1_1geomgraph_1_1EdgeIntersection.html#aa2e8689273ad164252f9e2bd4ad3feaf">dist</a>;</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; <span class="comment">// the index of the containing line segment in the parent edge</span></div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="classgeos_1_1geomgraph_1_1EdgeIntersection.html#afbdbc3202ef9dee43d63a263d7a3ddff"> 55</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classgeos_1_1geomgraph_1_1EdgeIntersection.html#afbdbc3202ef9dee43d63a263d7a3ddff">segmentIndex</a>;</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160;</div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="classgeos_1_1geomgraph_1_1EdgeIntersection.html#ad9c129c3b610293c1fc87f005c22f675"> 57</a></span>&#160; <a class="code" href="classgeos_1_1geomgraph_1_1EdgeIntersection.html#ad9c129c3b610293c1fc87f005c22f675">EdgeIntersection</a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a>&amp; newCoord,</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; <span class="keywordtype">size_t</span> newSegmentIndex, <span class="keywordtype">double</span> newDist)</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; :</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; coord(newCoord),</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; dist(newDist),</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; segmentIndex(newSegmentIndex)</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; {}</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160;</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <span class="keywordtype">bool</span></div><div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="classgeos_1_1geomgraph_1_1EdgeIntersection.html#a6dc5982e0064cc3a762dd61bd4e31281"> 66</a></span>&#160; <a class="code" href="classgeos_1_1geomgraph_1_1EdgeIntersection.html#a6dc5982e0064cc3a762dd61bd4e31281">isEndPoint</a>(<span class="keywordtype">size_t</span> maxSegmentIndex)<span class="keyword"> const</span></div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;<span class="keyword"> </span>{</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; <span class="keywordflow">if</span>(segmentIndex == 0 &amp;&amp; dist == 0.0) {</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; }</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; <span class="keywordflow">if</span>(segmentIndex == maxSegmentIndex) {</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; }</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; }</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160;</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; <span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a>&amp;</div><div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="classgeos_1_1geomgraph_1_1EdgeIntersection.html#a9c643ec778edbb5ac7b4dfe6594ded51"> 78</a></span>&#160; <a class="code" href="classgeos_1_1geomgraph_1_1EdgeIntersection.html#a9c643ec778edbb5ac7b4dfe6594ded51">getCoordinate</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160;<span class="keyword"> </span>{</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; <span class="keywordflow">return</span> coord;</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; }</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160;</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; <span class="keywordtype">size_t</span></div><div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="classgeos_1_1geomgraph_1_1EdgeIntersection.html#a50fce9ad1f99460205dfc08c90d98204"> 84</a></span>&#160; <a class="code" href="classgeos_1_1geomgraph_1_1EdgeIntersection.html#a50fce9ad1f99460205dfc08c90d98204">getSegmentIndex</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160;<span class="keyword"> </span>{</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; <span class="keywordflow">return</span> segmentIndex;</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; }</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160;</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; <span class="keywordtype">double</span></div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="classgeos_1_1geomgraph_1_1EdgeIntersection.html#ab01a2f5cbcaff2f47efe15b019634c7e"> 90</a></span>&#160; <a class="code" href="classgeos_1_1geomgraph_1_1EdgeIntersection.html#ab01a2f5cbcaff2f47efe15b019634c7e">getDistance</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160;<span class="keyword"> </span>{</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; <span class="keywordflow">return</span> dist;</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; }</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160;</div><div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="classgeos_1_1geomgraph_1_1EdgeIntersection.html#a163c26a9955ea6287d259457fbc422f3"> 95</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classgeos_1_1geomgraph_1_1EdgeIntersection.html#a163c26a9955ea6287d259457fbc422f3">operator==</a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1geomgraph_1_1EdgeIntersection.html">EdgeIntersection</a>&amp; other)<span class="keyword"> const </span>{</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; <span class="keywordflow">return</span> segmentIndex == other.<a class="code" href="classgeos_1_1geomgraph_1_1EdgeIntersection.html#afbdbc3202ef9dee43d63a263d7a3ddff">segmentIndex</a> &amp;&amp;</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; dist == other.<a class="code" href="classgeos_1_1geomgraph_1_1EdgeIntersection.html#aa2e8689273ad164252f9e2bd4ad3feaf">dist</a>;</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160;</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; <span class="comment">// We don&#39;t check the coordinate, consistent with operator&lt;</span></div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; }</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160;</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160;};</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160;</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160;<span class="keyword">inline</span> <span class="keywordtype">bool</span></div><div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="namespacegeos_1_1geomgraph.html#a4e0bda6ab47ae25ad785cfd4c6e7d07b"> 108</a></span>&#160;<a class="code" href="namespacegeos_1_1geomgraph.html#a4e0bda6ab47ae25ad785cfd4c6e7d07b">operator&lt; </a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1geomgraph_1_1EdgeIntersection.html">EdgeIntersection</a>&amp; ei1, <span class="keyword">const</span> <a class="code" href="classgeos_1_1geomgraph_1_1EdgeIntersection.html">EdgeIntersection</a>&amp; ei2)</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160;{</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; <span class="keywordflow">if</span>(ei1.<a class="code" href="classgeos_1_1geomgraph_1_1EdgeIntersection.html#afbdbc3202ef9dee43d63a263d7a3ddff">segmentIndex</a> &lt; ei2.<a class="code" href="classgeos_1_1geomgraph_1_1EdgeIntersection.html#afbdbc3202ef9dee43d63a263d7a3ddff">segmentIndex</a>) {</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; }</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; <span class="keywordflow">if</span>(ei1.<a class="code" href="classgeos_1_1geomgraph_1_1EdgeIntersection.html#afbdbc3202ef9dee43d63a263d7a3ddff">segmentIndex</a> == ei2.<a class="code" href="classgeos_1_1geomgraph_1_1EdgeIntersection.html#afbdbc3202ef9dee43d63a263d7a3ddff">segmentIndex</a>) {</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; <span class="keywordflow">if</span>(ei1.<a class="code" href="classgeos_1_1geomgraph_1_1EdgeIntersection.html#aa2e8689273ad164252f9e2bd4ad3feaf">dist</a> &lt; ei2.<a class="code" href="classgeos_1_1geomgraph_1_1EdgeIntersection.html#aa2e8689273ad164252f9e2bd4ad3feaf">dist</a>) {</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; }</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160;</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; <span class="comment">// TODO: check if the Coordinate matches, or this will</span></div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; <span class="comment">// be a robustness issue in computin distance</span></div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; <span class="comment">// See http://trac.osgeo.org/geos/ticket/350</span></div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; }</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160;}</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160;</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160;<span class="comment">// @deprecated, use strict weak ordering operator</span></div><div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="structgeos_1_1geomgraph_1_1EdgeIntersectionLessThen.html"> 126</a></span>&#160;<span class="keyword">struct </span><a class="code" href="export_8h.html#ae36df939090171f6e9a28a8cb6254fea">GEOS_DLL</a> <a class="code" href="structgeos_1_1geomgraph_1_1EdgeIntersectionLessThen.html">EdgeIntersectionLessThen</a> {</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; <span class="keywordtype">bool</span></div><div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="structgeos_1_1geomgraph_1_1EdgeIntersectionLessThen.html#a41b1b65683a3c75961dcede936b32dd6"> 128</a></span>&#160; <a class="code" href="structgeos_1_1geomgraph_1_1EdgeIntersectionLessThen.html#a41b1b65683a3c75961dcede936b32dd6">operator()</a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1geomgraph_1_1EdgeIntersection.html">EdgeIntersection</a>* ei1,</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; <span class="keyword">const</span> <a class="code" href="classgeos_1_1geomgraph_1_1EdgeIntersection.html">EdgeIntersection</a>* ei2)<span class="keyword"> const</span></div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160;<span class="keyword"> </span>{</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; <span class="keywordflow">return</span> *ei1 &lt; *ei2;</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; }</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160;</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; <span class="keywordtype">bool</span></div><div class="line"><a name="l00135"></a><span class="lineno"><a class="line" href="structgeos_1_1geomgraph_1_1EdgeIntersectionLessThen.html#a079b16f2cfd16e4151f657f1fe78277a"> 135</a></span>&#160; <a class="code" href="structgeos_1_1geomgraph_1_1EdgeIntersectionLessThen.html#a079b16f2cfd16e4151f657f1fe78277a">operator()</a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1geomgraph_1_1EdgeIntersection.html">EdgeIntersection</a>&amp; ei1,</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; <span class="keyword">const</span> <a class="code" href="classgeos_1_1geomgraph_1_1EdgeIntersection.html">EdgeIntersection</a>&amp; ei2)<span class="keyword"> const</span></div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160;<span class="keyword"> </span>{</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; <span class="keywordflow">return</span> ei1 &lt; ei2;</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; }</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160;};</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160;</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160;<span class="keyword">inline</span> std::ostream&amp;</div><div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="namespacegeos_1_1geomgraph.html#a141ab336c06070abadab5b866e496765"> 144</a></span>&#160;<a class="code" href="namespacegeos_1_1geomgraph.html#a9eac84624e935cbf5f22415b6bd21497">operator&lt;&lt; </a>(std::ostream&amp; os, <span class="keyword">const</span> <a class="code" href="classgeos_1_1geomgraph_1_1EdgeIntersection.html">EdgeIntersection</a>&amp; e)</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160;{</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; os &lt;&lt; e.<a class="code" href="classgeos_1_1geomgraph_1_1EdgeIntersection.html#af210032406f05ca94f819a040d05d652">coord</a> &lt;&lt; <span class="stringliteral">&quot; seg # = &quot;</span> &lt;&lt; e.<a class="code" href="classgeos_1_1geomgraph_1_1EdgeIntersection.html#afbdbc3202ef9dee43d63a263d7a3ddff">segmentIndex</a> &lt;&lt; <span class="stringliteral">&quot; dist = &quot;</span> &lt;&lt; e.<a class="code" href="classgeos_1_1geomgraph_1_1EdgeIntersection.html#aa2e8689273ad164252f9e2bd4ad3feaf">dist</a>;</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; <span class="keywordflow">return</span> os;</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160;}</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160;</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160;} <span class="comment">// namespace geos.geomgraph</span></div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160;} <span class="comment">// namespace geos</span></div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160;</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160;<span class="preprocessor">#endif // ifndef GEOS_GEOMGRAPH_EDGEINTERSECTION_H</span></div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160;</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160;</div><div class="ttc" id="export_8h_html_ae36df939090171f6e9a28a8cb6254fea"><div class="ttname"><a href="export_8h.html#ae36df939090171f6e9a28a8cb6254fea">GEOS_DLL</a></div><div class="ttdeci">#define GEOS_DLL</div><div class="ttdef"><b>Definition:</b> <a href="export_8h_source.html#l00028">export.h:28</a></div></div>
<div class="ttc" id="classgeos_1_1geomgraph_1_1EdgeIntersection_html_ad9c129c3b610293c1fc87f005c22f675"><div class="ttname"><a href="classgeos_1_1geomgraph_1_1EdgeIntersection.html#ad9c129c3b610293c1fc87f005c22f675">geos::geomgraph::EdgeIntersection::EdgeIntersection</a></div><div class="ttdeci">EdgeIntersection(const geom::Coordinate &amp;newCoord, size_t newSegmentIndex, double newDist)</div><div class="ttdef"><b>Definition:</b> <a href="EdgeIntersection_8h_source.html#l00057">EdgeIntersection.h:57</a></div></div>
<div class="ttc" id="inline_8h_html"><div class="ttname"><a href="inline_8h.html">inline.h</a></div></div>
<div class="ttc" id="classgeos_1_1geom_1_1Coordinate_html"><div class="ttname"><a href="classgeos_1_1geom_1_1Coordinate.html">geos::geom::Coordinate</a></div><div class="ttdoc">Coordinate is the lightweight class used to store coordinates. </div><div class="ttdef"><b>Definition:</b> <a href="Coordinate_8h_source.html#l00060">Coordinate.h:60</a></div></div>
<div class="ttc" id="export_8h_html"><div class="ttname"><a href="export_8h.html">export.h</a></div></div>
<div class="ttc" id="structgeos_1_1geomgraph_1_1EdgeIntersectionLessThen_html_a41b1b65683a3c75961dcede936b32dd6"><div class="ttname"><a href="structgeos_1_1geomgraph_1_1EdgeIntersectionLessThen.html#a41b1b65683a3c75961dcede936b32dd6">geos::geomgraph::EdgeIntersectionLessThen::operator()</a></div><div class="ttdeci">bool operator()(const EdgeIntersection *ei1, const EdgeIntersection *ei2) const </div><div class="ttdef"><b>Definition:</b> <a href="EdgeIntersection_8h_source.html#l00128">EdgeIntersection.h:128</a></div></div>
<div class="ttc" id="classgeos_1_1geomgraph_1_1EdgeIntersection_html_aa2e8689273ad164252f9e2bd4ad3feaf"><div class="ttname"><a href="classgeos_1_1geomgraph_1_1EdgeIntersection.html#aa2e8689273ad164252f9e2bd4ad3feaf">geos::geomgraph::EdgeIntersection::dist</a></div><div class="ttdeci">double dist</div><div class="ttdef"><b>Definition:</b> <a href="EdgeIntersection_8h_source.html#l00052">EdgeIntersection.h:52</a></div></div>
<div class="ttc" id="structgeos_1_1geomgraph_1_1EdgeIntersectionLessThen_html_a079b16f2cfd16e4151f657f1fe78277a"><div class="ttname"><a href="structgeos_1_1geomgraph_1_1EdgeIntersectionLessThen.html#a079b16f2cfd16e4151f657f1fe78277a">geos::geomgraph::EdgeIntersectionLessThen::operator()</a></div><div class="ttdeci">bool operator()(const EdgeIntersection &amp;ei1, const EdgeIntersection &amp;ei2) const </div><div class="ttdef"><b>Definition:</b> <a href="EdgeIntersection_8h_source.html#l00135">EdgeIntersection.h:135</a></div></div>
<div class="ttc" id="classgeos_1_1geomgraph_1_1EdgeIntersection_html"><div class="ttname"><a href="classgeos_1_1geomgraph_1_1EdgeIntersection.html">geos::geomgraph::EdgeIntersection</a></div><div class="ttdoc">Represents a point on an edge which intersects with another edge. </div><div class="ttdef"><b>Definition:</b> <a href="EdgeIntersection_8h_source.html#l00045">EdgeIntersection.h:45</a></div></div>
<div class="ttc" id="classgeos_1_1geomgraph_1_1EdgeIntersection_html_ab01a2f5cbcaff2f47efe15b019634c7e"><div class="ttname"><a href="classgeos_1_1geomgraph_1_1EdgeIntersection.html#ab01a2f5cbcaff2f47efe15b019634c7e">geos::geomgraph::EdgeIntersection::getDistance</a></div><div class="ttdeci">double getDistance() const </div><div class="ttdef"><b>Definition:</b> <a href="EdgeIntersection_8h_source.html#l00090">EdgeIntersection.h:90</a></div></div>
<div class="ttc" id="classgeos_1_1geomgraph_1_1EdgeIntersection_html_af210032406f05ca94f819a040d05d652"><div class="ttname"><a href="classgeos_1_1geomgraph_1_1EdgeIntersection.html#af210032406f05ca94f819a040d05d652">geos::geomgraph::EdgeIntersection::coord</a></div><div class="ttdeci">geom::Coordinate coord</div><div class="ttdef"><b>Definition:</b> <a href="EdgeIntersection_8h_source.html#l00049">EdgeIntersection.h:49</a></div></div>
<div class="ttc" id="classgeos_1_1geomgraph_1_1EdgeIntersection_html_a163c26a9955ea6287d259457fbc422f3"><div class="ttname"><a href="classgeos_1_1geomgraph_1_1EdgeIntersection.html#a163c26a9955ea6287d259457fbc422f3">geos::geomgraph::EdgeIntersection::operator==</a></div><div class="ttdeci">bool operator==(const EdgeIntersection &amp;other) const </div><div class="ttdef"><b>Definition:</b> <a href="EdgeIntersection_8h_source.html#l00095">EdgeIntersection.h:95</a></div></div>
<div class="ttc" id="namespacegeos_1_1geomgraph_html_a4e0bda6ab47ae25ad785cfd4c6e7d07b"><div class="ttname"><a href="namespacegeos_1_1geomgraph.html#a4e0bda6ab47ae25ad785cfd4c6e7d07b">geos::geomgraph::operator&lt;</a></div><div class="ttdeci">bool operator&lt;(const EdgeIntersection &amp;ei1, const EdgeIntersection &amp;ei2)</div><div class="ttdef"><b>Definition:</b> <a href="EdgeIntersection_8h_source.html#l00108">EdgeIntersection.h:108</a></div></div>
<div class="ttc" id="namespacegeos_1_1geomgraph_html_a9eac84624e935cbf5f22415b6bd21497"><div class="ttname"><a href="namespacegeos_1_1geomgraph.html#a9eac84624e935cbf5f22415b6bd21497">geos::geomgraph::operator&lt;&lt;</a></div><div class="ttdeci">std::ostream &amp; operator&lt;&lt;(std::ostream &amp;os, const Edge &amp;el)</div></div>
<div class="ttc" id="classgeos_1_1geomgraph_1_1EdgeIntersection_html_afbdbc3202ef9dee43d63a263d7a3ddff"><div class="ttname"><a href="classgeos_1_1geomgraph_1_1EdgeIntersection.html#afbdbc3202ef9dee43d63a263d7a3ddff">geos::geomgraph::EdgeIntersection::segmentIndex</a></div><div class="ttdeci">size_t segmentIndex</div><div class="ttdef"><b>Definition:</b> <a href="EdgeIntersection_8h_source.html#l00055">EdgeIntersection.h:55</a></div></div>
<div class="ttc" id="namespacegeos_html"><div class="ttname"><a href="namespacegeos.html">geos</a></div><div class="ttdoc">Basic namespace for all GEOS functionalities. </div><div class="ttdef"><b>Definition:</b> <a href="IndexedNestedRingTester_8h_source.html#l00026">IndexedNestedRingTester.h:26</a></div></div>
<div class="ttc" id="classgeos_1_1geomgraph_1_1EdgeIntersection_html_a9c643ec778edbb5ac7b4dfe6594ded51"><div class="ttname"><a href="classgeos_1_1geomgraph_1_1EdgeIntersection.html#a9c643ec778edbb5ac7b4dfe6594ded51">geos::geomgraph::EdgeIntersection::getCoordinate</a></div><div class="ttdeci">const geom::Coordinate &amp; getCoordinate() const </div><div class="ttdef"><b>Definition:</b> <a href="EdgeIntersection_8h_source.html#l00078">EdgeIntersection.h:78</a></div></div>
<div class="ttc" id="classgeos_1_1geomgraph_1_1EdgeIntersection_html_a6dc5982e0064cc3a762dd61bd4e31281"><div class="ttname"><a href="classgeos_1_1geomgraph_1_1EdgeIntersection.html#a6dc5982e0064cc3a762dd61bd4e31281">geos::geomgraph::EdgeIntersection::isEndPoint</a></div><div class="ttdeci">bool isEndPoint(size_t maxSegmentIndex) const </div><div class="ttdef"><b>Definition:</b> <a href="EdgeIntersection_8h_source.html#l00066">EdgeIntersection.h:66</a></div></div>
<div class="ttc" id="structgeos_1_1geomgraph_1_1EdgeIntersectionLessThen_html"><div class="ttname"><a href="structgeos_1_1geomgraph_1_1EdgeIntersectionLessThen.html">geos::geomgraph::EdgeIntersectionLessThen</a></div><div class="ttdef"><b>Definition:</b> <a href="EdgeIntersection_8h_source.html#l00126">EdgeIntersection.h:126</a></div></div>
<div class="ttc" id="Coordinate_8h_html"><div class="ttname"><a href="Coordinate_8h.html">Coordinate.h</a></div></div>
<div class="ttc" id="classgeos_1_1geomgraph_1_1EdgeIntersection_html_a50fce9ad1f99460205dfc08c90d98204"><div class="ttname"><a href="classgeos_1_1geomgraph_1_1EdgeIntersection.html#a50fce9ad1f99460205dfc08c90d98204">geos::geomgraph::EdgeIntersection::getSegmentIndex</a></div><div class="ttdeci">size_t getSegmentIndex() const </div><div class="ttdef"><b>Definition:</b> <a href="EdgeIntersection_8h_source.html#l00084">EdgeIntersection.h:84</a></div></div>
</div><!-- fragment --></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>