blob: 40fc30587d4c1baa23c4eb848b2eeb803031e192 [file] [log] [blame]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>strategy::convex_hull::graham_andrew</title>
<link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="../../../index.html" title="Chapter&#160;1.&#160;Geometry 1.0">
<link rel="up" href="../strategies.html" title="Strategies">
<link rel="prev" href="strategy_centroid_bashein_detmer.html" title="strategy::centroid::bashein_detmer">
<link rel="next" href="strategy_side_side_by_triangle.html" title="strategy::side::side_by_triangle">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td>
<td align="center"><a href="../../../../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<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>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<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>
</h4></div></div></div>
<p>
<a class="indexterm" name="id950454"></a><a class="indexterm" name="id950459"></a><a class="indexterm" name="id950465"></a>
Graham scan strategy to calculate convex hull.
</p>
<a name="geometry.reference.strategies.strategy_convex_hull_graham_andrew.synopsis"></a><h6>
<a name="geometry.reference.strategies.strategy_convex_hull_graham_andrew.synopsis-heading"></a>
<a class="link" href="strategy_convex_hull_graham_andrew.html#geometry.reference.strategies.strategy_convex_hull_graham_andrew.synopsis">Synopsis</a>
</h6>
<p>
</p>
<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>
<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>
<span class="special">{</span>
<span class="comment">// ...</span>
<span class="special">};</span>
</pre>
<p>
</p>
<a name="geometry.reference.strategies.strategy_convex_hull_graham_andrew.template_parameter_s_"></a><h6>
<a name="geometry.reference.strategies.strategy_convex_hull_graham_andrew.template_parameter_s_-heading"></a>
<a class="link" href="strategy_convex_hull_graham_andrew.html#geometry.reference.strategies.strategy_convex_hull_graham_andrew.template_parameter_s_">Template
parameter(s)</a>
</h6>
<div class="informaltable"><table class="table">
<colgroup>
<col>
<col>
</colgroup>
<thead><tr>
<th>
<p>
Parameter
</p>
</th>
<th>
<p>
Description
</p>
</th>
</tr></thead>
<tbody>
<tr>
<td>
<p>
typename InputGeometry
</p>
</td>
<td>
</td>
</tr>
<tr>
<td>
<p>
typename OutputPoint
</p>
</td>
<td>
</td>
</tr>
</tbody>
</table></div>
<a name="geometry.reference.strategies.strategy_convex_hull_graham_andrew.member_function_s_"></a><h6>
<a name="geometry.reference.strategies.strategy_convex_hull_graham_andrew.member_function_s_-heading"></a>
<a class="link" href="strategy_convex_hull_graham_andrew.html#geometry.reference.strategies.strategy_convex_hull_graham_andrew.member_function_s_">Member
Function(s)</a>
</h6>
<div class="informaltable"><table class="table">
<colgroup>
<col>
<col>
<col>
</colgroup>
<thead><tr>
<th>
<p>
Function
</p>
</th>
<th>
<p>
Description
</p>
</th>
<th>
<p>
Parameters
</p>
</th>
<th>
<p>
Returns
</p>
</th>
</tr></thead>
<tbody>
<tr>
<td>
<p>
</p>
<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>
<p>
</p>
</td>
<td>
</td>
<td>
<p>
<span class="bold"><strong>InputGeometry const &amp;</strong></span>:
<span class="emphasis"><em>geometry</em></span>:
</p>
<p>
<span class="bold"><strong>partitions &amp;</strong></span>: <span class="emphasis"><em>state</em></span>:
</p>
</td>
</tr>
<tr>
<td>
<p>
</p>
<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>
<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></pre>
<p>
</p>
</td>
<td>
</td>
<td>
<p>
<span class="bold"><strong>partitions const &amp;</strong></span>: <span class="emphasis"><em>state</em></span>:
</p>
<p>
<span class="bold"><strong>OutputIterator</strong></span>: <span class="emphasis"><em>out</em></span>:
</p>
<p>
<span class="bold"><strong>bool</strong></span>: <span class="emphasis"><em>clockwise</em></span>:
</p>
</td>
</tr>
</tbody>
</table></div>
<a name="geometry.reference.strategies.strategy_convex_hull_graham_andrew.header"></a><h6>
<a name="geometry.reference.strategies.strategy_convex_hull_graham_andrew.header-heading"></a>
<a class="link" href="strategy_convex_hull_graham_andrew.html#geometry.reference.strategies.strategy_convex_hull_graham_andrew.header">Header</a>
</h6>
<p>
<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>
</p>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright &#169; 2011 Barend Gehrels, Bruno Lalande, Mateusz Loskot<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<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>
</div>
</body>
</html>