1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
5 <title>Boost.Geometry (aka GGL, Generic Geometry Library)</title>
6 <link href="doxygen.css" rel="stylesheet" type="text/css">
7 <link href="tabs.css" rel="stylesheet" type="text/css">
9 <table cellpadding="2" width="100%">
13 <img alt="Boost.Geometry" src="images/ggl-logo-big.png" height="80" width="200">
16 <td valign="top" align="right">
17 <a href="http://www.boost.org">
18 <img alt="Boost C++ Libraries" src="images/accepted_by_boost.png" height="80" width="230" border="0">
24 <!-- Generated by Doxygen 1.8.6 -->
25 <div id="navrow1" class="tabs">
27 <li><a href="index.html"><span>Main Page</span></a></li>
28 <li><a href="pages.html"><span>Related Pages</span></a></li>
29 <li><a href="modules.html"><span>Modules</span></a></li>
30 <li><a href="namespaces.html"><span>Namespaces</span></a></li>
31 <li><a href="annotated.html"><span>Classes</span></a></li>
32 <li><a href="files.html"><span>Files</span></a></li>
33 <li><a href="examples.html"><span>Examples</span></a></li>
39 <a href="#func-members">Functions</a> </div>
40 <div class="headertitle">
41 <div class="title">union: calculate new geometry containing geometries A or B</div> </div>
43 <div class="contents">
44 <table class="memberdecls">
45 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
46 Functions</h2></td></tr>
47 <tr class="memitem:gaa300b8994725c85cc71b304713a75501"><td class="memTemplParams" colspan="2">template<typename Geometry1 , typename Geometry2 , typename Collection > </td></tr>
48 <tr class="memitem:gaa300b8994725c85cc71b304713a75501"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__union.html#gaa300b8994725c85cc71b304713a75501">boost::geometry::union_</a> (Geometry1 const &geometry1, Geometry2 const &geometry2, Collection &output_collection)</td></tr>
49 <tr class="memdesc:gaa300b8994725c85cc71b304713a75501"><td class="mdescLeft"> </td><td class="mdescRight">Combines two geometries which each other. <a href="#gaa300b8994725c85cc71b304713a75501">More...</a><br/></td></tr>
50 <tr class="separator:gaa300b8994725c85cc71b304713a75501"><td class="memSeparator" colspan="2"> </td></tr>
52 <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
53 <h2 class="groupheader">Function Documentation</h2>
54 <a class="anchor" id="gaa300b8994725c85cc71b304713a75501"></a>
56 <div class="memproto">
57 <div class="memtemplate">
58 template<typename Geometry1 , typename Geometry2 , typename Collection > </div>
59 <table class="memname">
61 <td class="memname">void boost::geometry::union_ </td>
63 <td class="paramtype">Geometry1 const & </td>
64 <td class="paramname"><em>geometry1</em>, </td>
67 <td class="paramkey"></td>
69 <td class="paramtype">Geometry2 const & </td>
70 <td class="paramname"><em>geometry2</em>, </td>
73 <td class="paramkey"></td>
75 <td class="paramtype">Collection & </td>
76 <td class="paramname"><em>output_collection</em> </td>
84 </div><div class="memdoc">
86 <p>Combines two geometries which each other. </p>
87 <p>The free function union calculates the spatial set theoretic union of two geometries. </p>
88 <dl class="tparams"><dt>Template Parameters</dt><dd>
89 <table class="tparams">
90 <tr><td class="paramname">Geometry1</td><td>Any type fulfilling a Geometry Concept </td></tr>
91 <tr><td class="paramname">Geometry2</td><td>Any type fulfilling a Geometry Concept </td></tr>
92 <tr><td class="paramname">Collection</td><td>output collection, either a multi-geometry, or a std::vector<Geometry> / std::deque<Geometry> etc </td></tr>
96 <dl class="params"><dt>Parameters</dt><dd>
97 <table class="params">
98 <tr><td class="paramname">geometry1</td><td>A model of the specified concept </td></tr>
99 <tr><td class="paramname">geometry2</td><td>A model of the specified concept </td></tr>
100 <tr><td class="paramname">output_collection</td><td>the output collection </td></tr>
104 <dl class="section note"><dt>Note</dt><dd>Called union_ because union is a reserved word.</dd></dl>
105 <dl><dt><b>Examples: </b></dt><dd><a class="el" href="03_polygon_example_8cpp-example.html#a13">03_polygon_example.cpp</a>.</dd>
109 </div><!-- contents -->
114 <td align="left"><small>
119 Copyright © 2007-2011 Barend Gehrels, Amsterdam, the Netherlands<br>
120 Copyright © 2008-2011 Bruno Lalande, Paris, France<br>
121 Copyright © 2009-2010 Mateusz Loskot, London, UK<br>
127 <address style="text-align: right;"><small>
128 Documentation is generated by <a href="http://www.doxygen.org/index.html">Doxygen</a>