1<html> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4<title>strategy::side::geographic</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_side_spherical_side_formula.html" title="strategy::side::spherical_side_formula"> 10<link rel="next" href="strategy_simplify_douglas_peucker.html" title="strategy::simplify::douglas_peucker"> 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_side_spherical_side_formula.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_simplify_douglas_peucker.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_side_geographic"></a><a class="link" href="strategy_side_geographic.html" title="strategy::side::geographic">strategy::side::geographic</a> 28</h4></div></div></div> 29<p> 30 <a class="indexterm" name="idm45635667850800"></a><a class="indexterm" name="idm45635667850112"></a><a class="indexterm" name="idm45635667849424"></a> 31Check at which side of a segment a point lies left of segment (> 0), 32 right of segment (< 0), on segment (0) 33 </p> 34<h6> 35<a name="geometry.reference.strategies.strategy_side_geographic.h0"></a> 36 <span class="phrase"><a name="geometry.reference.strategies.strategy_side_geographic.synopsis"></a></span><a class="link" href="strategy_side_geographic.html#geometry.reference.strategies.strategy_side_geographic.synopsis">Synopsis</a> 37 </h6> 38<p> 39</p> 40<pre class="programlisting"><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> <span class="identifier">FormulaPolicy</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Spheroid</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">CalculationType</span><span class="special">></span> 41<span class="keyword">class</span> <span class="identifier">strategy</span><span class="special">::</span><span class="identifier">side</span><span class="special">::</span><span class="identifier">geographic</span> 42<span class="special">{</span> 43 <span class="comment">// ...</span> 44<span class="special">};</span> 45</pre> 46<p> 47 </p> 48<h6> 49<a name="geometry.reference.strategies.strategy_side_geographic.h1"></a> 50 <span class="phrase"><a name="geometry.reference.strategies.strategy_side_geographic.template_parameter_s_"></a></span><a class="link" href="strategy_side_geographic.html#geometry.reference.strategies.strategy_side_geographic.template_parameter_s_">Template 51 parameter(s)</a> 52 </h6> 53<div class="informaltable"><table class="table"> 54<colgroup> 55<col> 56<col> 57<col> 58</colgroup> 59<thead><tr> 60<th> 61 <p> 62 Parameter 63 </p> 64 </th> 65<th> 66 <p> 67 Default 68 </p> 69 </th> 70<th> 71 <p> 72 Description 73 </p> 74 </th> 75</tr></thead> 76<tbody> 77<tr> 78<td> 79 <p> 80 typename FormulaPolicy 81 </p> 82 </td> 83<td> 84 <p> 85 strategy::andoyer 86 </p> 87 </td> 88<td> 89 <p> 90 Geodesic solution formula policy. 91 </p> 92 </td> 93</tr> 94<tr> 95<td> 96 <p> 97 typename Spheroid 98 </p> 99 </td> 100<td> 101 <p> 102 srs::spheroid<double> 103 </p> 104 </td> 105<td> 106 <p> 107 Reference model of coordinate system. 108 </p> 109 </td> 110</tr> 111<tr> 112<td> 113 <p> 114 typename CalculationType 115 </p> 116 </td> 117<td> 118 <p> 119 void 120 </p> 121 </td> 122<td> 123 <p> 124 numeric type for calculation (e.g. high precision); if <span class="bold"><strong>void</strong></span> then it is extracted automatically 125 from the coordinate type and (if necessary) promoted to floating 126 point 127 </p> 128 </td> 129</tr> 130</tbody> 131</table></div> 132<h6> 133<a name="geometry.reference.strategies.strategy_side_geographic.h2"></a> 134 <span class="phrase"><a name="geometry.reference.strategies.strategy_side_geographic.constructor_s_"></a></span><a class="link" href="strategy_side_geographic.html#geometry.reference.strategies.strategy_side_geographic.constructor_s_">Constructor(s)</a> 135 </h6> 136<div class="informaltable"><table class="table"> 137<colgroup> 138<col> 139<col> 140<col> 141</colgroup> 142<thead><tr> 143<th> 144 <p> 145 Function 146 </p> 147 </th> 148<th> 149 <p> 150 Description 151 </p> 152 </th> 153<th> 154 <p> 155 Parameters 156 </p> 157 </th> 158</tr></thead> 159<tbody> 160<tr> 161<td> 162 <p> 163</p> 164<pre xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="table-programlisting"><span class="identifier">geographic</span><span class="special">()</span></pre> 165<p> 166 </p> 167 </td> 168<td> 169 </td> 170<td> 171 </td> 172</tr> 173<tr> 174<td> 175 <p> 176</p> 177<pre xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="table-programlisting"><span class="identifier">geographic</span><span class="special">(</span><span class="identifier">Spheroid</span> <span class="keyword">const</span> <span class="special">&</span> <span class="identifier">model</span><span class="special">)</span></pre> 178<p> 179 </p> 180 </td> 181<td> 182 </td> 183<td> 184 <p> 185 <span class="bold"><strong>Spheroid const &</strong></span>: <span class="emphasis"><em>model</em></span>: 186 </p> 187 </td> 188</tr> 189</tbody> 190</table></div> 191<h6> 192<a name="geometry.reference.strategies.strategy_side_geographic.h3"></a> 193 <span class="phrase"><a name="geometry.reference.strategies.strategy_side_geographic.member_function_s_"></a></span><a class="link" href="strategy_side_geographic.html#geometry.reference.strategies.strategy_side_geographic.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">envelope_strategy_type</span> <span class="identifier">get_envelope_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="identifier">disjoint_strategy_type</span> <span class="identifier">get_disjoint_strategy</span><span class="special">()</span></pre> 246<p> 247 </p> 248 </td> 249<td> 250 </td> 251<td> 252 </td> 253<td> 254 </td> 255</tr> 256<tr> 257<td> 258 <p> 259</p> 260<pre xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="table-programlisting"><span class="identifier">equals_point_point_strategy_type</span> <span class="identifier">get_equals_point_point_strategy</span><span class="special">()</span></pre> 261<p> 262 </p> 263 </td> 264<td> 265 </td> 266<td> 267 </td> 268<td> 269 </td> 270</tr> 271<tr> 272<td> 273 <p> 274</p> 275<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">P1</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">P2</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">P</span><span class="special">></span> 276<span class="keyword">int</span> <span class="identifier">apply</span><span class="special">(</span><span class="identifier">P1</span> <span class="keyword">const</span> <span class="special">&</span> <span class="identifier">p1</span><span class="special">,</span> <span class="identifier">P2</span> <span class="keyword">const</span> <span class="special">&</span> <span class="identifier">p2</span><span class="special">,</span> <span class="identifier">P</span> <span class="keyword">const</span> <span class="special">&</span> <span class="identifier">p</span><span class="special">)</span></pre> 277<p> 278 </p> 279 </td> 280<td> 281 </td> 282<td> 283 <p> 284 <span class="bold"><strong>P1 const &</strong></span>: <span class="emphasis"><em>p1</em></span>: 285 </p> 286 <p> 287 <span class="bold"><strong>P2 const &</strong></span>: <span class="emphasis"><em>p2</em></span>: 288 </p> 289 <p> 290 <span class="bold"><strong>P const &</strong></span>: <span class="emphasis"><em>p</em></span>: 291 </p> 292 </td> 293<td> 294 </td> 295</tr> 296<tr> 297<td> 298 <p> 299</p> 300<pre xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="table-programlisting"><span class="identifier">Spheroid</span> <span class="keyword">const</span> <span class="special">&</span> <span class="identifier">model</span><span class="special">()</span></pre> 301<p> 302 </p> 303 </td> 304<td> 305 </td> 306<td> 307 </td> 308<td> 309 </td> 310</tr> 311</tbody> 312</table></div> 313<h6> 314<a name="geometry.reference.strategies.strategy_side_geographic.h4"></a> 315 <span class="phrase"><a name="geometry.reference.strategies.strategy_side_geographic.header"></a></span><a class="link" href="strategy_side_geographic.html#geometry.reference.strategies.strategy_side_geographic.header">Header</a> 316 </h6> 317<p> 318 <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">geographic</span><span class="special">/</span><span class="identifier">side</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code> 319 </p> 320<h6> 321<a name="geometry.reference.strategies.strategy_side_geographic.h5"></a> 322 <span class="phrase"><a name="geometry.reference.strategies.strategy_side_geographic.see_also"></a></span><a class="link" href="strategy_side_geographic.html#geometry.reference.strategies.strategy_side_geographic.see_also">See 323 also</a> 324 </h6> 325<p> 326 <a class="link" href="../srs/srs_spheroid.html" title="srs::spheroid">srs::spheroid</a> 327 </p> 328</div> 329<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 330<td align="left"></td> 331<td align="right"><div class="copyright-footer">Copyright © 2009-2019 Barend Gehrels, Bruno Lalande, Mateusz Loskot, Adam 332 Wulkiewicz, Oracle and/or its affiliates<p> 333 Distributed under the Boost Software License, Version 1.0. (See accompanying 334 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>) 335 </p> 336</div></td> 337</tr></table> 338<hr> 339<div class="spirit-nav"> 340<a accesskey="p" href="strategy_side_spherical_side_formula.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_simplify_douglas_peucker.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> 341</div> 342</body> 343</html> 344