• 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::side::side_by_triangle</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_spherical.html" title="strategy::line_interpolate::spherical">
10<link rel="next" href="strategy_side_side_by_cross_track.html" title="strategy::side::side_by_cross_track">
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_spherical.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_cross_track.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_side_by_triangle"></a><a class="link" href="strategy_side_side_by_triangle.html" title="strategy::side::side_by_triangle">strategy::side::side_by_triangle</a>
28</h4></div></div></div>
29<p>
30          <a class="indexterm" name="idm45635668169392"></a><a class="indexterm" name="idm45635668168704"></a><a class="indexterm" name="idm45635668168016"></a>
31Check at which side of a segment a point lies: left of segment (&gt; 0),
32          right of segment (&lt; 0), on segment (0)
33        </p>
34<h6>
35<a name="geometry.reference.strategies.strategy_side_side_by_triangle.h0"></a>
36          <span class="phrase"><a name="geometry.reference.strategies.strategy_side_side_by_triangle.synopsis"></a></span><a class="link" href="strategy_side_side_by_triangle.html#geometry.reference.strategies.strategy_side_side_by_triangle.synopsis">Synopsis</a>
37        </h6>
38<p>
39</p>
40<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">&gt;</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">side_by_triangle</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_side_by_triangle.h1"></a>
50          <span class="phrase"><a name="geometry.reference.strategies.strategy_side_side_by_triangle.template_parameter_s_"></a></span><a class="link" href="strategy_side_side_by_triangle.html#geometry.reference.strategies.strategy_side_side_by_triangle.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><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></tbody>
95</table></div>
96<h6>
97<a name="geometry.reference.strategies.strategy_side_side_by_triangle.h2"></a>
98          <span class="phrase"><a name="geometry.reference.strategies.strategy_side_side_by_triangle.member_function_s_"></a></span><a class="link" href="strategy_side_side_by_triangle.html#geometry.reference.strategies.strategy_side_side_by_triangle.member_function_s_">Member
99          Function(s)</a>
100        </h6>
101<div class="informaltable"><table class="table">
102<colgroup>
103<col>
104<col>
105<col>
106<col>
107</colgroup>
108<thead><tr>
109<th>
110                  <p>
111                    Function
112                  </p>
113                </th>
114<th>
115                  <p>
116                    Description
117                  </p>
118                </th>
119<th>
120                  <p>
121                    Parameters
122                  </p>
123                </th>
124<th>
125                  <p>
126                    Returns
127                  </p>
128                </th>
129</tr></thead>
130<tbody>
131<tr>
132<td>
133                  <p>
134</p>
135<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>
136<p>
137                  </p>
138                </td>
139<td>
140                </td>
141<td>
142                </td>
143<td>
144                </td>
145</tr>
146<tr>
147<td>
148                  <p>
149</p>
150<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>
151<p>
152                  </p>
153                </td>
154<td>
155                </td>
156<td>
157                </td>
158<td>
159                </td>
160</tr>
161<tr>
162<td>
163                  <p>
164</p>
165<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>
166<p>
167                  </p>
168                </td>
169<td>
170                </td>
171<td>
172                </td>
173<td>
174                </td>
175</tr>
176<tr>
177<td>
178                  <p>
179</p>
180<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">CoordinateType</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">PromotedType</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>
181         <span class="keyword">typename</span> <span class="identifier">P</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">EpsPolicy</span><span class="special">&gt;</span>
182<span class="identifier">PromotedType</span> <span class="identifier">side_value</span><span class="special">(</span><span class="identifier">P1</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">p1</span><span class="special">,</span> <span class="identifier">P2</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">p2</span><span class="special">,</span> <span class="identifier">P</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">p</span><span class="special">,</span>
183                        <span class="identifier">EpsPolicy</span> <span class="special">&amp;</span> <span class="identifier">eps_policy</span><span class="special">)</span></pre>
184<p>
185                  </p>
186                </td>
187<td>
188                </td>
189<td>
190                  <p>
191                    <span class="bold"><strong>P1 const &amp;</strong></span>: <span class="emphasis"><em>p1</em></span>:
192                  </p>
193                  <p>
194                    <span class="bold"><strong>P2 const &amp;</strong></span>: <span class="emphasis"><em>p2</em></span>:
195                  </p>
196                  <p>
197                    <span class="bold"><strong>P const &amp;</strong></span>: <span class="emphasis"><em>p</em></span>:
198                  </p>
199                  <p>
200                    <span class="bold"><strong>EpsPolicy &amp;</strong></span>: <span class="emphasis"><em>eps_policy</em></span>:
201                  </p>
202                </td>
203<td>
204                </td>
205</tr>
206<tr>
207<td>
208                  <p>
209</p>
210<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">CoordinateType</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">PromotedType</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>
211         <span class="keyword">typename</span> <span class="identifier">P</span><span class="special">&gt;</span>
212<span class="identifier">PromotedType</span> <span class="identifier">side_value</span><span class="special">(</span><span class="identifier">P1</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">p1</span><span class="special">,</span> <span class="identifier">P2</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">p2</span><span class="special">,</span> <span class="identifier">P</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">p</span><span class="special">)</span></pre>
213<p>
214                  </p>
215                </td>
216<td>
217                </td>
218<td>
219                  <p>
220                    <span class="bold"><strong>P1 const &amp;</strong></span>: <span class="emphasis"><em>p1</em></span>:
221                  </p>
222                  <p>
223                    <span class="bold"><strong>P2 const &amp;</strong></span>: <span class="emphasis"><em>p2</em></span>:
224                  </p>
225                  <p>
226                    <span class="bold"><strong>P const &amp;</strong></span>: <span class="emphasis"><em>p</em></span>:
227                  </p>
228                </td>
229<td>
230                </td>
231</tr>
232<tr>
233<td>
234                  <p>
235</p>
236<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">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">&gt;</span>
237<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">&amp;</span> <span class="identifier">p1</span><span class="special">,</span> <span class="identifier">P2</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">p2</span><span class="special">,</span> <span class="identifier">P</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">p</span><span class="special">)</span></pre>
238<p>
239                  </p>
240                </td>
241<td>
242                </td>
243<td>
244                  <p>
245                    <span class="bold"><strong>P1 const &amp;</strong></span>: <span class="emphasis"><em>p1</em></span>:
246                  </p>
247                  <p>
248                    <span class="bold"><strong>P2 const &amp;</strong></span>: <span class="emphasis"><em>p2</em></span>:
249                  </p>
250                  <p>
251                    <span class="bold"><strong>P const &amp;</strong></span>: <span class="emphasis"><em>p</em></span>:
252                  </p>
253                </td>
254<td>
255                </td>
256</tr>
257</tbody>
258</table></div>
259<h6>
260<a name="geometry.reference.strategies.strategy_side_side_by_triangle.h3"></a>
261          <span class="phrase"><a name="geometry.reference.strategies.strategy_side_side_by_triangle.header"></a></span><a class="link" href="strategy_side_side_by_triangle.html#geometry.reference.strategies.strategy_side_side_by_triangle.header">Header</a>
262        </h6>
263<p>
264          <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">cartesian</span><span class="special">/</span><span class="identifier">side_by_triangle</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code>
265        </p>
266</div>
267<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
268<td align="left"></td>
269<td align="right"><div class="copyright-footer">Copyright © 2009-2019 Barend Gehrels, Bruno Lalande, Mateusz Loskot, Adam
270      Wulkiewicz, Oracle and/or its affiliates<p>
271        Distributed under the Boost Software License, Version 1.0. (See accompanying
272        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>)
273      </p>
274</div></td>
275</tr></table>
276<hr>
277<div class="spirit-nav">
278<a accesskey="p" href="strategy_line_interpolate_spherical.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_cross_track.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
279</div>
280</body>
281</html>
282