Files
geometry/doc/doxygen_output/html/intersection__result_8hpp_source.html
Barend Gehrels 363580fbf6 Added old doxygen docs
[SVN r59777]
2010-02-20 15:57:12 +00:00

232 lines
29 KiB
HTML
Raw Blame History

<!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>Boost.Geometry (aka GGL, Generic Geometry Library)</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head>
<table cellpadding="2" width="100%">
<tbody>
<tr>
<td valign="top">
<img alt="Boost.Geometry" src="images/ggl-logo-big.png" height="80" width="200">
&nbsp;&nbsp;
</td>
<td valign="top" align="right">
<a href="http://www.boost.org">
<img alt="Boost C++ Libraries" src="images/accepted_by_boost.png" height="80" width="230" border="0">
</a>
</td>
</tr>
</tbody>
</table>
<!-- Generated by Doxygen 1.5.9 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
<li><a href="modules.html"><span>Modules</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>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
<h1>boost/geometry/strategies/intersection_result.hpp</h1><a href="intersection__result_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// Boost.Geometry (aka GGL, Generic Geometry Library)</span>
<a name="l00002"></a>00002 <span class="comment">//</span>
<a name="l00003"></a>00003 <span class="comment">// Copyright Barend Gehrels 2007-2009, Geodan, Amsterdam, the Netherlands.</span>
<a name="l00004"></a>00004 <span class="comment">// Copyright Bruno Lalande 2008, 2009</span>
<a name="l00005"></a>00005 <span class="comment">// Use, modification and distribution is subject to the Boost Software License,</span>
<a name="l00006"></a>00006 <span class="comment">// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at</span>
<a name="l00007"></a>00007 <span class="comment">// http://www.boost.org/LICENSE_1_0.txt)</span>
<a name="l00008"></a>00008
<a name="l00009"></a>00009 <span class="preprocessor">#ifndef BOOST_GEOMETRY_STRATEGIES_INTERSECTION_RESULT_HPP</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span><span class="preprocessor">#define BOOST_GEOMETRY_STRATEGIES_INTERSECTION_RESULT_HPP</span>
<a name="l00011"></a>00011 <span class="preprocessor"></span>
<a name="l00012"></a>00012 <span class="preprocessor">#if defined(HAVE_MATRIX_AS_STRING)</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span><span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00014"></a>00014 <span class="preprocessor">#endif</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span>
<a name="l00016"></a>00016 <span class="keyword">namespace </span>boost { <span class="keyword">namespace </span>geometry
<a name="l00017"></a>00017 {
<a name="l00018"></a>00018
<a name="l00025"></a><a class="code" href="structboost_1_1geometry_1_1de9im.html">00025</a> <span class="keyword">struct </span><a class="code" href="structboost_1_1geometry_1_1de9im.html" title="Dimensionally Extended 9 Intersection Matrix.">de9im</a>
<a name="l00026"></a>00026 {
<a name="l00027"></a><a class="code" href="structboost_1_1geometry_1_1de9im.html#30d3e8ec95d3b107d64f4bdbc17b3c48">00027</a> <span class="keywordtype">int</span> <a class="code" href="structboost_1_1geometry_1_1de9im.html#30d3e8ec95d3b107d64f4bdbc17b3c48">ii</a>, <a class="code" href="structboost_1_1geometry_1_1de9im.html#86a2cceb84cd13d6b158fd96e33d4844">ib</a>, <a class="code" href="structboost_1_1geometry_1_1de9im.html#3b7bc6a36fb77a6f531c4367b57d7fa8">ie</a>,
<a name="l00028"></a>00028 <a class="code" href="structboost_1_1geometry_1_1de9im.html#6d19fac08bb58e1aa5609335c6db6097">bi</a>, <a class="code" href="structboost_1_1geometry_1_1de9im.html#e86f750cf82dee8fa430568d5197fb5f">bb</a>, <a class="code" href="structboost_1_1geometry_1_1de9im.html#3defb8c36add0e9dff40869f4bb6ac0b">be</a>,
<a name="l00029"></a>00029 <a class="code" href="structboost_1_1geometry_1_1de9im.html#005d9faccd5189d8000161a94745d6cf">ei</a>, <a class="code" href="structboost_1_1geometry_1_1de9im.html#880de3c4c41acd801ddc6cba048c1101">eb</a>, <a class="code" href="structboost_1_1geometry_1_1de9im.html#702fd612901fc4f1d701688540584d5a">ee</a>;
<a name="l00030"></a>00030
<a name="l00031"></a><a class="code" href="structboost_1_1geometry_1_1de9im.html#199e0903c3086d0dd7b18a7f1958361a">00031</a> <span class="keyword">inline</span> <a class="code" href="structboost_1_1geometry_1_1de9im.html#199e0903c3086d0dd7b18a7f1958361a">de9im</a>()
<a name="l00032"></a>00032 : <a class="code" href="structboost_1_1geometry_1_1de9im.html#30d3e8ec95d3b107d64f4bdbc17b3c48">ii</a>(-1), <a class="code" href="structboost_1_1geometry_1_1de9im.html#86a2cceb84cd13d6b158fd96e33d4844">ib</a>(-1), <a class="code" href="structboost_1_1geometry_1_1de9im.html#3b7bc6a36fb77a6f531c4367b57d7fa8">ie</a>(-1)
<a name="l00033"></a>00033 , <a class="code" href="structboost_1_1geometry_1_1de9im.html#6d19fac08bb58e1aa5609335c6db6097">bi</a>(-1), <a class="code" href="structboost_1_1geometry_1_1de9im.html#e86f750cf82dee8fa430568d5197fb5f">bb</a>(-1), <a class="code" href="structboost_1_1geometry_1_1de9im.html#3defb8c36add0e9dff40869f4bb6ac0b">be</a>(-1)
<a name="l00034"></a>00034 , <a class="code" href="structboost_1_1geometry_1_1de9im.html#005d9faccd5189d8000161a94745d6cf">ei</a>(-1), <a class="code" href="structboost_1_1geometry_1_1de9im.html#880de3c4c41acd801ddc6cba048c1101">eb</a>(-1), <a class="code" href="structboost_1_1geometry_1_1de9im.html#702fd612901fc4f1d701688540584d5a">ee</a>(-1)
<a name="l00035"></a>00035 {
<a name="l00036"></a>00036 }
<a name="l00037"></a>00037
<a name="l00038"></a><a class="code" href="structboost_1_1geometry_1_1de9im.html#6f5a2a49881a7d9391d721782a5c651c">00038</a> <span class="keyword">inline</span> <a class="code" href="structboost_1_1geometry_1_1de9im.html#199e0903c3086d0dd7b18a7f1958361a">de9im</a>(<span class="keywordtype">int</span> ii0, <span class="keywordtype">int</span> ib0, <span class="keywordtype">int</span> ie0,
<a name="l00039"></a>00039 <span class="keywordtype">int</span> bi0, <span class="keywordtype">int</span> bb0, <span class="keywordtype">int</span> be0,
<a name="l00040"></a>00040 <span class="keywordtype">int</span> ei0, <span class="keywordtype">int</span> eb0, <span class="keywordtype">int</span> ee0)
<a name="l00041"></a>00041 : <a class="code" href="structboost_1_1geometry_1_1de9im.html#30d3e8ec95d3b107d64f4bdbc17b3c48">ii</a>(ii0), <a class="code" href="structboost_1_1geometry_1_1de9im.html#86a2cceb84cd13d6b158fd96e33d4844">ib</a>(ib0), <a class="code" href="structboost_1_1geometry_1_1de9im.html#3b7bc6a36fb77a6f531c4367b57d7fa8">ie</a>(ie0)
<a name="l00042"></a>00042 , <a class="code" href="structboost_1_1geometry_1_1de9im.html#6d19fac08bb58e1aa5609335c6db6097">bi</a>(bi0), <a class="code" href="structboost_1_1geometry_1_1de9im.html#e86f750cf82dee8fa430568d5197fb5f">bb</a>(bb0), <a class="code" href="structboost_1_1geometry_1_1de9im.html#3defb8c36add0e9dff40869f4bb6ac0b">be</a>(be0)
<a name="l00043"></a>00043 , <a class="code" href="structboost_1_1geometry_1_1de9im.html#005d9faccd5189d8000161a94745d6cf">ei</a>(ei0), <a class="code" href="structboost_1_1geometry_1_1de9im.html#880de3c4c41acd801ddc6cba048c1101">eb</a>(eb0), <a class="code" href="structboost_1_1geometry_1_1de9im.html#702fd612901fc4f1d701688540584d5a">ee</a>(ee0)
<a name="l00044"></a>00044 {}
<a name="l00045"></a>00045
<a name="l00046"></a><a class="code" href="structboost_1_1geometry_1_1de9im.html#74a2ed61726da2a4d7cc807e97fa2393">00046</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="structboost_1_1geometry_1_1de9im.html#74a2ed61726da2a4d7cc807e97fa2393">equals</a>()<span class="keyword"> const</span>
<a name="l00047"></a>00047 <span class="keyword"> </span>{
<a name="l00048"></a>00048 <span class="keywordflow">return</span> <a class="code" href="structboost_1_1geometry_1_1de9im.html#30d3e8ec95d3b107d64f4bdbc17b3c48">ii</a> &gt;= 0 &amp;&amp; <a class="code" href="structboost_1_1geometry_1_1de9im.html#3b7bc6a36fb77a6f531c4367b57d7fa8">ie</a> &lt; 0 &amp;&amp; <a class="code" href="structboost_1_1geometry_1_1de9im.html#3defb8c36add0e9dff40869f4bb6ac0b">be</a> &lt; 0 &amp;&amp; <a class="code" href="structboost_1_1geometry_1_1de9im.html#005d9faccd5189d8000161a94745d6cf">ei</a> &lt; 0 &amp;&amp; <a class="code" href="structboost_1_1geometry_1_1de9im.html#880de3c4c41acd801ddc6cba048c1101">eb</a> &lt; 0;
<a name="l00049"></a>00049 }
<a name="l00050"></a>00050
<a name="l00051"></a><a class="code" href="structboost_1_1geometry_1_1de9im.html#5b48a7354f35b6be6c5e569f3fea5565">00051</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="structboost_1_1geometry_1_1de9im.html#5b48a7354f35b6be6c5e569f3fea5565">disjoint</a>()<span class="keyword"> const</span>
<a name="l00052"></a>00052 <span class="keyword"> </span>{
<a name="l00053"></a>00053 <span class="keywordflow">return</span> <a class="code" href="structboost_1_1geometry_1_1de9im.html#30d3e8ec95d3b107d64f4bdbc17b3c48">ii</a> &lt; 0 &amp;&amp; <a class="code" href="structboost_1_1geometry_1_1de9im.html#86a2cceb84cd13d6b158fd96e33d4844">ib</a> &lt; 0 &amp;&amp; <a class="code" href="structboost_1_1geometry_1_1de9im.html#6d19fac08bb58e1aa5609335c6db6097">bi</a> &lt; 0 &amp;&amp; <a class="code" href="structboost_1_1geometry_1_1de9im.html#e86f750cf82dee8fa430568d5197fb5f">bb</a> &lt; 0;
<a name="l00054"></a>00054 }
<a name="l00055"></a>00055
<a name="l00056"></a><a class="code" href="structboost_1_1geometry_1_1de9im.html#a1bfc59f8160efd9da800cf4435f2ec7">00056</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="structboost_1_1geometry_1_1de9im.html#a1bfc59f8160efd9da800cf4435f2ec7">intersects</a>()<span class="keyword"> const</span>
<a name="l00057"></a>00057 <span class="keyword"> </span>{
<a name="l00058"></a>00058 <span class="keywordflow">return</span> <a class="code" href="structboost_1_1geometry_1_1de9im.html#30d3e8ec95d3b107d64f4bdbc17b3c48">ii</a> &gt;= 0 || <a class="code" href="structboost_1_1geometry_1_1de9im.html#e86f750cf82dee8fa430568d5197fb5f">bb</a> &gt;= 0 || <a class="code" href="structboost_1_1geometry_1_1de9im.html#6d19fac08bb58e1aa5609335c6db6097">bi</a> &gt;= 0 || <a class="code" href="structboost_1_1geometry_1_1de9im.html#86a2cceb84cd13d6b158fd96e33d4844">ib</a> &gt;= 0;
<a name="l00059"></a>00059 }
<a name="l00060"></a>00060
<a name="l00061"></a><a class="code" href="structboost_1_1geometry_1_1de9im.html#4b45501e632759d01cd804f775dbf492">00061</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="structboost_1_1geometry_1_1de9im.html#4b45501e632759d01cd804f775dbf492">touches</a>()<span class="keyword"> const</span>
<a name="l00062"></a>00062 <span class="keyword"> </span>{
<a name="l00063"></a>00063 <span class="keywordflow">return</span> ii &lt; 0 &amp;&amp; (bb &gt;= 0 || <a class="code" href="structboost_1_1geometry_1_1de9im.html#6d19fac08bb58e1aa5609335c6db6097">bi</a> &gt;= 0 || <a class="code" href="structboost_1_1geometry_1_1de9im.html#86a2cceb84cd13d6b158fd96e33d4844">ib</a> &gt;= 0);
<a name="l00064"></a>00064 }
<a name="l00065"></a>00065
<a name="l00066"></a><a class="code" href="structboost_1_1geometry_1_1de9im.html#cc0220864beb4e5123a8e1f6476b4701">00066</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="structboost_1_1geometry_1_1de9im.html#cc0220864beb4e5123a8e1f6476b4701">crosses</a>()<span class="keyword"> const</span>
<a name="l00067"></a>00067 <span class="keyword"> </span>{
<a name="l00068"></a>00068 <span class="keywordflow">return</span> (<a class="code" href="structboost_1_1geometry_1_1de9im.html#30d3e8ec95d3b107d64f4bdbc17b3c48">ii</a> &gt;= 0 &amp;&amp; <a class="code" href="structboost_1_1geometry_1_1de9im.html#3b7bc6a36fb77a6f531c4367b57d7fa8">ie</a> &gt;= 0) || (<a class="code" href="structboost_1_1geometry_1_1de9im.html#30d3e8ec95d3b107d64f4bdbc17b3c48">ii</a> == 0);
<a name="l00069"></a>00069 }
<a name="l00070"></a>00070
<a name="l00071"></a><a class="code" href="structboost_1_1geometry_1_1de9im.html#39540236c34421dc78198aa8ff5f0c1a">00071</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="structboost_1_1geometry_1_1de9im.html#39540236c34421dc78198aa8ff5f0c1a">overlaps</a>()<span class="keyword"> const</span>
<a name="l00072"></a>00072 <span class="keyword"> </span>{
<a name="l00073"></a>00073 <span class="keywordflow">return</span> <a class="code" href="structboost_1_1geometry_1_1de9im.html#30d3e8ec95d3b107d64f4bdbc17b3c48">ii</a> &gt;= 0 &amp;&amp; <a class="code" href="structboost_1_1geometry_1_1de9im.html#3b7bc6a36fb77a6f531c4367b57d7fa8">ie</a> &gt;= 0 &amp;&amp; <a class="code" href="structboost_1_1geometry_1_1de9im.html#005d9faccd5189d8000161a94745d6cf">ei</a> &gt;= 0;
<a name="l00074"></a>00074 }
<a name="l00075"></a>00075
<a name="l00076"></a><a class="code" href="structboost_1_1geometry_1_1de9im.html#8ba006f60c0408d46ded15fd0c6ad1e7">00076</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="structboost_1_1geometry_1_1de9im.html#8ba006f60c0408d46ded15fd0c6ad1e7">within</a>()<span class="keyword"> const</span>
<a name="l00077"></a>00077 <span class="keyword"> </span>{
<a name="l00078"></a>00078 <span class="keywordflow">return</span> <a class="code" href="structboost_1_1geometry_1_1de9im.html#30d3e8ec95d3b107d64f4bdbc17b3c48">ii</a> &gt;= 0 &amp;&amp; <a class="code" href="structboost_1_1geometry_1_1de9im.html#3b7bc6a36fb77a6f531c4367b57d7fa8">ie</a> &lt; 0 &amp;&amp; <a class="code" href="structboost_1_1geometry_1_1de9im.html#3defb8c36add0e9dff40869f4bb6ac0b">be</a> &lt; 0;
<a name="l00079"></a>00079 }
<a name="l00080"></a>00080
<a name="l00081"></a><a class="code" href="structboost_1_1geometry_1_1de9im.html#a277f4098a000e0776f30d1410eb1876">00081</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="structboost_1_1geometry_1_1de9im.html#a277f4098a000e0776f30d1410eb1876">contains</a>()<span class="keyword"> const</span>
<a name="l00082"></a>00082 <span class="keyword"> </span>{
<a name="l00083"></a>00083 <span class="keywordflow">return</span> <a class="code" href="structboost_1_1geometry_1_1de9im.html#30d3e8ec95d3b107d64f4bdbc17b3c48">ii</a> &gt;= 0 &amp;&amp; <a class="code" href="structboost_1_1geometry_1_1de9im.html#005d9faccd5189d8000161a94745d6cf">ei</a> &lt; 0 &amp;&amp; <a class="code" href="structboost_1_1geometry_1_1de9im.html#880de3c4c41acd801ddc6cba048c1101">eb</a> &lt; 0;
<a name="l00084"></a>00084 }
<a name="l00085"></a>00085
<a name="l00086"></a>00086
<a name="l00087"></a><a class="code" href="structboost_1_1geometry_1_1de9im.html#c1d084d934a99b52ec2d1fe1fcbdfa84">00087</a> <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">char</span> <a class="code" href="structboost_1_1geometry_1_1de9im.html#c1d084d934a99b52ec2d1fe1fcbdfa84">as_char</a>(<span class="keywordtype">int</span> v)
<a name="l00088"></a>00088 {
<a name="l00089"></a>00089 <span class="keywordflow">return</span> v &gt;= 0 &amp;&amp; v &lt; 10 ? (<span class="charliteral">'0'</span> + char(v)) : <span class="charliteral">'-'</span>;
<a name="l00090"></a>00090 }
<a name="l00091"></a>00091
<a name="l00092"></a>00092 <span class="preprocessor">#if defined(HAVE_MATRIX_AS_STRING)</span>
<a name="l00093"></a>00093 <span class="preprocessor"></span> <span class="keyword">inline</span> std::string matrix_as_string(std::string <span class="keyword">const</span>&amp; tab, std::string <span class="keyword">const</span>&amp; nl)<span class="keyword"> const</span>
<a name="l00094"></a>00094 <span class="keyword"> </span>{
<a name="l00095"></a>00095 std::string ret;
<a name="l00096"></a>00096 ret.reserve(9 + tab.length() * 3 + nl.length() * 3);
<a name="l00097"></a>00097 ret += tab; ret += <a class="code" href="structboost_1_1geometry_1_1de9im.html#c1d084d934a99b52ec2d1fe1fcbdfa84">as_char</a>(<a class="code" href="structboost_1_1geometry_1_1de9im.html#30d3e8ec95d3b107d64f4bdbc17b3c48">ii</a>); ret += <a class="code" href="structboost_1_1geometry_1_1de9im.html#c1d084d934a99b52ec2d1fe1fcbdfa84">as_char</a>(<a class="code" href="structboost_1_1geometry_1_1de9im.html#86a2cceb84cd13d6b158fd96e33d4844">ib</a>); ret += <a class="code" href="structboost_1_1geometry_1_1de9im.html#c1d084d934a99b52ec2d1fe1fcbdfa84">as_char</a>(<a class="code" href="structboost_1_1geometry_1_1de9im.html#3b7bc6a36fb77a6f531c4367b57d7fa8">ie</a>); ret += nl;
<a name="l00098"></a>00098 ret += tab; ret += <a class="code" href="structboost_1_1geometry_1_1de9im.html#c1d084d934a99b52ec2d1fe1fcbdfa84">as_char</a>(<a class="code" href="structboost_1_1geometry_1_1de9im.html#6d19fac08bb58e1aa5609335c6db6097">bi</a>); ret += <a class="code" href="structboost_1_1geometry_1_1de9im.html#c1d084d934a99b52ec2d1fe1fcbdfa84">as_char</a>(<a class="code" href="structboost_1_1geometry_1_1de9im.html#e86f750cf82dee8fa430568d5197fb5f">bb</a>); ret += <a class="code" href="structboost_1_1geometry_1_1de9im.html#c1d084d934a99b52ec2d1fe1fcbdfa84">as_char</a>(<a class="code" href="structboost_1_1geometry_1_1de9im.html#3defb8c36add0e9dff40869f4bb6ac0b">be</a>); ret += nl;
<a name="l00099"></a>00099 ret += tab; ret += <a class="code" href="structboost_1_1geometry_1_1de9im.html#c1d084d934a99b52ec2d1fe1fcbdfa84">as_char</a>(<a class="code" href="structboost_1_1geometry_1_1de9im.html#005d9faccd5189d8000161a94745d6cf">ei</a>); ret += <a class="code" href="structboost_1_1geometry_1_1de9im.html#c1d084d934a99b52ec2d1fe1fcbdfa84">as_char</a>(<a class="code" href="structboost_1_1geometry_1_1de9im.html#880de3c4c41acd801ddc6cba048c1101">eb</a>); ret += <a class="code" href="structboost_1_1geometry_1_1de9im.html#c1d084d934a99b52ec2d1fe1fcbdfa84">as_char</a>(<a class="code" href="structboost_1_1geometry_1_1de9im.html#702fd612901fc4f1d701688540584d5a">ee</a>);
<a name="l00100"></a>00100 <span class="keywordflow">return</span> ret;
<a name="l00101"></a>00101 }
<a name="l00102"></a>00102
<a name="l00103"></a>00103 <span class="keyword">inline</span> std::string matrix_as_string()<span class="keyword"> const</span>
<a name="l00104"></a>00104 <span class="keyword"> </span>{
<a name="l00105"></a>00105 <span class="keywordflow">return</span> matrix_as_string(<span class="stringliteral">""</span>, <span class="stringliteral">""</span>);
<a name="l00106"></a>00106 }
<a name="l00107"></a>00107 <span class="preprocessor">#endif</span>
<a name="l00108"></a>00108 <span class="preprocessor"></span>
<a name="l00109"></a>00109 };
<a name="l00110"></a>00110
<a name="l00111"></a><a class="code" href="structboost_1_1geometry_1_1de9im__segment.html">00111</a> <span class="keyword">struct </span><a class="code" href="structboost_1_1geometry_1_1de9im__segment.html">de9im_segment</a> : <span class="keyword">public</span> <a class="code" href="structboost_1_1geometry_1_1de9im.html" title="Dimensionally Extended 9 Intersection Matrix.">de9im</a>
<a name="l00112"></a>00112 {
<a name="l00113"></a><a class="code" href="structboost_1_1geometry_1_1de9im__segment.html#96647ef5a92c4de4da73aad770af6b57">00113</a> <span class="keywordtype">bool</span> <a class="code" href="structboost_1_1geometry_1_1de9im__segment.html#96647ef5a92c4de4da73aad770af6b57">collinear</a>; <span class="comment">// true if segments are aligned (for equal,overlap,touch)</span>
<a name="l00114"></a><a class="code" href="structboost_1_1geometry_1_1de9im__segment.html#3d7e6a57033870e79de2d5f4455f1d6e">00114</a> <span class="keywordtype">bool</span> <a class="code" href="structboost_1_1geometry_1_1de9im__segment.html#3d7e6a57033870e79de2d5f4455f1d6e">opposite</a>; <span class="comment">// true if direction is reversed (for equal,overlap,touch)</span>
<a name="l00115"></a><a class="code" href="structboost_1_1geometry_1_1de9im__segment.html#103af15719f5f4fefb7be0684daff7a2">00115</a> <span class="keywordtype">bool</span> <a class="code" href="structboost_1_1geometry_1_1de9im__segment.html#103af15719f5f4fefb7be0684daff7a2">parallel</a>; <span class="comment">// true if disjoint but parallel</span>
<a name="l00116"></a><a class="code" href="structboost_1_1geometry_1_1de9im__segment.html#361579d30de6d068f1b86c1884d3922a">00116</a> <span class="keywordtype">bool</span> <a class="code" href="structboost_1_1geometry_1_1de9im__segment.html#361579d30de6d068f1b86c1884d3922a">degenerate</a>; <span class="comment">// true for segment(s) of zero length</span>
<a name="l00117"></a>00117
<a name="l00118"></a><a class="code" href="structboost_1_1geometry_1_1de9im__segment.html#9f6f2ab30b225e3f545fd4af5ba39719">00118</a> <span class="keywordtype">double</span> <a class="code" href="structboost_1_1geometry_1_1de9im__segment.html#8983cfe5c2840fd6ed343c5feabc0855">ra</a>, <a class="code" href="structboost_1_1geometry_1_1de9im__segment.html#9f6f2ab30b225e3f545fd4af5ba39719">rb</a>; <span class="comment">// temp</span>
<a name="l00119"></a>00119
<a name="l00120"></a><a class="code" href="structboost_1_1geometry_1_1de9im__segment.html#72c2720568b9eaf8bd895f29c5e8c51f">00120</a> <span class="keyword">inline</span> <a class="code" href="structboost_1_1geometry_1_1de9im__segment.html#72c2720568b9eaf8bd895f29c5e8c51f">de9im_segment</a>()
<a name="l00121"></a>00121 : <a class="code" href="structboost_1_1geometry_1_1de9im.html" title="Dimensionally Extended 9 Intersection Matrix.">de9im</a>()
<a name="l00122"></a>00122 , <a class="code" href="structboost_1_1geometry_1_1de9im__segment.html#96647ef5a92c4de4da73aad770af6b57">collinear</a>(false)
<a name="l00123"></a>00123 , <a class="code" href="structboost_1_1geometry_1_1de9im__segment.html#3d7e6a57033870e79de2d5f4455f1d6e">opposite</a>(false)
<a name="l00124"></a>00124 , <a class="code" href="structboost_1_1geometry_1_1de9im__segment.html#103af15719f5f4fefb7be0684daff7a2">parallel</a>(false)
<a name="l00125"></a>00125 , <a class="code" href="structboost_1_1geometry_1_1de9im__segment.html#361579d30de6d068f1b86c1884d3922a">degenerate</a>(false)
<a name="l00126"></a>00126 {}
<a name="l00127"></a>00127
<a name="l00128"></a><a class="code" href="structboost_1_1geometry_1_1de9im__segment.html#407be8180a2cb89e5227061cd432e2de">00128</a> <span class="keyword">inline</span> <a class="code" href="structboost_1_1geometry_1_1de9im__segment.html#72c2720568b9eaf8bd895f29c5e8c51f">de9im_segment</a>(<span class="keywordtype">double</span> a, <span class="keywordtype">double</span> b,
<a name="l00129"></a>00129 <span class="keywordtype">int</span> ii0, <span class="keywordtype">int</span> ib0, <span class="keywordtype">int</span> ie0,
<a name="l00130"></a>00130 <span class="keywordtype">int</span> bi0, <span class="keywordtype">int</span> bb0, <span class="keywordtype">int</span> be0,
<a name="l00131"></a>00131 <span class="keywordtype">int</span> ei0, <span class="keywordtype">int</span> eb0, <span class="keywordtype">int</span> ee0,
<a name="l00132"></a>00132 <span class="keywordtype">bool</span> c = <span class="keyword">false</span>, <span class="keywordtype">bool</span> o = <span class="keyword">false</span>, <span class="keywordtype">bool</span> p = <span class="keyword">false</span>, <span class="keywordtype">bool</span> d = <span class="keyword">false</span>)
<a name="l00133"></a>00133 : <a class="code" href="structboost_1_1geometry_1_1de9im.html" title="Dimensionally Extended 9 Intersection Matrix.">de9im</a>(ii0, ib0, ie0, bi0, bb0, be0, ei0, eb0, ee0)
<a name="l00134"></a>00134 , <a class="code" href="structboost_1_1geometry_1_1de9im__segment.html#96647ef5a92c4de4da73aad770af6b57">collinear</a>(c)
<a name="l00135"></a>00135 , <a class="code" href="structboost_1_1geometry_1_1de9im__segment.html#3d7e6a57033870e79de2d5f4455f1d6e">opposite</a>(o)
<a name="l00136"></a>00136 , <a class="code" href="structboost_1_1geometry_1_1de9im__segment.html#103af15719f5f4fefb7be0684daff7a2">parallel</a>(p)
<a name="l00137"></a>00137 , <a class="code" href="structboost_1_1geometry_1_1de9im__segment.html#361579d30de6d068f1b86c1884d3922a">degenerate</a>(d)
<a name="l00138"></a>00138 , <a class="code" href="structboost_1_1geometry_1_1de9im__segment.html#8983cfe5c2840fd6ed343c5feabc0855">ra</a>(a), <a class="code" href="structboost_1_1geometry_1_1de9im__segment.html#9f6f2ab30b225e3f545fd4af5ba39719">rb</a>(b)
<a name="l00139"></a>00139 {}
<a name="l00140"></a>00140
<a name="l00141"></a>00141
<a name="l00142"></a>00142 <span class="preprocessor">#if defined(HAVE_MATRIX_AS_STRING)</span>
<a name="l00143"></a>00143 <span class="preprocessor"></span> <span class="keyword">inline</span> std::string as_string()<span class="keyword"> const</span>
<a name="l00144"></a>00144 <span class="keyword"> </span>{
<a name="l00145"></a>00145 std::string ret = matrix_as_string();
<a name="l00146"></a>00146 ret += <a class="code" href="structboost_1_1geometry_1_1de9im__segment.html#96647ef5a92c4de4da73aad770af6b57">collinear</a> ? <span class="stringliteral">"c"</span> : <span class="stringliteral">"-"</span>;
<a name="l00147"></a>00147 ret += <a class="code" href="structboost_1_1geometry_1_1de9im__segment.html#3d7e6a57033870e79de2d5f4455f1d6e">opposite</a> ? <span class="stringliteral">"o"</span> : <span class="stringliteral">"-"</span>;
<a name="l00148"></a>00148 <span class="keywordflow">return</span> ret;
<a name="l00149"></a>00149 }
<a name="l00150"></a>00150 <span class="preprocessor">#endif</span>
<a name="l00151"></a>00151 <span class="preprocessor"></span>};
<a name="l00152"></a>00152
<a name="l00153"></a>00153
<a name="l00154"></a>00154
<a name="l00155"></a>00155 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Po<span class="keywordtype">int</span>&gt;
<a name="l00156"></a><a class="code" href="structboost_1_1geometry_1_1segment__intersection__points.html">00156</a> <span class="keyword">struct </span><a class="code" href="structboost_1_1geometry_1_1segment__intersection__points.html">segment_intersection_points</a>
<a name="l00157"></a>00157 {
<a name="l00158"></a><a class="code" href="structboost_1_1geometry_1_1segment__intersection__points.html#191edfe52db0227929779af5bcb82f3d">00158</a> std::size_t <a class="code" href="structboost_1_1geometry_1_1segment__intersection__points.html#191edfe52db0227929779af5bcb82f3d">count</a>;
<a name="l00159"></a><a class="code" href="structboost_1_1geometry_1_1segment__intersection__points.html#d344385cdcbfe3189a7a628f004453ad">00159</a> Point <a class="code" href="structboost_1_1geometry_1_1segment__intersection__points.html#d344385cdcbfe3189a7a628f004453ad">intersections</a>[2];
<a name="l00160"></a><a class="code" href="structboost_1_1geometry_1_1segment__intersection__points.html#f72570313334eda18e14fc487fa628a0">00160</a> <span class="keyword">typedef</span> Point <a class="code" href="structboost_1_1geometry_1_1point__type.html" title="Meta-function which defines point type of any geometry.">point_type</a>;
<a name="l00161"></a>00161
<a name="l00162"></a><a class="code" href="structboost_1_1geometry_1_1segment__intersection__points.html#c3ea56a9f53b88cebcccf02d1be80be0">00162</a> <a class="code" href="structboost_1_1geometry_1_1segment__intersection__points.html#c3ea56a9f53b88cebcccf02d1be80be0">segment_intersection_points</a>()
<a name="l00163"></a>00163 : <a class="code" href="structboost_1_1geometry_1_1segment__intersection__points.html#191edfe52db0227929779af5bcb82f3d">count</a>(0)
<a name="l00164"></a>00164 {}
<a name="l00165"></a>00165 };
<a name="l00166"></a>00166
<a name="l00167"></a>00167
<a name="l00168"></a>00168 }} <span class="comment">// namespace boost::geometry</span>
<a name="l00169"></a>00169
<a name="l00170"></a>00170
<a name="l00171"></a>00171 <span class="preprocessor">#endif // BOOST_GEOMETRY_STRATEGIES_INTERSECTION_RESULT_HPP</span>
</pre></div></div>
<hr size="1">
<table width="100%">
<tbody>
<tr>
<td align="left"><small>
<p>December 1, 2009</p>
</small></td>
<td align="right">
<small>Copyright <20> 1995-2009 Barend Gehrels, Geodan, Amsterdam<br>
Copyright <20> 2008-2009 Bruno Lalande, Paris<br>
Copyright <20> 2009 Mateusz Loskot, Cadcorp, London<br>
</small>
</td>
</tr>
</tbody>
</table>
<address style="text-align: right;"><small>
Documentation is generated by&nbsp;<a href="http://www.doxygen.org/index.html">Doxygen</a>
</small></address>
</body>
</html>