3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>strategy::area::spherical</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_area_cartesian.html" title="strategy::area::cartesian">
10 <link rel="next" href="strategy_area_geographic.html" title="strategy::area::geographic">
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_area_cartesian.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_area_geographic.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_area_spherical"></a><a class="link" href="strategy_area_spherical.html" title="strategy::area::spherical">strategy::area::spherical</a>
28 </h4></div></div></div>
30 <a class="indexterm" name="idm46186975499104"></a><a class="indexterm" name="idm46186975498416"></a><a class="indexterm" name="idm46186975497728"></a>
31 Spherical area calculation.
34 <a name="geometry.reference.strategies.strategy_area_spherical.h0"></a>
35 <span class="phrase"><a name="geometry.reference.strategies.strategy_area_spherical.description"></a></span><a class="link" href="strategy_area_spherical.html#geometry.reference.strategies.strategy_area_spherical.description">Description</a>
38 Calculates area on the surface of a sphere using the trapezoidal rule
41 <a name="geometry.reference.strategies.strategy_area_spherical.h1"></a>
42 <span class="phrase"><a name="geometry.reference.strategies.strategy_area_spherical.synopsis"></a></span><a class="link" href="strategy_area_spherical.html#geometry.reference.strategies.strategy_area_spherical.synopsis">Synopsis</a>
46 <pre class="programlisting"><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> <span class="identifier">RadiusTypeOrSphere</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">CalculationType</span><span class="special">></span>
47 <span class="keyword">class</span> <span class="identifier">strategy</span><span class="special">::</span><span class="identifier">area</span><span class="special">::</span><span class="identifier">spherical</span>
48 <span class="special">{</span>
49 <span class="comment">// ...</span>
50 <span class="special">};</span>
55 <a name="geometry.reference.strategies.strategy_area_spherical.h2"></a>
56 <span class="phrase"><a name="geometry.reference.strategies.strategy_area_spherical.template_parameter_s_"></a></span><a class="link" href="strategy_area_spherical.html#geometry.reference.strategies.strategy_area_spherical.template_parameter_s_">Template
59 <div class="informaltable"><table class="table">
86 typename RadiusTypeOrSphere
96 numeric type for radius (of sphere, earth) or sphere model
103 typename CalculationType
113 numeric type for calculation (e.g. high precision); if <span class="bold"><strong>void</strong></span> then it is extracted automatically
114 from the coordinate type and (if necessary) promoted to floating
122 <a name="geometry.reference.strategies.strategy_area_spherical.h3"></a>
123 <span class="phrase"><a name="geometry.reference.strategies.strategy_area_spherical.constructor_s_"></a></span><a class="link" href="strategy_area_spherical.html#geometry.reference.strategies.strategy_area_spherical.constructor_s_">Constructor(s)</a>
125 <div class="informaltable"><table class="table">
153 <pre xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="table-programlisting"><span class="identifier">spherical</span><span class="special">()</span></pre>
166 <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">RadiusOrSphere</span><span class="special">></span>
167 <span class="identifier">spherical</span><span class="special">(</span><span class="identifier">RadiusOrSphere</span> <span class="keyword">const</span> <span class="special">&</span> <span class="identifier">radius_or_sphere</span><span class="special">)</span></pre>
175 <span class="bold"><strong>RadiusOrSphere const &</strong></span>:
176 <span class="emphasis"><em>radius_or_sphere</em></span>:
183 <a name="geometry.reference.strategies.strategy_area_spherical.h4"></a>
184 <span class="phrase"><a name="geometry.reference.strategies.strategy_area_spherical.member_function_s_"></a></span><a class="link" href="strategy_area_spherical.html#geometry.reference.strategies.strategy_area_spherical.member_function_s_">Member
187 <div class="informaltable"><table class="table">
221 <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">PointOfSegment</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Geometry</span><span class="special">></span>
222 <span class="keyword">void</span> <span class="identifier">apply</span><span class="special">(</span><span class="identifier">PointOfSegment</span> <span class="keyword">const</span> <span class="special">&</span> <span class="identifier">p1</span><span class="special">,</span> <span class="identifier">PointOfSegment</span> <span class="keyword">const</span> <span class="special">&</span> <span class="identifier">p2</span><span class="special">,</span> <span class="identifier">state</span><span class="special"><</span> <span class="identifier">Geometry</span> <span class="special">></span> <span class="special">&</span> <span class="identifier">st</span><span class="special">)</span></pre>
230 <span class="bold"><strong>PointOfSegment const &</strong></span>:
231 <span class="emphasis"><em>p1</em></span>:
234 <span class="bold"><strong>PointOfSegment const &</strong></span>:
235 <span class="emphasis"><em>p2</em></span>:
238 <span class="bold"><strong>state< Geometry > &</strong></span>:
239 <span class="emphasis"><em>st</em></span>:
249 <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">Geometry</span><span class="special">></span>
250 <span class="identifier">result_type</span><span class="special"><</span> <span class="identifier">Geometry</span> <span class="special">>::</span><span class="identifier">type</span> <span class="identifier">result</span><span class="special">(</span><span class="identifier">state</span><span class="special"><</span> <span class="identifier">Geometry</span> <span class="special">></span> <span class="keyword">const</span> <span class="special">&</span> <span class="identifier">st</span><span class="special">)</span></pre>
258 <span class="bold"><strong>state< Geometry > const &</strong></span>:
259 <span class="emphasis"><em>st</em></span>:
268 <a name="geometry.reference.strategies.strategy_area_spherical.h5"></a>
269 <span class="phrase"><a name="geometry.reference.strategies.strategy_area_spherical.header"></a></span><a class="link" href="strategy_area_spherical.html#geometry.reference.strategies.strategy_area_spherical.header">Header</a>
272 <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">spherical</span><span class="special">/</span><span class="identifier">area</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code>
275 <a name="geometry.reference.strategies.strategy_area_spherical.h6"></a>
276 <span class="phrase"><a name="geometry.reference.strategies.strategy_area_spherical.see_also"></a></span><a class="link" href="strategy_area_spherical.html#geometry.reference.strategies.strategy_area_spherical.see_also">See
280 <a class="link" href="../algorithms/area/area_2_with_strategy.html" title="area (with strategy)">area
284 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
285 <td align="left"></td>
286 <td align="right"><div class="copyright-footer">Copyright © 2009-2019 Barend Gehrels, Bruno Lalande, Mateusz Loskot, Adam
287 Wulkiewicz, Oracle and/or its affiliates<p>
288 Distributed under the Boost Software License, Version 1.0. (See accompanying
289 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>)
294 <div class="spirit-nav">
295 <a accesskey="p" href="strategy_area_cartesian.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_area_geographic.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>