• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4<title>strategy::line_interpolate::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_line_interpolate_geographic.html" title="strategy::line_interpolate::geographic">
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_line_interpolate_geographic.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_line_interpolate_spherical"></a><a class="link" href="strategy_line_interpolate_spherical.html" title="strategy::line_interpolate::spherical">strategy::line_interpolate::spherical</a>
28</h4></div></div></div>
29<p>
30          <a class="indexterm" name="idm45635668299280"></a><a class="indexterm" name="idm45635668298592"></a><a class="indexterm" name="idm45635668297904"></a>
31Interpolate point on a spherical segment.
32        </p>
33<h6>
34<a name="geometry.reference.strategies.strategy_line_interpolate_spherical.h0"></a>
35          <span class="phrase"><a name="geometry.reference.strategies.strategy_line_interpolate_spherical.synopsis"></a></span><a class="link" href="strategy_line_interpolate_spherical.html#geometry.reference.strategies.strategy_line_interpolate_spherical.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">CalculationType</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">DistanceStrategy</span><span class="special">&gt;</span>
40<span class="keyword">class</span> <span class="identifier">strategy</span><span class="special">::</span><span class="identifier">line_interpolate</span><span class="special">::</span><span class="identifier">spherical</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_line_interpolate_spherical.h1"></a>
49          <span class="phrase"><a name="geometry.reference.strategies.strategy_line_interpolate_spherical.template_parameter_s_"></a></span><a class="link" href="strategy_line_interpolate_spherical.html#geometry.reference.strategies.strategy_line_interpolate_spherical.template_parameter_s_">Template
50          parameter(s)</a>
51        </h6>
52<div class="informaltable"><table class="table">
53<colgroup>
54<col>
55<col>
56<col>
57</colgroup>
58<thead><tr>
59<th>
60                  <p>
61                    Parameter
62                  </p>
63                </th>
64<th>
65                  <p>
66                    Default
67                  </p>
68                </th>
69<th>
70                  <p>
71                    Description
72                  </p>
73                </th>
74</tr></thead>
75<tbody>
76<tr>
77<td>
78                  <p>
79                    typename CalculationType
80                  </p>
81                </td>
82<td>
83                  <p>
84                    void
85                  </p>
86                </td>
87<td>
88                  <p>
89                    numeric type for calculation (e.g. high precision); if <span class="bold"><strong>void</strong></span> then it is extracted automatically
90                    from the coordinate type and (if necessary) promoted to floating
91                    point
92                  </p>
93                </td>
94</tr>
95<tr>
96<td>
97                  <p>
98                    typename DistanceStrategy
99                  </p>
100                </td>
101<td>
102                  <p>
103                    distance::haversine&lt;double, CalculationType&gt;
104                  </p>
105                </td>
106<td>
107                  <p>
108                    The underlying point-point distance strategy
109                  </p>
110                </td>
111</tr>
112</tbody>
113</table></div>
114<h6>
115<a name="geometry.reference.strategies.strategy_line_interpolate_spherical.h2"></a>
116          <span class="phrase"><a name="geometry.reference.strategies.strategy_line_interpolate_spherical.constructor_s_"></a></span><a class="link" href="strategy_line_interpolate_spherical.html#geometry.reference.strategies.strategy_line_interpolate_spherical.constructor_s_">Constructor(s)</a>
117        </h6>
118<div class="informaltable"><table class="table">
119<colgroup>
120<col>
121<col>
122<col>
123</colgroup>
124<thead><tr>
125<th>
126                  <p>
127                    Function
128                  </p>
129                </th>
130<th>
131                  <p>
132                    Description
133                  </p>
134                </th>
135<th>
136                  <p>
137                    Parameters
138                  </p>
139                </th>
140</tr></thead>
141<tbody>
142<tr>
143<td>
144                  <p>
145</p>
146<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>
147<p>
148                  </p>
149                </td>
150<td>
151                </td>
152<td>
153                </td>
154</tr>
155<tr>
156<td>
157                  <p>
158</p>
159<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><span class="keyword">typename</span> <span class="identifier">DistanceStrategy</span><span class="special">::</span><span class="identifier">radius_type</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">r</span><span class="special">)</span></pre>
160<p>
161                  </p>
162                </td>
163<td>
164                </td>
165<td>
166                  <p>
167                    <span class="bold"><strong>typename DistanceStrategy::radius_type
168                    const &amp;</strong></span>: <span class="emphasis"><em>r</em></span>:
169                  </p>
170                </td>
171</tr>
172<tr>
173<td>
174                  <p>
175</p>
176<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><span class="identifier">DistanceStrategy</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">s</span><span class="special">)</span></pre>
177<p>
178                  </p>
179                </td>
180<td>
181                </td>
182<td>
183                  <p>
184                    <span class="bold"><strong>DistanceStrategy const &amp;</strong></span>:
185                    <span class="emphasis"><em>s</em></span>:
186                  </p>
187                </td>
188</tr>
189</tbody>
190</table></div>
191<h6>
192<a name="geometry.reference.strategies.strategy_line_interpolate_spherical.h3"></a>
193          <span class="phrase"><a name="geometry.reference.strategies.strategy_line_interpolate_spherical.member_function_s_"></a></span><a class="link" href="strategy_line_interpolate_spherical.html#geometry.reference.strategies.strategy_line_interpolate_spherical.member_function_s_">Member
194          Function(s)</a>
195        </h6>
196<div class="informaltable"><table class="table">
197<colgroup>
198<col>
199<col>
200<col>
201<col>
202</colgroup>
203<thead><tr>
204<th>
205                  <p>
206                    Function
207                  </p>
208                </th>
209<th>
210                  <p>
211                    Description
212                  </p>
213                </th>
214<th>
215                  <p>
216                    Parameters
217                  </p>
218                </th>
219<th>
220                  <p>
221                    Returns
222                  </p>
223                </th>
224</tr></thead>
225<tbody>
226<tr>
227<td>
228                  <p>
229</p>
230<pre xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="table-programlisting"><span class="identifier">distance_pp_strategy</span><span class="special">::</span><span class="identifier">type</span> <span class="identifier">get_distance_pp_strategy</span><span class="special">()</span></pre>
231<p>
232                  </p>
233                </td>
234<td>
235                </td>
236<td>
237                </td>
238<td>
239                </td>
240</tr>
241<tr>
242<td>
243                  <p>
244</p>
245<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">Point</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Fraction</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Distance</span><span class="special">&gt;</span>
246<span class="keyword">void</span> <span class="identifier">apply</span><span class="special">(</span><span class="identifier">Point</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">p0</span><span class="special">,</span> <span class="identifier">Point</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">p1</span><span class="special">,</span> <span class="identifier">Fraction</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">fraction</span><span class="special">,</span>
247           <span class="identifier">Point</span> <span class="special">&amp;</span> <span class="identifier">p</span><span class="special">,</span> <span class="identifier">Distance</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="special">)</span></pre>
248<p>
249                  </p>
250                </td>
251<td>
252                </td>
253<td>
254                  <p>
255                    <span class="bold"><strong>Point const &amp;</strong></span>: <span class="emphasis"><em>p0</em></span>:
256                  </p>
257                  <p>
258                    <span class="bold"><strong>Point const &amp;</strong></span>: <span class="emphasis"><em>p1</em></span>:
259                  </p>
260                  <p>
261                    <span class="bold"><strong>Fraction const &amp;</strong></span>: <span class="emphasis"><em>fraction</em></span>:
262                  </p>
263                  <p>
264                    <span class="bold"><strong>Point &amp;</strong></span>: <span class="emphasis"><em>p</em></span>:
265                  </p>
266                  <p>
267                    <span class="bold"><strong>Distance const &amp;</strong></span>: <span class="emphasis"><em></em></span>:
268                  </p>
269                </td>
270<td>
271                </td>
272</tr>
273</tbody>
274</table></div>
275<h6>
276<a name="geometry.reference.strategies.strategy_line_interpolate_spherical.h4"></a>
277          <span class="phrase"><a name="geometry.reference.strategies.strategy_line_interpolate_spherical.header"></a></span><a class="link" href="strategy_line_interpolate_spherical.html#geometry.reference.strategies.strategy_line_interpolate_spherical.header">Header</a>
278        </h6>
279<p>
280          <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">spherical</span><span class="special">/</span><span class="identifier">line_interpolate</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code>
281        </p>
282<h6>
283<a name="geometry.reference.strategies.strategy_line_interpolate_spherical.h5"></a>
284          <span class="phrase"><a name="geometry.reference.strategies.strategy_line_interpolate_spherical.see_also"></a></span><a class="link" href="strategy_line_interpolate_spherical.html#geometry.reference.strategies.strategy_line_interpolate_spherical.see_also">See
285          also</a>
286        </h6>
287<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem">
288              <a class="link" href="../algorithms/line_interpolate/line_interpolate_4_with_strategy.html" title="line_interpolate (with strategy)">line_interpolate
289              (with strategy)</a>
290            </li></ul></div>
291</div>
292<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
293<td align="left"></td>
294<td align="right"><div class="copyright-footer">Copyright © 2009-2019 Barend Gehrels, Bruno Lalande, Mateusz Loskot, Adam
295      Wulkiewicz, Oracle and/or its affiliates<p>
296        Distributed under the Boost Software License, Version 1.0. (See accompanying
297        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>)
298      </p>
299</div></td>
300</tr></table>
301<hr>
302<div class="spirit-nav">
303<a accesskey="p" href="strategy_line_interpolate_geographic.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>
304</div>
305</body>
306</html>
307