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 1. 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">
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>
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>
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>
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.
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>
39 <pre class="programlisting"><span class="keyword">template</span><span class="special"><</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">></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>
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
52 <div class="informaltable"><table class="table">
73 typename InputGeometry
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
95 <div class="informaltable"><table class="table">
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">&</span> <span class="identifier">geometry</span><span class="special">,</span> <span class="identifier">partitions</span> <span class="special">&</span> <span class="identifier">state</span><span class="special">)</span></pre>
137 <span class="bold"><strong>InputGeometry const &</strong></span>:
138 <span class="emphasis"><em>geometry</em></span>:
141 <span class="bold"><strong>partitions &</strong></span>: <span class="emphasis"><em>state</em></span>:
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"><</span><span class="keyword">typename</span> <span class="identifier">OutputIterator</span><span class="special">></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">&</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>
161 <span class="bold"><strong>partitions const &</strong></span>: <span class="emphasis"><em>state</em></span>:
164 <span class="bold"><strong>OutputIterator</strong></span>: <span class="emphasis"><em>out</em></span>:
167 <span class="bold"><strong>bool</strong></span>: <span class="emphasis"><em>clockwise</em></span>:
170 <span class="bold"><strong>bool</strong></span>: <span class="emphasis"><em>closed</em></span>:
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>
183 <code class="computeroutput"><span class="preprocessor">#include</span> <span class="special"><</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">></span></code>
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 © 2009-2017 Barend
189 Gehrels, Bruno Lalande, Mateusz Loskot, Adam Wulkiewicz, Oracle and/or its
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>)
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>