<!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/find_feasible.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">find_feasible.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="find__feasible_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_FIND_FEASIBLE_HPP_</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define SRC_ALGO_FIND_FEASIBLE_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;<a class="code" href="trim__vector_8hpp.html">trim_vector.hpp</a>&quot;</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="touching__point_8hpp.html">touching_point.hpp</a>&quot;</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160; </div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacelibnfporb.html">libnfporb</a> {</div>
<div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="namespacelibnfporb.html#adadba4ed8bed6e50b03cca5112dc4c6a">   17</a></span>&#160;std::vector&lt;TranslationVector&gt; <a class="code" href="namespacelibnfporb.html#adadba4ed8bed6e50b03cca5112dc4c6a">find_feasible_translation_vectors</a>(polygon_t::ring_type&amp; ringA, polygon_t::ring_type&amp; ringB, <span class="keyword">const</span> std::vector&lt;TouchingPoint&gt;&amp; touchers) {</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;    <span class="comment">//use a set to automatically filter duplicate vectors</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;    std::vector&lt;TranslationVector&gt; potentialVectors;</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;    std::vector&lt;std::pair&lt;segment_t, segment_t&gt;&gt; touchEdges;</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160; </div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;    <span class="keywordflow">for</span> (<a class="code" href="namespacelibnfporb.html#a83ffffdc4e4235604aa207e82bbb4eab">psize_t</a> i = 0; i &lt; touchers.size(); i++) {</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;        <a class="code" href="classlibnfporb_1_1point__t.html">point_t</a>&amp; vertexA = ringA[touchers[i].A_];</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;        vertexA.<a class="code" href="classlibnfporb_1_1point__t.html#a1e1e8047919984dc7fe1f9a9c572cc05">marked_</a> = <span class="keyword">true</span>;</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;        <span class="comment">// adjacent A vertices</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;        <span class="keywordtype">signed</span> <span class="keywordtype">long</span> prevAindex = touchers[i].A_ - 1;</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;        <span class="keywordtype">signed</span> <span class="keywordtype">long</span> nextAindex = touchers[i].A_ + 1;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160; </div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;        prevAindex = (prevAindex &lt; 0) ? ringA.size() - 2 : prevAindex; <span class="comment">// loop</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;        nextAindex = (<span class="keyword">static_cast&lt;</span><a class="code" href="namespacelibnfporb.html#a83ffffdc4e4235604aa207e82bbb4eab">psize_t</a><span class="keyword">&gt;</span>(nextAindex) &gt;= ringA.size()) ? 1 : nextAindex; <span class="comment">// loop</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160; </div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;        <a class="code" href="classlibnfporb_1_1point__t.html">point_t</a>&amp; prevA = ringA[prevAindex];</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;        <a class="code" href="classlibnfporb_1_1point__t.html">point_t</a>&amp; nextA = ringA[nextAindex];</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160; </div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;        <span class="comment">// adjacent B vertices</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;        <a class="code" href="classlibnfporb_1_1point__t.html">point_t</a>&amp; vertexB = ringB[touchers[i].B_];</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160; </div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;        <span class="keywordtype">signed</span> <span class="keywordtype">long</span> prevBindex = touchers[i].B_ - 1;</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;        <span class="keywordtype">signed</span> <span class="keywordtype">long</span> nextBindex = touchers[i].B_ + 1;</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160; </div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;        prevBindex = (prevBindex &lt; 0) ? ringB.size() - 2 : prevBindex; <span class="comment">// loop</span></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;        nextBindex = (<span class="keyword">static_cast&lt;</span><a class="code" href="namespacelibnfporb.html#a83ffffdc4e4235604aa207e82bbb4eab">psize_t</a><span class="keyword">&gt;</span>(nextBindex) &gt;= ringB.size()) ? 1 : nextBindex; <span class="comment">// loop</span></div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160; </div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;        <a class="code" href="classlibnfporb_1_1point__t.html">point_t</a>&amp; prevB = ringB[prevBindex];</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;        <a class="code" href="classlibnfporb_1_1point__t.html">point_t</a>&amp; nextB = ringB[nextBindex];</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160; </div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;        <span class="keywordflow">if</span> (touchers[i].type_ == <a class="code" href="structlibnfporb_1_1TouchingPoint.html#afe317e8d33a5392facc07934748ae3f5a4c8372a94c69e5b0e1ebfa11b89a4ecf">TouchingPoint::VERTEX</a>) {</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;            <a class="code" href="namespacelibnfporb.html#a56b264a84ae3c5f7e5c984e17ee89fbc">segment_t</a> a1 = { vertexA, nextA };</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;            <a class="code" href="namespacelibnfporb.html#a56b264a84ae3c5f7e5c984e17ee89fbc">segment_t</a> a2 = { vertexA, prevA };</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;            <a class="code" href="namespacelibnfporb.html#a56b264a84ae3c5f7e5c984e17ee89fbc">segment_t</a> b1 = { vertexB, nextB };</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;            <a class="code" href="namespacelibnfporb.html#a56b264a84ae3c5f7e5c984e17ee89fbc">segment_t</a> b2 = { vertexB, prevB };</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160; </div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;            <span class="comment">//swap the segment elements so that always the first point is the touching point</span></div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;            <span class="comment">//also make the second segment always a segment of ringB</span></div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;            touchEdges.push_back( { a1, b1 });</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;            touchEdges.push_back( { a1, b2 });</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;            touchEdges.push_back( { a2, b1 });</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;            touchEdges.push_back( { a2, b2 });</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="preprocessor">#ifdef NFP_DEBUG</span></div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;            <a class="code" href="namespacelibnfporb.html#aefa8e61428bb5385bf8a62bb0a17cdd8">write_svg</a>(<span class="stringliteral">&quot;touchersV&quot;</span> + std::to_string(i) + <span class="stringliteral">&quot;.svg&quot;</span>, {a1,a2,b1,b2});</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160; </div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;            <span class="comment">//TODO test parallel edges for floating point stability</span></div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;            <a class="code" href="namespacelibnfporb.html#ab8d12caab4bf53479cc06d350cd5706f">Alignment</a> al;</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;            <span class="comment">//a1 and b1 meet at start vertex</span></div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;            al = <a class="code" href="namespacelibnfporb.html#a821049b74c902ecafa0da3b19464717d">get_alignment</a>(a1, b1.second);</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;            <span class="keywordflow">if</span> (al == <a class="code" href="namespacelibnfporb.html#ab8d12caab4bf53479cc06d350cd5706faad2f75e6345098a73fba38cae5ad5703">LEFT</a>) {</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;                potentialVectors.push_back( { b1.first - b1.second, b1, <span class="keyword">false</span>, <span class="stringliteral">&quot;vertex1&quot;</span> });</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;            } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (al == <a class="code" href="namespacelibnfporb.html#ab8d12caab4bf53479cc06d350cd5706fa3fb8da88633a285b8fca71c579077015">RIGHT</a>) {</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;                potentialVectors.push_back( { a1.second - a1.first, a1, <span class="keyword">true</span>, <span class="stringliteral">&quot;vertex2&quot;</span> });</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;                potentialVectors.push_back( { a1.second - a1.first, a1, <span class="keyword">true</span>, <span class="stringliteral">&quot;vertex3&quot;</span> });</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;            }</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160; </div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;            <span class="comment">//a1 and b2 meet at start and end</span></div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;            al = <a class="code" href="namespacelibnfporb.html#a821049b74c902ecafa0da3b19464717d">get_alignment</a>(a1, b2.second);</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;            <span class="keywordflow">if</span> (al == <a class="code" href="namespacelibnfporb.html#ab8d12caab4bf53479cc06d350cd5706faad2f75e6345098a73fba38cae5ad5703">LEFT</a>) {</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;                <span class="comment">//no feasible translation</span></div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;                <a class="code" href="geometry_8hpp.html#ae18601ba88bb34208da9e4a0f11fa983">DEBUG_MSG</a>(<span class="stringliteral">&quot;not feasible&quot;</span>, a1.second - a1.first);</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;            } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (al == <a class="code" href="namespacelibnfporb.html#ab8d12caab4bf53479cc06d350cd5706fa3fb8da88633a285b8fca71c579077015">RIGHT</a>) {</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;                potentialVectors.push_back( { a1.second - a1.first, a1, <span class="keyword">true</span>, <span class="stringliteral">&quot;vertex5&quot;</span> });</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;                potentialVectors.push_back( { a1.second - a1.first, a1, <span class="keyword">true</span>, <span class="stringliteral">&quot;vertex6&quot;</span> });</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;            }</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;            <span class="comment">//a2 and b1 meet at end and start</span></div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;            al = <a class="code" href="namespacelibnfporb.html#a821049b74c902ecafa0da3b19464717d">get_alignment</a>(a2, b1.second);</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;            <span class="keywordflow">if</span> (al == <a class="code" href="namespacelibnfporb.html#ab8d12caab4bf53479cc06d350cd5706faad2f75e6345098a73fba38cae5ad5703">LEFT</a>) {</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;                potentialVectors.push_back( { b1.first - b1.second, b1, <span class="keyword">false</span>, <span class="stringliteral">&quot;vertex7&quot;</span> });</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;            } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (al == <a class="code" href="namespacelibnfporb.html#ab8d12caab4bf53479cc06d350cd5706fa3fb8da88633a285b8fca71c579077015">RIGHT</a>) {</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;                potentialVectors.push_back( { b1.first - b1.second, b1, <span class="keyword">false</span>, <span class="stringliteral">&quot;vertex8&quot;</span> });</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;                potentialVectors.push_back( { b1.first - b1.second, b1, <span class="keyword">false</span>, <span class="stringliteral">&quot;vertex9&quot;</span> });</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;            }</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;        } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (touchers[i].type_ == <a class="code" href="structlibnfporb_1_1TouchingPoint.html#afe317e8d33a5392facc07934748ae3f5a03f232c73ef66c6bf1850f06b9b35cd1">TouchingPoint::B_ON_A</a>) {</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;            <a class="code" href="namespacelibnfporb.html#a56b264a84ae3c5f7e5c984e17ee89fbc">segment_t</a> a1 = { vertexB, vertexA };</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;            <a class="code" href="namespacelibnfporb.html#a56b264a84ae3c5f7e5c984e17ee89fbc">segment_t</a> a2 = { vertexB, prevA };</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;            <a class="code" href="namespacelibnfporb.html#a56b264a84ae3c5f7e5c984e17ee89fbc">segment_t</a> b1 = { vertexB, prevB };</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;            <a class="code" href="namespacelibnfporb.html#a56b264a84ae3c5f7e5c984e17ee89fbc">segment_t</a> b2 = { vertexB, nextB };</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;            touchEdges.push_back( { a1, b1 });</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;            touchEdges.push_back( { a1, b2 });</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;            touchEdges.push_back( { a2, b1 });</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;            touchEdges.push_back( { a2, b2 });</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;<span class="preprocessor">#ifdef NFP_DEBUG</span></div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;            <a class="code" href="namespacelibnfporb.html#aefa8e61428bb5385bf8a62bb0a17cdd8">write_svg</a>(<span class="stringliteral">&quot;touchersB&quot;</span> + std::to_string(i) + <span class="stringliteral">&quot;.svg&quot;</span>, {a1,a2,b1,b2});</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;            potentialVectors.push_back( { vertexA - vertexB, { vertexB, vertexA }, <span class="keyword">true</span>, <span class="stringliteral">&quot;bona&quot;</span> });</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;        } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (touchers[i].type_ == <a class="code" href="structlibnfporb_1_1TouchingPoint.html#afe317e8d33a5392facc07934748ae3f5afc9b5dd72baef51ad1c3b7267d7424b5">TouchingPoint::A_ON_B</a>) {</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;            <span class="comment">//TODO testme</span></div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;            <a class="code" href="namespacelibnfporb.html#a56b264a84ae3c5f7e5c984e17ee89fbc">segment_t</a> a1 = { vertexA, prevA };</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;            <a class="code" href="namespacelibnfporb.html#a56b264a84ae3c5f7e5c984e17ee89fbc">segment_t</a> a2 = { vertexA, nextA };</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;            <a class="code" href="namespacelibnfporb.html#a56b264a84ae3c5f7e5c984e17ee89fbc">segment_t</a> b1 = { vertexA, vertexB };</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;            <a class="code" href="namespacelibnfporb.html#a56b264a84ae3c5f7e5c984e17ee89fbc">segment_t</a> b2 = { vertexA, prevB };</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;<span class="preprocessor">#ifdef NFP_DEBUG</span></div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;            <a class="code" href="namespacelibnfporb.html#aefa8e61428bb5385bf8a62bb0a17cdd8">write_svg</a>(<span class="stringliteral">&quot;touchersA&quot;</span> + std::to_string(i) + <span class="stringliteral">&quot;.svg&quot;</span>, {a1,a2,b1,b2});</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;            touchEdges.push_back( { a1, b1 });</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;            touchEdges.push_back( { a2, b1 });</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;            touchEdges.push_back( { a1, b2 });</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;            touchEdges.push_back( { a2, b2 });</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;            potentialVectors.push_back( { vertexA - vertexB, { vertexA, vertexB }, <span class="keyword">false</span>, <span class="stringliteral">&quot;aonb&quot;</span> });</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;        }</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;    }</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160; </div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;<span class="preprocessor">#ifdef NFP_DEBUG</span></div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    <a class="code" href="geometry_8hpp.html#a1b3334ff50dda25c6e2e8e5a918c180f">DEBUG_VAL</a>(<span class="stringliteral">&quot;touching edges:&quot;</span>);</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;    std::stringstream ss;</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160; </div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;    <span class="keywordflow">for</span>(<span class="keyword">const</span> <span class="keyword">auto</span>&amp; te: touchEdges) {</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;        ss &lt;&lt; te.first &lt;&lt; <span class="stringliteral">&quot; (&quot;</span> &lt;&lt; (te.first.second - te.first.first) &lt;&lt; <span class="stringliteral">&quot;) &lt;-&gt; &quot;</span> &lt;&lt; te.second &lt;&lt; <span class="stringliteral">&quot; (&quot;</span> &lt;&lt; (te.second.second - te.second.first) &lt;&lt; <span class="charliteral">&#39;)&#39;</span>;</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;        <a class="code" href="geometry_8hpp.html#a1b3334ff50dda25c6e2e8e5a918c180f">DEBUG_VAL</a>(ss.str());</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;        ss.str(<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;    }</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</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="l00137"></a><span class="lineno">  137</span>&#160; </div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    <a class="code" href="geometry_8hpp.html#a1b3334ff50dda25c6e2e8e5a918c180f">DEBUG_VAL</a>(<span class="stringliteral">&quot;potential vectors:&quot;</span>);</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    <span class="keywordflow">for</span>(<span class="keyword">const</span> <span class="keyword">auto</span>&amp; pv: potentialVectors) {</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;        <a class="code" href="geometry_8hpp.html#a1b3334ff50dda25c6e2e8e5a918c180f">DEBUG_VAL</a>(pv);</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;    }</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</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="l00143"></a><span class="lineno">  143</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;    <span class="comment">//discard immediately intersecting translations</span></div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;    std::vector&lt;TranslationVector&gt; vectors;</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;    <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keyword">auto</span>&amp; v : potentialVectors) {</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;        <span class="keywordtype">bool</span> discarded = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;        <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keyword">auto</span>&amp; sp : touchEdges) {</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;            <a class="code" href="classlibnfporb_1_1point__t.html">point_t</a> normEdge = <a class="code" href="namespacelibnfporb.html#af636c7ca76818797e19b1fbeb4d3f6c1">normalize</a>(v.edge_.second - v.edge_.first);</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;            <a class="code" href="classlibnfporb_1_1point__t.html">point_t</a> normFirst = <a class="code" href="namespacelibnfporb.html#af636c7ca76818797e19b1fbeb4d3f6c1">normalize</a>(sp.first.second - sp.first.first);</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;            <a class="code" href="classlibnfporb_1_1point__t.html">point_t</a> normSecond = <a class="code" href="namespacelibnfporb.html#af636c7ca76818797e19b1fbeb4d3f6c1">normalize</a>(sp.second.second - sp.second.first);</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160; </div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;            <a class="code" href="namespacelibnfporb.html#ab8d12caab4bf53479cc06d350cd5706f">Alignment</a> a1 = <a class="code" href="namespacelibnfporb.html#a821049b74c902ecafa0da3b19464717d">get_alignment</a>( { { 0, 0 }, normEdge }, normFirst);</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;            <a class="code" href="namespacelibnfporb.html#ab8d12caab4bf53479cc06d350cd5706f">Alignment</a> a2 = <a class="code" href="namespacelibnfporb.html#a821049b74c902ecafa0da3b19464717d">get_alignment</a>( { { 0, 0 }, normEdge }, normSecond);</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160; </div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;            <span class="keywordflow">if</span> (a1 == a2 &amp;&amp; a1 != <a class="code" href="namespacelibnfporb.html#ab8d12caab4bf53479cc06d350cd5706fa98c4a453f9446b2ef4ce1d69872826c4">ON</a>) {</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;                <a class="code" href="classlibnfporb_1_1LongDouble.html">LongDouble</a> df = <a class="code" href="namespacelibnfporb.html#ab052a9de439729060daaf49977c4ad4b">get_inner_angle</a>( { 0, 0 }, normEdge, normFirst);</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;                <a class="code" href="classlibnfporb_1_1LongDouble.html">LongDouble</a> ds = <a class="code" href="namespacelibnfporb.html#ab052a9de439729060daaf49977c4ad4b">get_inner_angle</a>( { 0, 0 }, normEdge, normSecond);</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160; </div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;                <a class="code" href="classlibnfporb_1_1point__t.html">point_t</a> normIn = <a class="code" href="namespacelibnfporb.html#af636c7ca76818797e19b1fbeb4d3f6c1">normalize</a>(v.edge_.second - v.edge_.first);</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;                <span class="keywordflow">if</span> (<a class="code" href="namespacelibnfporb.html#a2e318553169d53a7150a00a79bd2762d">equals</a>(df, ds)) {</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;                    <a class="code" href="structlibnfporb_1_1TranslationVector.html">TranslationVector</a> trimmed = <a class="code" href="namespacelibnfporb.html#a2fd421a83d9da2c621d947f3ceba6664">trim_vector</a>(ringA, ringB, v);</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;                    polygon_t::ring_type translated;</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;                    trans::translate_transformer&lt;coord_t, 2, 2&gt; translate(trimmed.<a class="code" href="structlibnfporb_1_1TranslationVector.html#a4c67c4cee95a6c55f7092f4e803ff581">vector_</a>.<a class="code" href="classlibnfporb_1_1point__t.html#aba1e2421386afb0f2cf10dd13faab812">x_</a>, trimmed.<a class="code" href="structlibnfporb_1_1TranslationVector.html#a4c67c4cee95a6c55f7092f4e803ff581">vector_</a>.<a class="code" href="classlibnfporb_1_1point__t.html#ae6f0c323fd4ee211e141aef3aed44f90">y_</a>);</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;                    boost::geometry::transform(ringB, translated, translate);</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;<span class="comment">//                  DEBUG_MSG(&quot;intersects&quot;, bg::intersects(translated, ringA));</span></div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;<span class="comment">//                  DEBUG_MSG(&quot;overlaps&quot;, bg::overlaps(translated, ringA));</span></div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;<span class="comment">//                  DEBUG_MSG(&quot;covered_byL&quot;, bg::covered_by(translated, ringA));</span></div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;<span class="comment">//                  DEBUG_MSG(&quot;covered_byR&quot;, bg::covered_by(ringA, translated));</span></div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160; </div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;                    <span class="keywordflow">if</span> (!(bg::intersects(translated, ringA) &amp;&amp; !bg::overlaps(translated, ringA) &amp;&amp; !bg::covered_by(translated, ringA) &amp;&amp; !bg::covered_by(ringA, translated))) {</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;                        <a class="code" href="geometry_8hpp.html#ae18601ba88bb34208da9e4a0f11fa983">DEBUG_MSG</a>(<span class="stringliteral">&quot;discarded0&quot;</span>, v);</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;                        discarded = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;                        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;                    }</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;                } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;                    <span class="keywordflow">if</span> (<a class="code" href="namespacelibnfporb.html#a2e318553169d53a7150a00a79bd2762d">equals</a>(normIn, <a class="code" href="namespacelibnfporb.html#af636c7ca76818797e19b1fbeb4d3f6c1">normalize</a>(v.vector_))) {</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;                        <span class="keywordflow">if</span> (!<a class="code" href="namespacelibnfporb.html#a2e318553169d53a7150a00a79bd2762d">equals</a>(df, 0) &amp;&amp; <a class="code" href="namespacelibnfporb.html#a3021c2838a351048bd223d1e9a0493c3">larger</a>(ds, df)) {</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;                            <a class="code" href="geometry_8hpp.html#ae18601ba88bb34208da9e4a0f11fa983">DEBUG_MSG</a>(<span class="stringliteral">&quot;discarded1&quot;</span>, v);</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;                            discarded = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;                            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;                        }</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;                    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;                        <span class="keywordflow">if</span> (!<a class="code" href="namespacelibnfporb.html#a2e318553169d53a7150a00a79bd2762d">equals</a>(ds, 0) &amp;&amp; <a class="code" href="namespacelibnfporb.html#a4bf253739214a0da53cfc62291c36a5f">smaller</a>(ds, df)) {</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;                            <a class="code" href="geometry_8hpp.html#ae18601ba88bb34208da9e4a0f11fa983">DEBUG_MSG</a>(<span class="stringliteral">&quot;discarded2&quot;</span>, v);</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;                            discarded = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;                            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;                        }</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;                    }</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;                }</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;            }</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;        }</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;        <span class="keywordflow">if</span> (!discarded) {</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;            vectors.push_back(v);</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;        }</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;    }</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;    <span class="keywordflow">return</span> vectors;</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;}</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160; </div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;}</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160; </div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160; </div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* SRC_ALGO_FIND_FEASIBLE_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="aclasslibnfporb_1_1point__t_html"><div class="ttname"><a href="classlibnfporb_1_1point__t.html">libnfporb::point_t</a></div><div class="ttdef"><b>Definition:</b> geometry.hpp:292</div></div>
<div class="ttc" id="aclasslibnfporb_1_1point__t_html_a1e1e8047919984dc7fe1f9a9c572cc05"><div class="ttname"><a href="classlibnfporb_1_1point__t.html#a1e1e8047919984dc7fe1f9a9c572cc05">libnfporb::point_t::marked_</a></div><div class="ttdeci">bool marked_</div><div class="ttdef"><b>Definition:</b> geometry.hpp:300</div></div>
<div class="ttc" id="aclasslibnfporb_1_1point__t_html_aba1e2421386afb0f2cf10dd13faab812"><div class="ttname"><a href="classlibnfporb_1_1point__t.html#aba1e2421386afb0f2cf10dd13faab812">libnfporb::point_t::x_</a></div><div class="ttdeci">coord_t x_</div><div class="ttdef"><b>Definition:</b> geometry.hpp:301</div></div>
<div class="ttc" id="aclasslibnfporb_1_1point__t_html_ae6f0c323fd4ee211e141aef3aed44f90"><div class="ttname"><a href="classlibnfporb_1_1point__t.html#ae6f0c323fd4ee211e141aef3aed44f90">libnfporb::point_t::y_</a></div><div class="ttdeci">coord_t y_</div><div class="ttdef"><b>Definition:</b> geometry.hpp:302</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_a2e318553169d53a7150a00a79bd2762d"><div class="ttname"><a href="namespacelibnfporb.html#a2e318553169d53a7150a00a79bd2762d">libnfporb::equals</a></div><div class="ttdeci">bool equals(const LongDouble &amp;lhs, const LongDouble &amp;rhs)</div><div class="ttdef"><b>Definition:</b> geometry.hpp:446</div></div>
<div class="ttc" id="anamespacelibnfporb_html_a2fd421a83d9da2c621d947f3ceba6664"><div class="ttname"><a href="namespacelibnfporb.html#a2fd421a83d9da2c621d947f3ceba6664">libnfporb::trim_vector</a></div><div class="ttdeci">TranslationVector trim_vector(const polygon_t::ring_type &amp;rA, const polygon_t::ring_type &amp;rB, const TranslationVector &amp;tv)</div><div class="ttdoc">Trim a given translation vector so that it doesn't intersect with either rA or rB.</div><div class="ttdef"><b>Definition:</b> trim_vector.hpp:16</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_a4bf253739214a0da53cfc62291c36a5f"><div class="ttname"><a href="namespacelibnfporb.html#a4bf253739214a0da53cfc62291c36a5f">libnfporb::smaller</a></div><div class="ttdeci">bool smaller(const LongDouble &amp;lhs, const LongDouble &amp;rhs)</div><div class="ttdef"><b>Definition:</b> geometry.hpp:455</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_a821049b74c902ecafa0da3b19464717d"><div class="ttname"><a href="namespacelibnfporb.html#a821049b74c902ecafa0da3b19464717d">libnfporb::get_alignment</a></div><div class="ttdeci">Alignment get_alignment(const segment_t &amp;seg, const point_t &amp;pt)</div><div class="ttdef"><b>Definition:</b> geometry.hpp:531</div></div>
<div class="ttc" id="anamespacelibnfporb_html_a83ffffdc4e4235604aa207e82bbb4eab"><div class="ttname"><a href="namespacelibnfporb.html#a83ffffdc4e4235604aa207e82bbb4eab">libnfporb::psize_t</a></div><div class="ttdeci">polygon_t::ring_type::size_type psize_t</div><div class="ttdef"><b>Definition:</b> geometry.hpp:497</div></div>
<div class="ttc" id="anamespacelibnfporb_html_ab052a9de439729060daaf49977c4ad4b"><div class="ttname"><a href="namespacelibnfporb.html#ab052a9de439729060daaf49977c4ad4b">libnfporb::get_inner_angle</a></div><div class="ttdeci">long double get_inner_angle(const point_t &amp;joint, const point_t &amp;end1, const point_t &amp;end2)</div><div class="ttdef"><b>Definition:</b> geometry.hpp:544</div></div>
<div class="ttc" id="anamespacelibnfporb_html_ab8d12caab4bf53479cc06d350cd5706f"><div class="ttname"><a href="namespacelibnfporb.html#ab8d12caab4bf53479cc06d350cd5706f">libnfporb::Alignment</a></div><div class="ttdeci">Alignment</div><div class="ttdef"><b>Definition:</b> geometry.hpp:525</div></div>
<div class="ttc" id="anamespacelibnfporb_html_ab8d12caab4bf53479cc06d350cd5706fa3fb8da88633a285b8fca71c579077015"><div class="ttname"><a href="namespacelibnfporb.html#ab8d12caab4bf53479cc06d350cd5706fa3fb8da88633a285b8fca71c579077015">libnfporb::RIGHT</a></div><div class="ttdeci">@ RIGHT</div><div class="ttdef"><b>Definition:</b> geometry.hpp:527</div></div>
<div class="ttc" id="anamespacelibnfporb_html_ab8d12caab4bf53479cc06d350cd5706fa98c4a453f9446b2ef4ce1d69872826c4"><div class="ttname"><a href="namespacelibnfporb.html#ab8d12caab4bf53479cc06d350cd5706fa98c4a453f9446b2ef4ce1d69872826c4">libnfporb::ON</a></div><div class="ttdeci">@ ON</div><div class="ttdef"><b>Definition:</b> geometry.hpp:528</div></div>
<div class="ttc" id="anamespacelibnfporb_html_ab8d12caab4bf53479cc06d350cd5706faad2f75e6345098a73fba38cae5ad5703"><div class="ttname"><a href="namespacelibnfporb.html#ab8d12caab4bf53479cc06d350cd5706faad2f75e6345098a73fba38cae5ad5703">libnfporb::LEFT</a></div><div class="ttdeci">@ LEFT</div><div class="ttdef"><b>Definition:</b> geometry.hpp:526</div></div>
<div class="ttc" id="anamespacelibnfporb_html_adadba4ed8bed6e50b03cca5112dc4c6a"><div class="ttname"><a href="namespacelibnfporb.html#adadba4ed8bed6e50b03cca5112dc4c6a">libnfporb::find_feasible_translation_vectors</a></div><div class="ttdeci">std::vector&lt; TranslationVector &gt; find_feasible_translation_vectors(polygon_t::ring_type &amp;ringA, polygon_t::ring_type &amp;ringB, const std::vector&lt; TouchingPoint &gt; &amp;touchers)</div><div class="ttdef"><b>Definition:</b> find_feasible.hpp:17</div></div>
<div class="ttc" id="anamespacelibnfporb_html_aefa8e61428bb5385bf8a62bb0a17cdd8"><div class="ttname"><a href="namespacelibnfporb.html#aefa8e61428bb5385bf8a62bb0a17cdd8">libnfporb::write_svg</a></div><div class="ttdeci">void write_svg(std::string const &amp;filename, const std::vector&lt; segment_t &gt; &amp;segments)</div><div class="ttdoc">Writes segments to a svg file.</div><div class="ttdef"><b>Definition:</b> svg.hpp:49</div></div>
<div class="ttc" id="anamespacelibnfporb_html_af636c7ca76818797e19b1fbeb4d3f6c1"><div class="ttname"><a href="namespacelibnfporb.html#af636c7ca76818797e19b1fbeb4d3f6c1">libnfporb::normalize</a></div><div class="ttdeci">point_t normalize(const point_t &amp;vec)</div><div class="ttdef"><b>Definition:</b> geometry.hpp:503</div></div>
<div class="ttc" id="astructlibnfporb_1_1TouchingPoint_html_afe317e8d33a5392facc07934748ae3f5a03f232c73ef66c6bf1850f06b9b35cd1"><div class="ttname"><a href="structlibnfporb_1_1TouchingPoint.html#afe317e8d33a5392facc07934748ae3f5a03f232c73ef66c6bf1850f06b9b35cd1">libnfporb::TouchingPoint::B_ON_A</a></div><div class="ttdeci">@ B_ON_A</div><div class="ttdoc">B_ON_A.</div><div class="ttdef"><b>Definition:</b> touching_point.hpp:21</div></div>
<div class="ttc" id="astructlibnfporb_1_1TouchingPoint_html_afe317e8d33a5392facc07934748ae3f5a4c8372a94c69e5b0e1ebfa11b89a4ecf"><div class="ttname"><a href="structlibnfporb_1_1TouchingPoint.html#afe317e8d33a5392facc07934748ae3f5a4c8372a94c69e5b0e1ebfa11b89a4ecf">libnfporb::TouchingPoint::VERTEX</a></div><div class="ttdeci">@ VERTEX</div><div class="ttdoc">VERTEX.</div><div class="ttdef"><b>Definition:</b> touching_point.hpp:19</div></div>
<div class="ttc" id="astructlibnfporb_1_1TouchingPoint_html_afe317e8d33a5392facc07934748ae3f5afc9b5dd72baef51ad1c3b7267d7424b5"><div class="ttname"><a href="structlibnfporb_1_1TouchingPoint.html#afe317e8d33a5392facc07934748ae3f5afc9b5dd72baef51ad1c3b7267d7424b5">libnfporb::TouchingPoint::A_ON_B</a></div><div class="ttdeci">@ A_ON_B</div><div class="ttdoc">A_ON_B.</div><div class="ttdef"><b>Definition:</b> touching_point.hpp:20</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 class="ttc" id="atouching__point_8hpp_html"><div class="ttname"><a href="touching__point_8hpp.html">touching_point.hpp</a></div></div>
<div class="ttc" id="atrim__vector_8hpp_html"><div class="ttname"><a href="trim__vector_8hpp.html">trim_vector.hpp</a></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>
