<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libnfporb API Reference: src/algo/select_next.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">libnfporb API Reference
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_8111f045ab156cab490d6e0f8a4c6c64.html">algo</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">select_next.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="select__next_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef SRC_ALGO_SELECT_NEXT_HPP_</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define SRC_ALGO_SELECT_NEXT_HPP_</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160; </div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &quot;../geometry.hpp&quot;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &quot;../translation_vector.hpp&quot;</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &quot;../history.hpp&quot;</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160; </div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacelibnfporb.html">libnfporb</a> {</div>
<div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="namespacelibnfporb.html#ae48269c8b06270252a020caa8f362414">   14</a></span>&#160;<a class="code" href="structlibnfporb_1_1TranslationVector.html">TranslationVector</a> <a class="code" href="namespacelibnfporb.html#ae48269c8b06270252a020caa8f362414">find_longest</a>(<span class="keyword">const</span> std::vector&lt;TranslationVector&gt;&amp; tvs) {</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;    <a class="code" href="classlibnfporb_1_1LongDouble.html">coord_t</a> len;</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;    <a class="code" href="classlibnfporb_1_1LongDouble.html">coord_t</a> maxLen = <a class="code" href="namespacelibnfporb.html#a125f9bff0a4aaed7ffa722b859f4876b">MIN_COORD</a>;</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;    <a class="code" href="structlibnfporb_1_1TranslationVector.html">TranslationVector</a> longest;</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;    longest.<a class="code" href="structlibnfporb_1_1TranslationVector.html#a4c67c4cee95a6c55f7092f4e803ff581">vector_</a> = <a class="code" href="namespacelibnfporb.html#a0abb0ee4fb1775630b0c6667426070c3">INVALID_POINT</a>;</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160; </div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;    <span class="keywordflow">for</span> (<span class="keyword">auto</span>&amp; tv : tvs) {</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;        len = bg::length(<a class="code" href="namespacelibnfporb.html#a56b264a84ae3c5f7e5c984e17ee89fbc">segment_t</a> { { 0, 0 }, tv.vector_ });</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="namespacelibnfporb.html#a3021c2838a351048bd223d1e9a0493c3">larger</a>(len, maxLen)) {</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;            maxLen = len;</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;            longest = tv;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;        }</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;    }</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;    <span class="keywordflow">return</span> longest;</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;}</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160; </div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="namespacelibnfporb.html#a99839d8d2e348001d6163d58d9e5684a">   34</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="namespacelibnfporb.html#a99839d8d2e348001d6163d58d9e5684a">sort_by_length</a>(std::vector&lt;TranslationVector&gt;&amp; tvs) {</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    std::sort( tvs.begin( ), tvs.end( ), [ ]( <span class="keyword">const</span> <a class="code" href="structlibnfporb_1_1TranslationVector.html">TranslationVector</a>&amp; lhs, <span class="keyword">const</span> <a class="code" href="structlibnfporb_1_1TranslationVector.html">TranslationVector</a>&amp; rhs ) {</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;        coord_t llen = bg::length(segment_t { { 0, 0 }, lhs.vector_ });</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;        <a class="code" href="classlibnfporb_1_1LongDouble.html">coord_t</a> rlen = bg::length(<a class="code" href="namespacelibnfporb.html#a56b264a84ae3c5f7e5c984e17ee89fbc">segment_t</a> { { 0, 0 }, rhs.<a class="code" href="structlibnfporb_1_1TranslationVector.html#a4c67c4cee95a6c55f7092f4e803ff581">vector_</a> });</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;       <span class="keywordflow">return</span> llen &lt; rlen;</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    });</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;}</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160; </div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="namespacelibnfporb.html#afbc406a29ea633b078b82f74ff5cdb2c">   51</a></span>&#160;<a class="code" href="structlibnfporb_1_1TranslationVector.html">TranslationVector</a> <a class="code" href="namespacelibnfporb.html#afbc406a29ea633b078b82f74ff5cdb2c">select_next_translation_vector</a>(<span class="keyword">const</span> <a class="code" href="namespacelibnfporb.html#a6669e4dfc06e20a3983fe52e360d38da">polygon_t</a>&amp; pA, <span class="keyword">const</span> polygon_t::ring_type&amp; rA, <span class="keyword">const</span> polygon_t::ring_type&amp; rB, std::vector&lt;TranslationVector&gt; feasibleVectors, <span class="keyword">const</span> <a class="code" href="namespacelibnfporb.html#a96e2404c9e732b3f5a6d3ae4d6576d90">History</a>&amp; history) {</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    <span class="keywordflow">if</span>(feasibleVectors.size() == 1) {</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;        <span class="keywordflow">return</span> feasibleVectors.front();</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    }</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160; </div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    <span class="keywordflow">if</span> (history.size() &gt; 1) {</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;<span class="preprocessor">#ifdef NFP_DEBUG</span></div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;        <span class="keywordflow">if</span>(history.size() &gt; 5) {</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;            <a class="code" href="geometry_8hpp.html#a1b3334ff50dda25c6e2e8e5a918c180f">DEBUG_VAL</a>(<span class="stringliteral">&quot;last 6 from history:&quot;</span>);</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i &lt; 6; ++i) {</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;                <a class="code" href="geometry_8hpp.html#a1b3334ff50dda25c6e2e8e5a918c180f">DEBUG_VAL</a>(history[history.size() - 1 - i]);</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;            }</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;            <a class="code" href="geometry_8hpp.html#a1b3334ff50dda25c6e2e8e5a918c180f">DEBUG_VAL</a>(<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;        }</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160; </div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;        <span class="keywordtype">size_t</span> histCnt = 0;</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;        <span class="keywordtype">size_t</span> minHistCnt = history.size() + 1;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;        <a class="code" href="structlibnfporb_1_1TranslationVector.html">TranslationVector</a> least_used;</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160; </div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;        <a class="code" href="namespacelibnfporb.html#a99839d8d2e348001d6163d58d9e5684a">sort_by_length</a>(feasibleVectors);</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160; </div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;        <span class="keywordflow">for</span>(<span class="keyword">auto</span>&amp; candidate : feasibleVectors) {</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;            <span class="keywordflow">if</span>(<a class="code" href="namespacelibnfporb.html#ac33141646910ac2614d57a1c34ca92e6">count</a>(history, candidate) == 0) {</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;                <a class="code" href="geometry_8hpp.html#ae18601ba88bb34208da9e4a0f11fa983">DEBUG_MSG</a>(<span class="stringliteral">&quot;longest unused&quot;</span>, candidate);</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;                <span class="keywordflow">return</span> candidate;</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;            }</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;        }</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160; </div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;        <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keyword">auto</span>&amp; candidate : feasibleVectors) {</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;            histCnt = <a class="code" href="namespacelibnfporb.html#ac33141646910ac2614d57a1c34ca92e6">count</a>(history, candidate);</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160; </div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;            <span class="keywordflow">if</span>(histCnt &lt; minHistCnt) {</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;                minHistCnt = histCnt;</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;                least_used = candidate;</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;            }</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;        }</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160; </div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;        <a class="code" href="geometry_8hpp.html#ae18601ba88bb34208da9e4a0f11fa983">DEBUG_MSG</a>(<span class="stringliteral">&quot;least used&quot;</span>, least_used);</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;        <span class="keywordflow">return</span> least_used;</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160; </div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;        <a class="code" href="structlibnfporb_1_1TranslationVector.html">TranslationVector</a> tv;</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;        tv.<a class="code" href="structlibnfporb_1_1TranslationVector.html#a4c67c4cee95a6c55f7092f4e803ff581">vector_</a> = <a class="code" href="namespacelibnfporb.html#a0abb0ee4fb1775630b0c6667426070c3">INVALID_POINT</a>;</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;        <span class="keywordflow">return</span> tv;</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;        <span class="keyword">auto</span> longest = <a class="code" href="namespacelibnfporb.html#ae48269c8b06270252a020caa8f362414">find_longest</a>(feasibleVectors);</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;        <a class="code" href="geometry_8hpp.html#ae18601ba88bb34208da9e4a0f11fa983">DEBUG_MSG</a>(<span class="stringliteral">&quot;longest&quot;</span>, longest);</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;        <span class="keywordflow">return</span> longest;</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    }</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;}</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;}</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160; </div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160; </div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* SRC_ALGO_SELECT_NEXT_HPP_ */</span><span class="preprocessor"></span></div>
<div class="ttc" id="aclasslibnfporb_1_1LongDouble_html"><div class="ttname"><a href="classlibnfporb_1_1LongDouble.html">libnfporb::LongDouble</a></div><div class="ttdef"><b>Definition:</b> geometry.hpp:39</div></div>
<div class="ttc" id="ageometry_8hpp_html_a1b3334ff50dda25c6e2e8e5a918c180f"><div class="ttname"><a href="geometry_8hpp.html#a1b3334ff50dda25c6e2e8e5a918c180f">DEBUG_VAL</a></div><div class="ttdeci">#define DEBUG_VAL(x)</div><div class="ttdef"><b>Definition:</b> geometry.hpp:31</div></div>
<div class="ttc" id="ageometry_8hpp_html_ae18601ba88bb34208da9e4a0f11fa983"><div class="ttname"><a href="geometry_8hpp.html#ae18601ba88bb34208da9e4a0f11fa983">DEBUG_MSG</a></div><div class="ttdeci">#define DEBUG_MSG(title, value)</div><div class="ttdef"><b>Definition:</b> geometry.hpp:32</div></div>
<div class="ttc" id="anamespacelibnfporb_html"><div class="ttname"><a href="namespacelibnfporb.html">libnfporb</a></div><div class="ttdef"><b>Definition:</b> geometry.hpp:26</div></div>
<div class="ttc" id="anamespacelibnfporb_html_a0abb0ee4fb1775630b0c6667426070c3"><div class="ttname"><a href="namespacelibnfporb.html#a0abb0ee4fb1775630b0c6667426070c3">libnfporb::INVALID_POINT</a></div><div class="ttdeci">const point_t INVALID_POINT</div><div class="ttdef"><b>Definition:</b> geometry.hpp:353</div></div>
<div class="ttc" id="anamespacelibnfporb_html_a125f9bff0a4aaed7ffa722b859f4876b"><div class="ttname"><a href="namespacelibnfporb.html#a125f9bff0a4aaed7ffa722b859f4876b">libnfporb::MIN_COORD</a></div><div class="ttdeci">const coord_t MIN_COORD</div><div class="ttdef"><b>Definition:</b> geometry.hpp:290</div></div>
<div class="ttc" id="anamespacelibnfporb_html_a3021c2838a351048bd223d1e9a0493c3"><div class="ttname"><a href="namespacelibnfporb.html#a3021c2838a351048bd223d1e9a0493c3">libnfporb::larger</a></div><div class="ttdeci">bool larger(const LongDouble &amp;lhs, const LongDouble &amp;rhs)</div><div class="ttdef"><b>Definition:</b> geometry.hpp:459</div></div>
<div class="ttc" id="anamespacelibnfporb_html_a56b264a84ae3c5f7e5c984e17ee89fbc"><div class="ttname"><a href="namespacelibnfporb.html#a56b264a84ae3c5f7e5c984e17ee89fbc">libnfporb::segment_t</a></div><div class="ttdeci">bg::model::segment&lt; point_t &gt; segment_t</div><div class="ttdef"><b>Definition:</b> geometry.hpp:355</div></div>
<div class="ttc" id="anamespacelibnfporb_html_a6669e4dfc06e20a3983fe52e360d38da"><div class="ttname"><a href="namespacelibnfporb.html#a6669e4dfc06e20a3983fe52e360d38da">libnfporb::polygon_t</a></div><div class="ttdeci">bg::model::polygon&lt; point_t, false, true &gt; polygon_t</div><div class="ttdef"><b>Definition:</b> geometry.hpp:493</div></div>
<div class="ttc" id="anamespacelibnfporb_html_a96e2404c9e732b3f5a6d3ae4d6576d90"><div class="ttname"><a href="namespacelibnfporb.html#a96e2404c9e732b3f5a6d3ae4d6576d90">libnfporb::History</a></div><div class="ttdeci">std::vector&lt; TranslationVector &gt; History</div><div class="ttdef"><b>Definition:</b> history.hpp:8</div></div>
<div class="ttc" id="anamespacelibnfporb_html_a99839d8d2e348001d6163d58d9e5684a"><div class="ttname"><a href="namespacelibnfporb.html#a99839d8d2e348001d6163d58d9e5684a">libnfporb::sort_by_length</a></div><div class="ttdeci">void sort_by_length(std::vector&lt; TranslationVector &gt; &amp;tvs)</div><div class="ttdoc">Sort a std::vector of translation vectors by length.</div><div class="ttdef"><b>Definition:</b> select_next.hpp:34</div></div>
<div class="ttc" id="anamespacelibnfporb_html_ac33141646910ac2614d57a1c34ca92e6"><div class="ttname"><a href="namespacelibnfporb.html#ac33141646910ac2614d57a1c34ca92e6">libnfporb::count</a></div><div class="ttdeci">size_t count(const History &amp;h, const TranslationVector &amp;tv)</div><div class="ttdef"><b>Definition:</b> history.hpp:57</div></div>
<div class="ttc" id="anamespacelibnfporb_html_ae48269c8b06270252a020caa8f362414"><div class="ttname"><a href="namespacelibnfporb.html#ae48269c8b06270252a020caa8f362414">libnfporb::find_longest</a></div><div class="ttdeci">TranslationVector find_longest(const std::vector&lt; TranslationVector &gt; &amp;tvs)</div><div class="ttdoc">Find the longest translation vector.</div><div class="ttdef"><b>Definition:</b> select_next.hpp:14</div></div>
<div class="ttc" id="anamespacelibnfporb_html_afbc406a29ea633b078b82f74ff5cdb2c"><div class="ttname"><a href="namespacelibnfporb.html#afbc406a29ea633b078b82f74ff5cdb2c">libnfporb::select_next_translation_vector</a></div><div class="ttdeci">TranslationVector select_next_translation_vector(const polygon_t &amp;pA, const polygon_t::ring_type &amp;rA, const polygon_t::ring_type &amp;rB, std::vector&lt; TranslationVector &gt; feasibleVectors, const History &amp;history)</div><div class="ttdoc">Select the next translation vector from all viable translations.</div><div class="ttdef"><b>Definition:</b> select_next.hpp:51</div></div>
<div class="ttc" id="astructlibnfporb_1_1TranslationVector_html"><div class="ttname"><a href="structlibnfporb_1_1TranslationVector.html">libnfporb::TranslationVector</a></div><div class="ttdef"><b>Definition:</b> translation_vector.hpp:10</div></div>
<div class="ttc" id="astructlibnfporb_1_1TranslationVector_html_a4c67c4cee95a6c55f7092f4e803ff581"><div class="ttname"><a href="structlibnfporb_1_1TranslationVector.html#a4c67c4cee95a6c55f7092f4e803ff581">libnfporb::TranslationVector::vector_</a></div><div class="ttdeci">point_t vector_</div><div class="ttdef"><b>Definition:</b> translation_vector.hpp:11</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
