Imported Upstream version 1.64.0
[platform/upstream/boost.git] / libs / geometry / doc / html / geometry / reference / strategies / strategy_convex_hull_graham_andrew.html
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>strategy::convex_hull::graham_andrew</title>
5 <link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css">
6 <meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7 <link rel="home" href="../../../index.html" title="Chapter&#160;1.&#160;Geometry">
8 <link rel="up" href="../strategies.html" title="Strategies">
9 <link rel="prev" href="strategy_centroid_bashein_detmer.html" title="strategy::centroid::bashein_detmer">
10 <link rel="next" href="strategy_side_side_by_triangle.html" title="strategy::side::side_by_triangle">
11 </head>
12 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13 <table cellpadding="2" width="100%"><tr>
14 <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td>
15 <td align="center"><a href="../../../../../../../index.html">Home</a></td>
16 <td align="center"><a href="../../../../../../../libs/libraries.htm">Libraries</a></td>
17 <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
18 <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
19 <td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
20 </tr></table>
21 <hr>
22 <div class="spirit-nav">
23 <a accesskey="p" href="strategy_centroid_bashein_detmer.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../strategies.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="strategy_side_side_by_triangle.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
24 </div>
25 <div class="section">
26 <div class="titlepage"><div><div><h4 class="title">
27 <a name="geometry.reference.strategies.strategy_convex_hull_graham_andrew"></a><a class="link" href="strategy_convex_hull_graham_andrew.html" title="strategy::convex_hull::graham_andrew">strategy::convex_hull::graham_andrew</a>
28 </h4></div></div></div>
29 <p>
30           <a class="indexterm" name="idp122510928"></a><a class="indexterm" name="idp122511616"></a><a class="indexterm" name="idp122512304"></a>
31 Graham scan strategy to calculate convex hull.
32         </p>
33 <h6>
34 <a name="geometry.reference.strategies.strategy_convex_hull_graham_andrew.h0"></a>
35           <span class="phrase"><a name="geometry.reference.strategies.strategy_convex_hull_graham_andrew.synopsis"></a></span><a class="link" href="strategy_convex_hull_graham_andrew.html#geometry.reference.strategies.strategy_convex_hull_graham_andrew.synopsis">Synopsis</a>
36         </h6>
37 <p>
38 </p>
39 <pre class="programlisting"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">InputGeometry</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">OutputPoint</span><span class="special">&gt;</span>
40 <span class="keyword">class</span> <span class="identifier">strategy</span><span class="special">::</span><span class="identifier">convex_hull</span><span class="special">::</span><span class="identifier">graham_andrew</span>
41 <span class="special">{</span>
42   <span class="comment">// ...</span>
43 <span class="special">};</span>
44 </pre>
45 <p>
46         </p>
47 <h6>
48 <a name="geometry.reference.strategies.strategy_convex_hull_graham_andrew.h1"></a>
49           <span class="phrase"><a name="geometry.reference.strategies.strategy_convex_hull_graham_andrew.template_parameter_s_"></a></span><a class="link" href="strategy_convex_hull_graham_andrew.html#geometry.reference.strategies.strategy_convex_hull_graham_andrew.template_parameter_s_">Template
50           parameter(s)</a>
51         </h6>
52 <div class="informaltable"><table class="table">
53 <colgroup>
54 <col>
55 <col>
56 </colgroup>
57 <thead><tr>
58 <th>
59                   <p>
60                     Parameter
61                   </p>
62                 </th>
63 <th>
64                   <p>
65                     Description
66                   </p>
67                 </th>
68 </tr></thead>
69 <tbody>
70 <tr>
71 <td>
72                   <p>
73                     typename InputGeometry
74                   </p>
75                 </td>
76 <td>
77                 </td>
78 </tr>
79 <tr>
80 <td>
81                   <p>
82                     typename OutputPoint
83                   </p>
84                 </td>
85 <td>
86                 </td>
87 </tr>
88 </tbody>
89 </table></div>
90 <h6>
91 <a name="geometry.reference.strategies.strategy_convex_hull_graham_andrew.h2"></a>
92           <span class="phrase"><a name="geometry.reference.strategies.strategy_convex_hull_graham_andrew.member_function_s_"></a></span><a class="link" href="strategy_convex_hull_graham_andrew.html#geometry.reference.strategies.strategy_convex_hull_graham_andrew.member_function_s_">Member
93           Function(s)</a>
94         </h6>
95 <div class="informaltable"><table class="table">
96 <colgroup>
97 <col>
98 <col>
99 <col>
100 <col>
101 </colgroup>
102 <thead><tr>
103 <th>
104                   <p>
105                     Function
106                   </p>
107                 </th>
108 <th>
109                   <p>
110                     Description
111                   </p>
112                 </th>
113 <th>
114                   <p>
115                     Parameters
116                   </p>
117                 </th>
118 <th>
119                   <p>
120                     Returns
121                   </p>
122                 </th>
123 </tr></thead>
124 <tbody>
125 <tr>
126 <td>
127                   <p>
128 </p>
129 <pre xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="table-programlisting"><span class="keyword">void</span> <span class="identifier">apply</span><span class="special">(</span><span class="identifier">InputGeometry</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">geometry</span><span class="special">,</span> <span class="identifier">partitions</span> <span class="special">&amp;</span> <span class="identifier">state</span><span class="special">)</span></pre>
130 <p>
131                   </p>
132                 </td>
133 <td>
134                 </td>
135 <td>
136                   <p>
137                     <span class="bold"><strong>InputGeometry const &amp;</strong></span>:
138                     <span class="emphasis"><em>geometry</em></span>:
139                   </p>
140                   <p>
141                     <span class="bold"><strong>partitions &amp;</strong></span>: <span class="emphasis"><em>state</em></span>:
142                   </p>
143                 </td>
144 <td>
145                 </td>
146 </tr>
147 <tr>
148 <td>
149                   <p>
150 </p>
151 <pre xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="table-programlisting"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">OutputIterator</span><span class="special">&gt;</span>
152 <span class="keyword">void</span> <span class="identifier">result</span><span class="special">(</span><span class="identifier">partitions</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">state</span><span class="special">,</span> <span class="identifier">OutputIterator</span> <span class="identifier">out</span><span class="special">,</span> <span class="keyword">bool</span> <span class="identifier">clockwise</span><span class="special">,</span>
153             <span class="keyword">bool</span> <span class="identifier">closed</span><span class="special">)</span></pre>
154 <p>
155                   </p>
156                 </td>
157 <td>
158                 </td>
159 <td>
160                   <p>
161                     <span class="bold"><strong>partitions const &amp;</strong></span>: <span class="emphasis"><em>state</em></span>:
162                   </p>
163                   <p>
164                     <span class="bold"><strong>OutputIterator</strong></span>: <span class="emphasis"><em>out</em></span>:
165                   </p>
166                   <p>
167                     <span class="bold"><strong>bool</strong></span>: <span class="emphasis"><em>clockwise</em></span>:
168                   </p>
169                   <p>
170                     <span class="bold"><strong>bool</strong></span>: <span class="emphasis"><em>closed</em></span>:
171                   </p>
172                 </td>
173 <td>
174                 </td>
175 </tr>
176 </tbody>
177 </table></div>
178 <h6>
179 <a name="geometry.reference.strategies.strategy_convex_hull_graham_andrew.h3"></a>
180           <span class="phrase"><a name="geometry.reference.strategies.strategy_convex_hull_graham_andrew.header"></a></span><a class="link" href="strategy_convex_hull_graham_andrew.html#geometry.reference.strategies.strategy_convex_hull_graham_andrew.header">Header</a>
181         </h6>
182 <p>
183           <code class="computeroutput"><span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">geometry</span><span class="special">/</span><span class="identifier">strategies</span><span class="special">/</span><span class="identifier">agnostic</span><span class="special">/</span><span class="identifier">hull_graham_andrew</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code>
184         </p>
185 </div>
186 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
187 <td align="left"></td>
188 <td align="right"><div class="copyright-footer">Copyright &#169; 2009-2017 Barend
189       Gehrels, Bruno Lalande, Mateusz Loskot, Adam Wulkiewicz, Oracle and/or its
190       affiliates<p>
191         Distributed under the Boost Software License, Version 1.0. (See accompanying
192         file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
193       </p>
194 </div></td>
195 </tr></table>
196 <hr>
197 <div class="spirit-nav">
198 <a accesskey="p" href="strategy_centroid_bashein_detmer.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../strategies.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="strategy_side_side_by_triangle.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
199 </div>
200 </body>
201 </html>