• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4<title>within (with strategy)</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="../within.html" title="within">
9<link rel="prev" href="within_2.html" title="within">
10<link rel="next" href="../../arithmetic.html" title="Arithmetic">
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="within_2.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../within.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="../../arithmetic.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>
24</div>
25<div class="section">
26<div class="titlepage"><div><div><h5 class="title">
27<a name="geometry.reference.algorithms.within.within_3_with_strategy"></a><a class="link" href="within_3_with_strategy.html" title="within (with strategy)">within
28          (with strategy)</a>
29</h5></div></div></div>
30<p>
31            <a class="indexterm" name="idm45635686668416"></a>
32Checks if the first geometry is completely inside the second geometry
33            using the specified strategy.
34          </p>
35<h6>
36<a name="geometry.reference.algorithms.within.within_3_with_strategy.h0"></a>
37            <span class="phrase"><a name="geometry.reference.algorithms.within.within_3_with_strategy.description"></a></span><a class="link" href="within_3_with_strategy.html#geometry.reference.algorithms.within.within_3_with_strategy.description">Description</a>
38          </h6>
39<p>
40            The free function within checks if the first geometry is completely inside
41            the second geometry, using the specified strategy. Reasons to specify
42            a strategy include: use another coordinate system for calculations; construct
43            the strategy beforehand (e.g. with the radius of the Earth); select a
44            strategy when there are more than one available for a calculation.
45          </p>
46<h6>
47<a name="geometry.reference.algorithms.within.within_3_with_strategy.h1"></a>
48            <span class="phrase"><a name="geometry.reference.algorithms.within.within_3_with_strategy.synopsis"></a></span><a class="link" href="within_3_with_strategy.html#geometry.reference.algorithms.within.within_3_with_strategy.synopsis">Synopsis</a>
49          </h6>
50<p>
51</p>
52<pre class="programlisting"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Geometry1</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Geometry2</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Strategy</span><span class="special">&gt;</span>
53<span class="keyword">bool</span> <span class="identifier">within</span><span class="special">(</span><span class="identifier">Geometry1</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">geometry1</span><span class="special">,</span> <span class="identifier">Geometry2</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">geometry2</span><span class="special">,</span> <span class="identifier">Strategy</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">strategy</span><span class="special">)</span></pre>
54<p>
55          </p>
56<h6>
57<a name="geometry.reference.algorithms.within.within_3_with_strategy.h2"></a>
58            <span class="phrase"><a name="geometry.reference.algorithms.within.within_3_with_strategy.parameters"></a></span><a class="link" href="within_3_with_strategy.html#geometry.reference.algorithms.within.within_3_with_strategy.parameters">Parameters</a>
59          </h6>
60<div class="informaltable"><table class="table">
61<colgroup>
62<col>
63<col>
64<col>
65<col>
66</colgroup>
67<thead><tr>
68<th>
69                    <p>
70                      Type
71                    </p>
72                  </th>
73<th>
74                    <p>
75                      Concept
76                    </p>
77                  </th>
78<th>
79                    <p>
80                      Name
81                    </p>
82                  </th>
83<th>
84                    <p>
85                      Description
86                    </p>
87                  </th>
88</tr></thead>
89<tbody>
90<tr>
91<td>
92                    <p>
93                      Geometry1 const &amp;
94                    </p>
95                  </td>
96<td>
97                    <p>
98                      Any type fulfilling a Geometry Concept
99                    </p>
100                  </td>
101<td>
102                    <p>
103                      geometry1
104                    </p>
105                  </td>
106<td>
107                    <p>
108                      A model of the specified concept which might be within the
109                      second geometry
110                    </p>
111                  </td>
112</tr>
113<tr>
114<td>
115                    <p>
116                      Geometry2 const &amp;
117                    </p>
118                  </td>
119<td>
120                    <p>
121                      Any type fulfilling a Geometry Concept
122                    </p>
123                  </td>
124<td>
125                    <p>
126                      geometry2
127                    </p>
128                  </td>
129<td>
130                    <p>
131                      A model of the specified concept which might contain the first
132                      geometry
133                    </p>
134                  </td>
135</tr>
136<tr>
137<td>
138                    <p>
139                      Strategy const &amp;
140                    </p>
141                  </td>
142<td>
143                  </td>
144<td>
145                    <p>
146                      strategy
147                    </p>
148                  </td>
149<td>
150                    <p>
151                      strategy to be used
152                    </p>
153                  </td>
154</tr>
155</tbody>
156</table></div>
157<h6>
158<a name="geometry.reference.algorithms.within.within_3_with_strategy.h3"></a>
159            <span class="phrase"><a name="geometry.reference.algorithms.within.within_3_with_strategy.returns"></a></span><a class="link" href="within_3_with_strategy.html#geometry.reference.algorithms.within.within_3_with_strategy.returns">Returns</a>
160          </h6>
161<p>
162            true if geometry1 is completely contained within geometry2, else false
163          </p>
164<h6>
165<a name="geometry.reference.algorithms.within.within_3_with_strategy.h4"></a>
166            <span class="phrase"><a name="geometry.reference.algorithms.within.within_3_with_strategy.header"></a></span><a class="link" href="within_3_with_strategy.html#geometry.reference.algorithms.within.within_3_with_strategy.header">Header</a>
167          </h6>
168<p>
169            Either
170          </p>
171<p>
172            <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">hpp</span><span class="special">&gt;</span></code>
173          </p>
174<p>
175            Or
176          </p>
177<p>
178            <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">algorithms</span><span class="special">/</span><span class="identifier">within</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code>
179          </p>
180<h6>
181<a name="geometry.reference.algorithms.within.within_3_with_strategy.h5"></a>
182            <span class="phrase"><a name="geometry.reference.algorithms.within.within_3_with_strategy.conformance"></a></span><a class="link" href="within_3_with_strategy.html#geometry.reference.algorithms.within.within_3_with_strategy.conformance">Conformance</a>
183          </h6>
184<p>
185            The function within implements function Within from the <a href="http://www.opengeospatial.org/standards/sfa" target="_top">OGC
186            Simple Feature Specification</a>.
187          </p>
188<div class="note"><table border="0" summary="Note">
189<tr>
190<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../../../../../../doc/src/images/note.png"></td>
191<th align="left">Note</th>
192</tr>
193<tr><td align="left" valign="top"><p>
194              OGC defines within as completely within and not on the border. See
195              the notes for within / on the border
196            </p></td></tr>
197</table></div>
198<h6>
199<a name="geometry.reference.algorithms.within.within_3_with_strategy.h6"></a>
200            <span class="phrase"><a name="geometry.reference.algorithms.within.within_3_with_strategy.supported_geometries"></a></span><a class="link" href="within_3_with_strategy.html#geometry.reference.algorithms.within.within_3_with_strategy.supported_geometries">Supported
201            geometries</a>
202          </h6>
203<div class="informaltable"><table class="table">
204<colgroup>
205<col>
206<col>
207<col>
208<col>
209<col>
210<col>
211<col>
212<col>
213<col>
214<col>
215<col>
216</colgroup>
217<thead><tr>
218<th>
219                  </th>
220<th>
221                    <p>
222                      Point
223                    </p>
224                  </th>
225<th>
226                    <p>
227                      Segment
228                    </p>
229                  </th>
230<th>
231                    <p>
232                      Box
233                    </p>
234                  </th>
235<th>
236                    <p>
237                      Linestring
238                    </p>
239                  </th>
240<th>
241                    <p>
242                      Ring
243                    </p>
244                  </th>
245<th>
246                    <p>
247                      Polygon
248                    </p>
249                  </th>
250<th>
251                    <p>
252                      MultiPoint
253                    </p>
254                  </th>
255<th>
256                    <p>
257                      MultiLinestring
258                    </p>
259                  </th>
260<th>
261                    <p>
262                      MultiPolygon
263                    </p>
264                  </th>
265<th>
266                    <p>
267                      Variant
268                    </p>
269                  </th>
270</tr></thead>
271<tbody>
272<tr>
273<td>
274                    <p>
275                      Point
276                    </p>
277                  </td>
278<td>
279                    <p>
280                      <span class="inlinemediaobject"><img src="../../../../img/ok.png" alt="ok"></span>
281                    </p>
282                  </td>
283<td>
284                    <p>
285                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
286                    </p>
287                  </td>
288<td>
289                    <p>
290                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
291                    </p>
292                  </td>
293<td>
294                    <p>
295                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
296                    </p>
297                  </td>
298<td>
299                    <p>
300                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
301                    </p>
302                  </td>
303<td>
304                    <p>
305                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
306                    </p>
307                  </td>
308<td>
309                    <p>
310                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
311                    </p>
312                  </td>
313<td>
314                    <p>
315                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
316                    </p>
317                  </td>
318<td>
319                    <p>
320                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
321                    </p>
322                  </td>
323<td>
324                    <p>
325                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
326                    </p>
327                  </td>
328</tr>
329<tr>
330<td>
331                    <p>
332                      Segment
333                    </p>
334                  </td>
335<td>
336                    <p>
337                      <span class="inlinemediaobject"><img src="../../../../img/ok.png" alt="ok"></span>
338                    </p>
339                  </td>
340<td>
341                    <p>
342                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
343                    </p>
344                  </td>
345<td>
346                    <p>
347                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
348                    </p>
349                  </td>
350<td>
351                    <p>
352                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
353                    </p>
354                  </td>
355<td>
356                    <p>
357                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
358                    </p>
359                  </td>
360<td>
361                    <p>
362                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
363                    </p>
364                  </td>
365<td>
366                    <p>
367                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
368                    </p>
369                  </td>
370<td>
371                    <p>
372                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
373                    </p>
374                  </td>
375<td>
376                    <p>
377                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
378                    </p>
379                  </td>
380<td>
381                    <p>
382                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
383                    </p>
384                  </td>
385</tr>
386<tr>
387<td>
388                    <p>
389                      Box
390                    </p>
391                  </td>
392<td>
393                    <p>
394                      <span class="inlinemediaobject"><img src="../../../../img/ok.png" alt="ok"></span>
395                    </p>
396                  </td>
397<td>
398                    <p>
399                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
400                    </p>
401                  </td>
402<td>
403                    <p>
404                      <span class="inlinemediaobject"><img src="../../../../img/ok.png" alt="ok"></span>
405                    </p>
406                  </td>
407<td>
408                    <p>
409                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
410                    </p>
411                  </td>
412<td>
413                    <p>
414                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
415                    </p>
416                  </td>
417<td>
418                    <p>
419                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
420                    </p>
421                  </td>
422<td>
423                    <p>
424                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
425                    </p>
426                  </td>
427<td>
428                    <p>
429                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
430                    </p>
431                  </td>
432<td>
433                    <p>
434                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
435                    </p>
436                  </td>
437<td>
438                    <p>
439                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
440                    </p>
441                  </td>
442</tr>
443<tr>
444<td>
445                    <p>
446                      Linestring
447                    </p>
448                  </td>
449<td>
450                    <p>
451                      <span class="inlinemediaobject"><img src="../../../../img/ok.png" alt="ok"></span>
452                    </p>
453                  </td>
454<td>
455                    <p>
456                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
457                    </p>
458                  </td>
459<td>
460                    <p>
461                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
462                    </p>
463                  </td>
464<td>
465                    <p>
466                      <span class="inlinemediaobject"><img src="../../../../img/ok.png" alt="ok"></span>
467                    </p>
468                  </td>
469<td>
470                    <p>
471                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
472                    </p>
473                  </td>
474<td>
475                    <p>
476                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
477                    </p>
478                  </td>
479<td>
480                    <p>
481                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
482                    </p>
483                  </td>
484<td>
485                    <p>
486                      <span class="inlinemediaobject"><img src="../../../../img/ok.png" alt="ok"></span>
487                    </p>
488                  </td>
489<td>
490                    <p>
491                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
492                    </p>
493                  </td>
494<td>
495                    <p>
496                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
497                    </p>
498                  </td>
499</tr>
500<tr>
501<td>
502                    <p>
503                      Ring
504                    </p>
505                  </td>
506<td>
507                    <p>
508                      <span class="inlinemediaobject"><img src="../../../../img/ok.png" alt="ok"></span>
509                    </p>
510                  </td>
511<td>
512                    <p>
513                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
514                    </p>
515                  </td>
516<td>
517                    <p>
518                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
519                    </p>
520                  </td>
521<td>
522                    <p>
523                      <span class="inlinemediaobject"><img src="../../../../img/ok.png" alt="ok"></span>
524                    </p>
525                  </td>
526<td>
527                    <p>
528                      <span class="inlinemediaobject"><img src="../../../../img/ok.png" alt="ok"></span>
529                    </p>
530                  </td>
531<td>
532                    <p>
533                      <span class="inlinemediaobject"><img src="../../../../img/ok.png" alt="ok"></span>
534                    </p>
535                  </td>
536<td>
537                    <p>
538                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
539                    </p>
540                  </td>
541<td>
542                    <p>
543                      <span class="inlinemediaobject"><img src="../../../../img/ok.png" alt="ok"></span>
544                    </p>
545                  </td>
546<td>
547                    <p>
548                      <span class="inlinemediaobject"><img src="../../../../img/ok.png" alt="ok"></span>
549                    </p>
550                  </td>
551<td>
552                    <p>
553                      <span class="inlinemediaobject"><img src="../../../../img/ok.png" alt="ok"></span>
554                    </p>
555                  </td>
556</tr>
557<tr>
558<td>
559                    <p>
560                      Polygon
561                    </p>
562                  </td>
563<td>
564                    <p>
565                      <span class="inlinemediaobject"><img src="../../../../img/ok.png" alt="ok"></span>
566                    </p>
567                  </td>
568<td>
569                    <p>
570                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
571                    </p>
572                  </td>
573<td>
574                    <p>
575                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
576                    </p>
577                  </td>
578<td>
579                    <p>
580                      <span class="inlinemediaobject"><img src="../../../../img/ok.png" alt="ok"></span>
581                    </p>
582                  </td>
583<td>
584                    <p>
585                      <span class="inlinemediaobject"><img src="../../../../img/ok.png" alt="ok"></span>
586                    </p>
587                  </td>
588<td>
589                    <p>
590                      <span class="inlinemediaobject"><img src="../../../../img/ok.png" alt="ok"></span>
591                    </p>
592                  </td>
593<td>
594                    <p>
595                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
596                    </p>
597                  </td>
598<td>
599                    <p>
600                      <span class="inlinemediaobject"><img src="../../../../img/ok.png" alt="ok"></span>
601                    </p>
602                  </td>
603<td>
604                    <p>
605                      <span class="inlinemediaobject"><img src="../../../../img/ok.png" alt="ok"></span>
606                    </p>
607                  </td>
608<td>
609                    <p>
610                      <span class="inlinemediaobject"><img src="../../../../img/ok.png" alt="ok"></span>
611                    </p>
612                  </td>
613</tr>
614<tr>
615<td>
616                    <p>
617                      MultiPoint
618                    </p>
619                  </td>
620<td>
621                    <p>
622                      <span class="inlinemediaobject"><img src="../../../../img/ok.png" alt="ok"></span>
623                    </p>
624                  </td>
625<td>
626                    <p>
627                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
628                    </p>
629                  </td>
630<td>
631                    <p>
632                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
633                    </p>
634                  </td>
635<td>
636                    <p>
637                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
638                    </p>
639                  </td>
640<td>
641                    <p>
642                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
643                    </p>
644                  </td>
645<td>
646                    <p>
647                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
648                    </p>
649                  </td>
650<td>
651                    <p>
652                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
653                    </p>
654                  </td>
655<td>
656                    <p>
657                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
658                    </p>
659                  </td>
660<td>
661                    <p>
662                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
663                    </p>
664                  </td>
665<td>
666                    <p>
667                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
668                    </p>
669                  </td>
670</tr>
671<tr>
672<td>
673                    <p>
674                      MultiLinestring
675                    </p>
676                  </td>
677<td>
678                    <p>
679                      <span class="inlinemediaobject"><img src="../../../../img/ok.png" alt="ok"></span>
680                    </p>
681                  </td>
682<td>
683                    <p>
684                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
685                    </p>
686                  </td>
687<td>
688                    <p>
689                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
690                    </p>
691                  </td>
692<td>
693                    <p>
694                      <span class="inlinemediaobject"><img src="../../../../img/ok.png" alt="ok"></span>
695                    </p>
696                  </td>
697<td>
698                    <p>
699                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
700                    </p>
701                  </td>
702<td>
703                    <p>
704                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
705                    </p>
706                  </td>
707<td>
708                    <p>
709                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
710                    </p>
711                  </td>
712<td>
713                    <p>
714                      <span class="inlinemediaobject"><img src="../../../../img/ok.png" alt="ok"></span>
715                    </p>
716                  </td>
717<td>
718                    <p>
719                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
720                    </p>
721                  </td>
722<td>
723                    <p>
724                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
725                    </p>
726                  </td>
727</tr>
728<tr>
729<td>
730                    <p>
731                      MultiPolygon
732                    </p>
733                  </td>
734<td>
735                    <p>
736                      <span class="inlinemediaobject"><img src="../../../../img/ok.png" alt="ok"></span>
737                    </p>
738                  </td>
739<td>
740                    <p>
741                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
742                    </p>
743                  </td>
744<td>
745                    <p>
746                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
747                    </p>
748                  </td>
749<td>
750                    <p>
751                      <span class="inlinemediaobject"><img src="../../../../img/ok.png" alt="ok"></span>
752                    </p>
753                  </td>
754<td>
755                    <p>
756                      <span class="inlinemediaobject"><img src="../../../../img/ok.png" alt="ok"></span>
757                    </p>
758                  </td>
759<td>
760                    <p>
761                      <span class="inlinemediaobject"><img src="../../../../img/ok.png" alt="ok"></span>
762                    </p>
763                  </td>
764<td>
765                    <p>
766                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
767                    </p>
768                  </td>
769<td>
770                    <p>
771                      <span class="inlinemediaobject"><img src="../../../../img/ok.png" alt="ok"></span>
772                    </p>
773                  </td>
774<td>
775                    <p>
776                      <span class="inlinemediaobject"><img src="../../../../img/ok.png" alt="ok"></span>
777                    </p>
778                  </td>
779<td>
780                    <p>
781                      <span class="inlinemediaobject"><img src="../../../../img/ok.png" alt="ok"></span>
782                    </p>
783                  </td>
784</tr>
785<tr>
786<td>
787                    <p>
788                      Variant
789                    </p>
790                  </td>
791<td>
792                    <p>
793                      <span class="inlinemediaobject"><img src="../../../../img/ok.png" alt="ok"></span>
794                    </p>
795                  </td>
796<td>
797                    <p>
798                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
799                    </p>
800                  </td>
801<td>
802                    <p>
803                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
804                    </p>
805                  </td>
806<td>
807                    <p>
808                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
809                    </p>
810                  </td>
811<td>
812                    <p>
813                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
814                    </p>
815                  </td>
816<td>
817                    <p>
818                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
819                    </p>
820                  </td>
821<td>
822                    <p>
823                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
824                    </p>
825                  </td>
826<td>
827                    <p>
828                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
829                    </p>
830                  </td>
831<td>
832                    <p>
833                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
834                    </p>
835                  </td>
836<td>
837                    <p>
838                      <span class="inlinemediaobject"><img src="../../../../img/nyi.png" alt="nyi"></span>
839                    </p>
840                  </td>
841</tr>
842</tbody>
843</table></div>
844<div class="note"><table border="0" summary="Note">
845<tr>
846<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../../../../../../doc/src/images/note.png"></td>
847<th align="left">Note</th>
848</tr>
849<tr><td align="left" valign="top"><p>
850              In this status matrix above: columns are types of first parameter and
851              rows are types of second parameter. So a point can be checked to be
852              within a polygon, but not vice versa.
853            </p></td></tr>
854</table></div>
855<h6>
856<a name="geometry.reference.algorithms.within.within_3_with_strategy.h7"></a>
857            <span class="phrase"><a name="geometry.reference.algorithms.within.within_3_with_strategy.notes"></a></span><a class="link" href="within_3_with_strategy.html#geometry.reference.algorithms.within.within_3_with_strategy.notes">Notes</a>
858          </h6>
859<p>
860            If a point is located exactly on the border of a geometry, the result
861            depends on the strategy. The default strategy (<a class="link" href="../../strategies/strategy_within_winding.html" title="strategy::within::winding">Winding
862            (coordinate system agnostic)</a>) returns false in that case.
863          </p>
864<p>
865            If a polygon has a reverse oriented (e.g. counterclockwise for a clockwise
866            typed polygon), the result also depends on the strategy. The default
867            strategy returns still true if a point is completely within the reversed
868            polygon. There is a specific strategy which returns false in this case.
869          </p>
870<h6>
871<a name="geometry.reference.algorithms.within.within_3_with_strategy.h8"></a>
872            <span class="phrase"><a name="geometry.reference.algorithms.within.within_3_with_strategy.complexity"></a></span><a class="link" href="within_3_with_strategy.html#geometry.reference.algorithms.within.within_3_with_strategy.complexity">Complexity</a>
873          </h6>
874<p>
875            Linear
876          </p>
877<h6>
878<a name="geometry.reference.algorithms.within.within_3_with_strategy.h9"></a>
879            <span class="phrase"><a name="geometry.reference.algorithms.within.within_3_with_strategy.see_also"></a></span><a class="link" href="within_3_with_strategy.html#geometry.reference.algorithms.within.within_3_with_strategy.see_also">See
880            also</a>
881          </h6>
882<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem">
883                <a class="link" href="../covered_by.html" title="covered_by">covered_by</a>
884              </li></ul></div>
885<h6>
886<a name="geometry.reference.algorithms.within.within_3_with_strategy.h10"></a>
887            <span class="phrase"><a name="geometry.reference.algorithms.within.within_3_with_strategy.available_strategies"></a></span><a class="link" href="within_3_with_strategy.html#geometry.reference.algorithms.within.within_3_with_strategy.available_strategies">Available
888            Strategies</a>
889          </h6>
890<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
891<li class="listitem">
892                <a class="link" href="../../strategies/strategy_within_winding.html" title="strategy::within::winding">Winding
893                (coordinate system agnostic)</a>
894              </li>
895<li class="listitem">
896                <a class="link" href="../../strategies/strategy_within_franklin.html" title="strategy::within::franklin">Franklin
897                (cartesian)</a>
898              </li>
899<li class="listitem">
900                <a class="link" href="../../strategies/strategy_within_crossings_multiply.html" title="strategy::within::crossings_multiply">Crossings
901                Multiply (cartesian)</a>
902              </li>
903</ul></div>
904<h6>
905<a name="geometry.reference.algorithms.within.within_3_with_strategy.h11"></a>
906            <span class="phrase"><a name="geometry.reference.algorithms.within.within_3_with_strategy.example"></a></span><a class="link" href="within_3_with_strategy.html#geometry.reference.algorithms.within.within_3_with_strategy.example">Example</a>
907          </h6>
908<p>
909            [within_strategy] [within_strategy_output]
910          </p>
911</div>
912<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
913<td align="left"></td>
914<td align="right"><div class="copyright-footer">Copyright © 2009-2019 Barend Gehrels, Bruno Lalande, Mateusz Loskot, Adam
915      Wulkiewicz, Oracle and/or its affiliates<p>
916        Distributed under the Boost Software License, Version 1.0. (See accompanying
917        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>)
918      </p>
919</div></td>
920</tr></table>
921<hr>
922<div class="spirit-nav">
923<a accesskey="p" href="within_2.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../within.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="../../arithmetic.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>
924</div>
925</body>
926</html>
927