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

251 lines
25 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/policies/relate/de9im.hpp</h1><a href="de9im_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_GEOMETRY_POLICIES_RELATE_DE9IM_HPP</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span><span class="preprocessor">#define BOOST_GEOMETRY_GEOMETRY_POLICIES_RELATE_DE9IM_HPP</span>
<a name="l00011"></a>00011 <span class="preprocessor"></span>
<a name="l00012"></a>00012
<a name="l00013"></a>00013 <span class="preprocessor">#include &lt;<a class="code" href="intersection__result_8hpp.html">boost/geometry/strategies/intersection_result.hpp</a>&gt;</span>
<a name="l00014"></a>00014 <span class="preprocessor">#include &lt;<a class="code" href="math_8hpp.html">boost/geometry/util/math.hpp</a>&gt;</span>
<a name="l00015"></a>00015 <span class="preprocessor">#include &lt;<a class="code" href="select__coordinate__type_8hpp.html">boost/geometry/util/select_coordinate_type.hpp</a>&gt;</span>
<a name="l00016"></a>00016
<a name="l00017"></a>00017
<a name="l00018"></a>00018 <span class="keyword">namespace </span>boost { <span class="keyword">namespace </span>geometry
<a name="l00019"></a>00019 {
<a name="l00020"></a>00020
<a name="l00021"></a><a class="code" href="namespaceboost_1_1geometry_1_1policies_1_1relate.html">00021</a> <span class="keyword">namespace </span>policies { <span class="keyword">namespace </span>relate {
<a name="l00022"></a>00022
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> S1, <span class="keyword">typename</span> S2&gt;
<a name="l00025"></a><a class="code" href="structboost_1_1geometry_1_1policies_1_1relate_1_1segments__de9im.html">00025</a> <span class="keyword">struct </span><a class="code" href="structboost_1_1geometry_1_1policies_1_1relate_1_1segments__de9im.html">segments_de9im</a>
<a name="l00026"></a>00026 {
<a name="l00027"></a><a class="code" href="structboost_1_1geometry_1_1policies_1_1relate_1_1segments__de9im.html#facf9ec2e8291419ddabe6e9a335c161">00027</a> <span class="keyword">typedef</span> <a class="code" href="structboost_1_1geometry_1_1de9im__segment.html">de9im_segment</a> <a class="code" href="structboost_1_1geometry_1_1de9im__segment.html">return_type</a>;
<a name="l00028"></a><a class="code" href="structboost_1_1geometry_1_1policies_1_1relate_1_1segments__de9im.html#1304089d70085543b1dc99ba2e9c8a90">00028</a> <span class="keyword">typedef</span> S1 <a class="code" href="structboost_1_1geometry_1_1policies_1_1relate_1_1segments__de9im.html#1304089d70085543b1dc99ba2e9c8a90">segment_type1</a>;
<a name="l00029"></a><a class="code" href="structboost_1_1geometry_1_1policies_1_1relate_1_1segments__de9im.html#774da69dd321ddbb155b02275aeecb47">00029</a> <span class="keyword">typedef</span> S2 <a class="code" href="structboost_1_1geometry_1_1policies_1_1relate_1_1segments__de9im.html#774da69dd321ddbb155b02275aeecb47">segment_type2</a>;
<a name="l00030"></a><a class="code" href="structboost_1_1geometry_1_1policies_1_1relate_1_1segments__de9im.html#0466130263492da83c33fc54c87ab93b">00030</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="structboost_1_1geometry_1_1select__coordinate__type.html" title="Meta-function selecting the most precise coordinate type of two geometries.">select_coordinate_type&lt;S1, S2&gt;::type</a> <a class="code" href="structboost_1_1geometry_1_1coordinate__type.html" title="Meta-function which defines coordinate type (int, float, double, etc) of any geometry...">coordinate_type</a>;
<a name="l00031"></a>00031
<a name="l00032"></a><a class="code" href="structboost_1_1geometry_1_1policies_1_1relate_1_1segments__de9im.html#bee23f03616f5d4aeddad2de40a988f6">00032</a> <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="structboost_1_1geometry_1_1de9im__segment.html">return_type</a> <a class="code" href="structboost_1_1geometry_1_1policies_1_1relate_1_1segments__de9im.html#bee23f03616f5d4aeddad2de40a988f6">rays_intersect</a>(<span class="keywordtype">bool</span> on_segment,
<a name="l00033"></a>00033 <span class="keywordtype">double</span> ra, <span class="keywordtype">double</span> rb,
<a name="l00034"></a>00034 <a class="code" href="structboost_1_1geometry_1_1coordinate__type.html" title="Meta-function which defines coordinate type (int, float, double, etc) of any geometry...">coordinate_type</a> <span class="keyword">const</span>&amp; dx1, <a class="code" href="structboost_1_1geometry_1_1coordinate__type.html" title="Meta-function which defines coordinate type (int, float, double, etc) of any geometry...">coordinate_type</a> <span class="keyword">const</span>&amp; dy1,
<a name="l00035"></a>00035 <a class="code" href="structboost_1_1geometry_1_1coordinate__type.html" title="Meta-function which defines coordinate type (int, float, double, etc) of any geometry...">coordinate_type</a> <span class="keyword">const</span>&amp; dx2, <a class="code" href="structboost_1_1geometry_1_1coordinate__type.html" title="Meta-function which defines coordinate type (int, float, double, etc) of any geometry...">coordinate_type</a> <span class="keyword">const</span>&amp; dy2,
<a name="l00036"></a>00036 <a class="code" href="structboost_1_1geometry_1_1coordinate__type.html" title="Meta-function which defines coordinate type (int, float, double, etc) of any geometry...">coordinate_type</a> <span class="keyword">const</span>&amp; wx, <a class="code" href="structboost_1_1geometry_1_1coordinate__type.html" title="Meta-function which defines coordinate type (int, float, double, etc) of any geometry...">coordinate_type</a> <span class="keyword">const</span>&amp; wy,
<a name="l00037"></a>00037 S1 <span class="keyword">const</span>&amp; s1, S2 <span class="keyword">const</span>&amp; s2)
<a name="l00038"></a>00038 {
<a name="l00039"></a>00039 <span class="keywordflow">if</span>(on_segment)
<a name="l00040"></a>00040 {
<a name="l00041"></a>00041 <span class="comment">// 0 &lt;= ra &lt;= 1 and 0 &lt;= rb &lt;= 1</span>
<a name="l00042"></a>00042 <span class="comment">// Now check if one of them is 0 or 1, these are "touch" cases</span>
<a name="l00043"></a>00043 <span class="keywordtype">bool</span> a = <a class="code" href="group__equals.html#ge18e3cb2ad5b7fbc8f0ce9e0f92397bc" title="Detect if two geometries are spatially equal.">math::equals</a>(ra, 0.0) || <a class="code" href="group__equals.html#ge18e3cb2ad5b7fbc8f0ce9e0f92397bc" title="Detect if two geometries are spatially equal.">math::equals</a>(ra, 1.0);
<a name="l00044"></a>00044 <span class="keywordtype">bool</span> b = <a class="code" href="group__equals.html#ge18e3cb2ad5b7fbc8f0ce9e0f92397bc" title="Detect if two geometries are spatially equal.">math::equals</a>(rb, 0.0) || <a class="code" href="group__equals.html#ge18e3cb2ad5b7fbc8f0ce9e0f92397bc" title="Detect if two geometries are spatially equal.">math::equals</a>(rb, 1.0);
<a name="l00045"></a>00045 <span class="keywordflow">if</span> (a &amp;&amp; b)
<a name="l00046"></a>00046 {
<a name="l00047"></a>00047 <span class="comment">// Touch boundary/boundary: i-i == -1, i-b == -1, b-b == 0</span>
<a name="l00048"></a>00048 <span class="comment">// Opposite: if both are equal they touch in opposite direction</span>
<a name="l00049"></a>00049 <span class="keywordflow">return</span> <a class="code" href="structboost_1_1geometry_1_1de9im__segment.html">de9im_segment</a>(ra,rb,
<a name="l00050"></a>00050 -1, -1, 1,
<a name="l00051"></a>00051 -1, 0, 0,
<a name="l00052"></a>00052 1, 0, 2, <span class="keyword">false</span>, <a class="code" href="group__utility.html#g8d2104edb28c2cecaa93e0a7e6308b77" title="returns true if both arguments are equal.">math::equals</a>(ra,rb));
<a name="l00053"></a>00053 }
<a name="l00054"></a>00054 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (a || b)
<a name="l00055"></a>00055 {
<a name="l00056"></a>00056 <span class="comment">// Touch boundary/interior: i-i == -1, i-b == -1 or 0, b-b == -1</span>
<a name="l00057"></a>00057 <span class="keywordtype">int</span> A = a ? 0 : -1;
<a name="l00058"></a>00058 <span class="keywordtype">int</span> B = b ? 0 : -1;
<a name="l00059"></a>00059 <span class="keywordflow">return</span> <a class="code" href="structboost_1_1geometry_1_1de9im__segment.html">de9im_segment</a>(ra,rb,
<a name="l00060"></a>00060 -1, B, 1,
<a name="l00061"></a>00061 A, -1, 0,
<a name="l00062"></a>00062 1, 0, 2);
<a name="l00063"></a>00063 }
<a name="l00064"></a>00064
<a name="l00065"></a>00065 <span class="comment">// Intersects: i-i == 0, i-b == -1, i-e == 1</span>
<a name="l00066"></a>00066 <span class="keywordflow">return</span> <a class="code" href="structboost_1_1geometry_1_1de9im__segment.html">de9im_segment</a>(ra,rb,
<a name="l00067"></a>00067 0, -1, 1,
<a name="l00068"></a>00068 -1, -1, 0,
<a name="l00069"></a>00069 1, 0, 2);
<a name="l00070"></a>00070 }
<a name="l00071"></a>00071
<a name="l00072"></a>00072 <span class="comment">// Not on segment, disjoint</span>
<a name="l00073"></a>00073 <span class="keywordflow">return</span> <a class="code" href="structboost_1_1geometry_1_1de9im__segment.html">de9im_segment</a>(ra,rb,
<a name="l00074"></a>00074 -1, -1, 1,
<a name="l00075"></a>00075 -1, -1, 0,
<a name="l00076"></a>00076 1, 0, 2);
<a name="l00077"></a>00077 }
<a name="l00078"></a>00078
<a name="l00079"></a><a class="code" href="structboost_1_1geometry_1_1policies_1_1relate_1_1segments__de9im.html#70250d84c8188e0ded915cdd106f1f32">00079</a> <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="structboost_1_1geometry_1_1de9im__segment.html">return_type</a> <a class="code" href="structboost_1_1geometry_1_1policies_1_1relate_1_1segments__de9im.html#70250d84c8188e0ded915cdd106f1f32">collinear_touch</a>(<a class="code" href="structboost_1_1geometry_1_1coordinate__type.html" title="Meta-function which defines coordinate type (int, float, double, etc) of any geometry...">coordinate_type</a> <span class="keyword">const</span>&amp; x,
<a name="l00080"></a>00080 <a class="code" href="structboost_1_1geometry_1_1coordinate__type.html" title="Meta-function which defines coordinate type (int, float, double, etc) of any geometry...">coordinate_type</a> <span class="keyword">const</span>&amp; y, <span class="keywordtype">bool</span> opposite, <span class="keywordtype">char</span>)
<a name="l00081"></a>00081 {
<a name="l00082"></a>00082 <span class="keywordflow">return</span> <a class="code" href="structboost_1_1geometry_1_1de9im__segment.html">de9im_segment</a>(0,0,
<a name="l00083"></a>00083 -1, -1, 1,
<a name="l00084"></a>00084 -1, 0, 0,
<a name="l00085"></a>00085 1, 0, 2,
<a name="l00086"></a>00086 <span class="keyword">true</span>, opposite);
<a name="l00087"></a>00087 }
<a name="l00088"></a>00088
<a name="l00089"></a>00089 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> S&gt;
<a name="l00090"></a><a class="code" href="structboost_1_1geometry_1_1policies_1_1relate_1_1segments__de9im.html#d90e3d10c4dadb4516d47baa0e7cf316">00090</a> <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="structboost_1_1geometry_1_1de9im__segment.html">return_type</a> <a class="code" href="structboost_1_1geometry_1_1policies_1_1relate_1_1segments__de9im.html#d90e3d10c4dadb4516d47baa0e7cf316">collinear_interior_boundary_intersect</a>(S <span class="keyword">const</span>&amp; s,
<a name="l00091"></a>00091 <span class="keywordtype">bool</span> a_within_b, <span class="keywordtype">bool</span> opposite)
<a name="l00092"></a>00092 {
<a name="l00093"></a>00093 <span class="keywordflow">return</span> a_within_b
<a name="l00094"></a>00094 ? <a class="code" href="structboost_1_1geometry_1_1de9im__segment.html">de9im_segment</a>(0,0,
<a name="l00095"></a>00095 1, -1, -1,
<a name="l00096"></a>00096 0, 0, -1,
<a name="l00097"></a>00097 1, 0, 2,
<a name="l00098"></a>00098 <span class="keyword">true</span>, opposite)
<a name="l00099"></a>00099 : de9im_segment(0,0,
<a name="l00100"></a>00100 1, 0, 1,
<a name="l00101"></a>00101 -1, 0, 0,
<a name="l00102"></a>00102 -1, -1, 2,
<a name="l00103"></a>00103 <span class="keyword">true</span>, opposite);
<a name="l00104"></a>00104 }
<a name="l00105"></a>00105
<a name="l00106"></a>00106
<a name="l00107"></a>00107
<a name="l00108"></a><a class="code" href="structboost_1_1geometry_1_1policies_1_1relate_1_1segments__de9im.html#709bf0be576fdcb1159c7d2b66f4df53">00108</a> <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="structboost_1_1geometry_1_1de9im__segment.html">return_type</a> <a class="code" href="structboost_1_1geometry_1_1policies_1_1relate_1_1segments__de9im.html#709bf0be576fdcb1159c7d2b66f4df53">collinear_a_in_b</a>(S1 <span class="keyword">const</span>&amp; s, <span class="keywordtype">bool</span> opposite)
<a name="l00109"></a>00109 {
<a name="l00110"></a>00110 <span class="keywordflow">return</span> <a class="code" href="structboost_1_1geometry_1_1de9im__segment.html">de9im_segment</a>(0,0,
<a name="l00111"></a>00111 1, -1, -1,
<a name="l00112"></a>00112 0, -1, -1,
<a name="l00113"></a>00113 1, 0, 2,
<a name="l00114"></a>00114 <span class="keyword">true</span>, opposite);
<a name="l00115"></a>00115 }
<a name="l00116"></a><a class="code" href="structboost_1_1geometry_1_1policies_1_1relate_1_1segments__de9im.html#f403e476bb84401f2f26ce3528ff9336">00116</a> <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="structboost_1_1geometry_1_1de9im__segment.html">return_type</a> <a class="code" href="structboost_1_1geometry_1_1policies_1_1relate_1_1segments__de9im.html#f403e476bb84401f2f26ce3528ff9336">collinear_b_in_a</a>(<span class="keyword">const</span> S2&amp; s, <span class="keywordtype">bool</span> opposite)
<a name="l00117"></a>00117 {
<a name="l00118"></a>00118 <span class="keywordflow">return</span> <a class="code" href="structboost_1_1geometry_1_1de9im__segment.html">de9im_segment</a>(0,0,
<a name="l00119"></a>00119 1, 0, 1,
<a name="l00120"></a>00120 -1, -1, 0,
<a name="l00121"></a>00121 -1, -1, 2,
<a name="l00122"></a>00122 <span class="keyword">true</span>, opposite);
<a name="l00123"></a>00123 }
<a name="l00124"></a>00124
<a name="l00125"></a><a class="code" href="structboost_1_1geometry_1_1policies_1_1relate_1_1segments__de9im.html#64063c6e4663a55a5fab7da5bf897211">00125</a> <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="structboost_1_1geometry_1_1de9im__segment.html">return_type</a> <a class="code" href="structboost_1_1geometry_1_1policies_1_1relate_1_1segments__de9im.html#64063c6e4663a55a5fab7da5bf897211">collinear_overlaps</a>(
<a name="l00126"></a>00126 <a class="code" href="structboost_1_1geometry_1_1coordinate__type.html" title="Meta-function which defines coordinate type (int, float, double, etc) of any geometry...">coordinate_type</a> <span class="keyword">const</span>&amp; x1, <a class="code" href="structboost_1_1geometry_1_1coordinate__type.html" title="Meta-function which defines coordinate type (int, float, double, etc) of any geometry...">coordinate_type</a> <span class="keyword">const</span>&amp; y1,
<a name="l00127"></a>00127 <a class="code" href="structboost_1_1geometry_1_1coordinate__type.html" title="Meta-function which defines coordinate type (int, float, double, etc) of any geometry...">coordinate_type</a> <span class="keyword">const</span>&amp; x2, <a class="code" href="structboost_1_1geometry_1_1coordinate__type.html" title="Meta-function which defines coordinate type (int, float, double, etc) of any geometry...">coordinate_type</a> <span class="keyword">const</span>&amp; y2, <span class="keywordtype">bool</span> opposite)
<a name="l00128"></a>00128 {
<a name="l00129"></a>00129 <span class="keywordflow">return</span> <a class="code" href="structboost_1_1geometry_1_1de9im__segment.html">de9im_segment</a>(0,0,
<a name="l00130"></a>00130 1, 0, 1,
<a name="l00131"></a>00131 0, -1, 0,
<a name="l00132"></a>00132 1, 0, 2,
<a name="l00133"></a>00133 <span class="keyword">true</span>, opposite);
<a name="l00134"></a>00134 }
<a name="l00135"></a>00135
<a name="l00136"></a><a class="code" href="structboost_1_1geometry_1_1policies_1_1relate_1_1segments__de9im.html#5c8c3cfa814c1064fa9774ce4751d7ee">00136</a> <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="structboost_1_1geometry_1_1de9im__segment.html">return_type</a> <a class="code" href="structboost_1_1geometry_1_1policies_1_1relate_1_1segments__de9im.html#5c8c3cfa814c1064fa9774ce4751d7ee">segment_equal</a>(S1 <span class="keyword">const</span>&amp; s, <span class="keywordtype">bool</span> opposite)
<a name="l00137"></a>00137 {
<a name="l00138"></a>00138 <span class="keywordflow">return</span> <a class="code" href="structboost_1_1geometry_1_1de9im__segment.html">de9im_segment</a>(0,0,
<a name="l00139"></a>00139 1, -1, -1,
<a name="l00140"></a>00140 -1, 0, -1,
<a name="l00141"></a>00141 -1, -1, 2,
<a name="l00142"></a>00142 <span class="keyword">true</span>, opposite);
<a name="l00143"></a>00143 }
<a name="l00144"></a>00144
<a name="l00145"></a><a class="code" href="structboost_1_1geometry_1_1policies_1_1relate_1_1segments__de9im.html#182ada823142f98a2112a6e982a692ff">00145</a> <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="structboost_1_1geometry_1_1de9im__segment.html">return_type</a> <a class="code" href="structboost_1_1geometry_1_1policies_1_1relate_1_1segments__de9im.html#182ada823142f98a2112a6e982a692ff">degenerate</a>(S1 <span class="keyword">const</span>&amp; <a class="code" href="classboost_1_1geometry_1_1segment.html" title="Class segment: small class containing two (templatized) point references.">segment</a>, <span class="keywordtype">bool</span> a_degenerate)
<a name="l00146"></a>00146 {
<a name="l00147"></a>00147 <span class="keywordflow">return</span> a_degenerate
<a name="l00148"></a>00148 ? <a class="code" href="structboost_1_1geometry_1_1de9im__segment.html">de9im_segment</a>(0,0,
<a name="l00149"></a>00149 0, -1, -1,
<a name="l00150"></a>00150 -1, -1, -1,
<a name="l00151"></a>00151 1, 0, 2,
<a name="l00152"></a>00152 <span class="keyword">false</span>, <span class="keyword">false</span>, <span class="keyword">false</span>, <span class="keyword">true</span>)
<a name="l00153"></a>00153 : de9im_segment(0,0,
<a name="l00154"></a>00154 0, -1, 1,
<a name="l00155"></a>00155 -1, -1, 0,
<a name="l00156"></a>00156 -1, -1, 2,
<a name="l00157"></a>00157 <span class="keyword">false</span>, <span class="keyword">false</span>, <span class="keyword">false</span>, <span class="keyword">true</span>);
<a name="l00158"></a>00158 }
<a name="l00159"></a>00159
<a name="l00160"></a><a class="code" href="structboost_1_1geometry_1_1policies_1_1relate_1_1segments__de9im.html#0176251bb2599daaa661d5f92872abd5">00160</a> <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="structboost_1_1geometry_1_1de9im__segment.html">return_type</a> <a class="code" href="structboost_1_1geometry_1_1policies_1_1relate_1_1segments__de9im.html#0176251bb2599daaa661d5f92872abd5">collinear_disjoint</a>()
<a name="l00161"></a>00161 {
<a name="l00162"></a>00162 <span class="keywordflow">return</span> <a class="code" href="structboost_1_1geometry_1_1de9im__segment.html">de9im_segment</a>(0,0,
<a name="l00163"></a>00163 -1, -1, 1,
<a name="l00164"></a>00164 -1, -1, 0,
<a name="l00165"></a>00165 1, 0, 2,
<a name="l00166"></a>00166 <span class="keyword">true</span>);
<a name="l00167"></a>00167 }
<a name="l00168"></a>00168
<a name="l00169"></a>00169
<a name="l00170"></a><a class="code" href="structboost_1_1geometry_1_1policies_1_1relate_1_1segments__de9im.html#7bb2c62edb977d7459af8921fa5fbdc2">00170</a> <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="structboost_1_1geometry_1_1de9im__segment.html">return_type</a> <a class="code" href="structboost_1_1geometry_1_1policies_1_1relate_1_1segments__de9im.html#7bb2c62edb977d7459af8921fa5fbdc2">parallel</a>()
<a name="l00171"></a>00171 {
<a name="l00172"></a>00172 <span class="keywordflow">return</span> <a class="code" href="structboost_1_1geometry_1_1de9im__segment.html">de9im_segment</a>(0,0,
<a name="l00173"></a>00173 -1, -1, 1,
<a name="l00174"></a>00174 -1, -1, 0,
<a name="l00175"></a>00175 1, 0, 2, <span class="keyword">false</span>, <span class="keyword">false</span>, <span class="keyword">true</span>);
<a name="l00176"></a>00176 }
<a name="l00177"></a>00177 };
<a name="l00178"></a>00178
<a name="l00179"></a>00179
<a name="l00180"></a>00180 }} <span class="comment">// namespace policies::relate</span>
<a name="l00181"></a>00181
<a name="l00182"></a>00182 }} <span class="comment">// namespace boost::geometry</span>
<a name="l00183"></a>00183
<a name="l00184"></a>00184 <span class="preprocessor">#endif // BOOST_GEOMETRY_GEOMETRY_POLICIES_RELATE_DE9IM_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>