Documentation for 2dadbf73f4

This commit is contained in:
github-actions
2024-02-12 20:07:08 +00:00
parent b5b4d78981
commit a1eb9bd385
1261 changed files with 30404 additions and 29974 deletions

View File

@@ -3,16 +3,18 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="generator" content="Doxygen 1.10.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Algorithms_in_C++: SegmentIntersection Struct Reference</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>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript" src="../../cookie.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>
@@ -41,7 +43,7 @@ MathJax.Hub.Config({
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<!-- Generated by Doxygen 1.10.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
@@ -53,7 +55,7 @@ var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('../../',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
$(function() { init_search(); });
});
/* @license-end */
</script>
@@ -71,7 +73,7 @@ $(function() {
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('d4/db4/struct_segment_intersection.html','../../'); initResizable(); });
$(function(){initNavTree('d4/db4/struct_segment_intersection.html','../../'); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
@@ -106,11 +108,11 @@ $(document).ready(function(){initNavTree('d4/db4/struct_segment_intersection.htm
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aefd077282f45bd16799b53f8aa430ffd" id="r_aefd077282f45bd16799b53f8aa430ffd"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/db4/struct_segment_intersection.html#aefd077282f45bd16799b53f8aa430ffd">intersect</a> (<a class="el" href="../../d8/dc8/struct_point.html">Point</a> first_point, <a class="el" href="../../d8/dc8/struct_point.html">Point</a> second_point, <a class="el" href="../../d8/dc8/struct_point.html">Point</a> third_point, <a class="el" href="../../d8/dc8/struct_point.html">Point</a> forth_point)</td></tr>
<tr class="memitem:aefd077282f45bd16799b53f8aa430ffd" id="r_aefd077282f45bd16799b53f8aa430ffd"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aefd077282f45bd16799b53f8aa430ffd">intersect</a> (<a class="el" href="../../d8/dc8/struct_point.html">Point</a> first_point, <a class="el" href="../../d8/dc8/struct_point.html">Point</a> second_point, <a class="el" href="../../d8/dc8/struct_point.html">Point</a> third_point, <a class="el" href="../../d8/dc8/struct_point.html">Point</a> forth_point)</td></tr>
<tr class="separator:aefd077282f45bd16799b53f8aa430ffd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3beb2ac1b35d67354f1dbaf9a971e655" id="r_a3beb2ac1b35d67354f1dbaf9a971e655"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/db4/struct_segment_intersection.html#a3beb2ac1b35d67354f1dbaf9a971e655">direction</a> (<a class="el" href="../../d8/dc8/struct_point.html">Point</a> first_point, <a class="el" href="../../d8/dc8/struct_point.html">Point</a> second_point, <a class="el" href="../../d8/dc8/struct_point.html">Point</a> third_point)</td></tr>
<tr class="memitem:a3beb2ac1b35d67354f1dbaf9a971e655" id="r_a3beb2ac1b35d67354f1dbaf9a971e655"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a3beb2ac1b35d67354f1dbaf9a971e655">direction</a> (<a class="el" href="../../d8/dc8/struct_point.html">Point</a> first_point, <a class="el" href="../../d8/dc8/struct_point.html">Point</a> second_point, <a class="el" href="../../d8/dc8/struct_point.html">Point</a> third_point)</td></tr>
<tr class="separator:a3beb2ac1b35d67354f1dbaf9a971e655"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a008941b2272866c64cdaf959afa939bf" id="r_a008941b2272866c64cdaf959afa939bf"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/db4/struct_segment_intersection.html#a008941b2272866c64cdaf959afa939bf">on_segment</a> (<a class="el" href="../../d8/dc8/struct_point.html">Point</a> first_point, <a class="el" href="../../d8/dc8/struct_point.html">Point</a> second_point, <a class="el" href="../../d8/dc8/struct_point.html">Point</a> third_point)</td></tr>
<tr class="memitem:a008941b2272866c64cdaf959afa939bf" id="r_a008941b2272866c64cdaf959afa939bf"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a008941b2272866c64cdaf959afa939bf">on_segment</a> (<a class="el" href="../../d8/dc8/struct_point.html">Point</a> first_point, <a class="el" href="../../d8/dc8/struct_point.html">Point</a> second_point, <a class="el" href="../../d8/dc8/struct_point.html">Point</a> third_point)</td></tr>
<tr class="separator:a008941b2272866c64cdaf959afa939bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
@@ -128,25 +130,17 @@ Public Member Functions</h2></td></tr>
<tr>
<td class="memname">int SegmentIntersection::direction </td>
<td>(</td>
<td class="paramtype"><a class="el" href="../../d8/dc8/struct_point.html">Point</a>&#160;</td>
<td class="paramname"><em>first_point</em>, </td>
<td class="paramtype"><a class="el" href="../../d8/dc8/struct_point.html">Point</a></td> <td class="paramname"><span class="paramname"><em>first_point</em>, </span></td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="../../d8/dc8/struct_point.html">Point</a>&#160;</td>
<td class="paramname"><em>second_point</em>, </td>
<td class="paramtype"><a class="el" href="../../d8/dc8/struct_point.html">Point</a></td> <td class="paramname"><span class="paramname"><em>second_point</em>, </span></td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="../../d8/dc8/struct_point.html">Point</a>&#160;</td>
<td class="paramname"><em>third_point</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
<td class="paramtype"><a class="el" href="../../d8/dc8/struct_point.html">Point</a></td> <td class="paramname"><span class="paramname"><em>third_point</em></span>&#160;)</td>
</tr>
</table>
</td>
@@ -178,31 +172,22 @@ Public Member Functions</h2></td></tr>
<tr>
<td class="memname">bool SegmentIntersection::intersect </td>
<td>(</td>
<td class="paramtype"><a class="el" href="../../d8/dc8/struct_point.html">Point</a>&#160;</td>
<td class="paramname"><em>first_point</em>, </td>
<td class="paramtype"><a class="el" href="../../d8/dc8/struct_point.html">Point</a></td> <td class="paramname"><span class="paramname"><em>first_point</em>, </span></td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="../../d8/dc8/struct_point.html">Point</a>&#160;</td>
<td class="paramname"><em>second_point</em>, </td>
<td class="paramtype"><a class="el" href="../../d8/dc8/struct_point.html">Point</a></td> <td class="paramname"><span class="paramname"><em>second_point</em>, </span></td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="../../d8/dc8/struct_point.html">Point</a>&#160;</td>
<td class="paramname"><em>third_point</em>, </td>
<td class="paramtype"><a class="el" href="../../d8/dc8/struct_point.html">Point</a></td> <td class="paramname"><span class="paramname"><em>third_point</em>, </span></td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="../../d8/dc8/struct_point.html">Point</a>&#160;</td>
<td class="paramname"><em>forth_point</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
<td class="paramtype"><a class="el" href="../../d8/dc8/struct_point.html">Point</a></td> <td class="paramname"><span class="paramname"><em>forth_point</em></span>&#160;)</td>
</tr>
</table>
</td>
@@ -212,36 +197,36 @@ Public Member Functions</h2></td></tr>
</table>
</div><div class="memdoc">
<div class="fragment"><div class="line"><span class="lineno"> 24</span> {</div>
<div class="line"><span class="lineno"> 25</span> <span class="keywordtype">int</span> direction1 = <a class="code hl_function" href="../../d4/db4/struct_segment_intersection.html#a3beb2ac1b35d67354f1dbaf9a971e655">direction</a>(third_point, forth_point, first_point);</div>
<div class="line"><span class="lineno"> 26</span> <span class="keywordtype">int</span> direction2 = <a class="code hl_function" href="../../d4/db4/struct_segment_intersection.html#a3beb2ac1b35d67354f1dbaf9a971e655">direction</a>(third_point, forth_point, second_point);</div>
<div class="line"><span class="lineno"> 27</span> <span class="keywordtype">int</span> direction3 = <a class="code hl_function" href="../../d4/db4/struct_segment_intersection.html#a3beb2ac1b35d67354f1dbaf9a971e655">direction</a>(first_point, second_point, third_point);</div>
<div class="line"><span class="lineno"> 28</span> <span class="keywordtype">int</span> direction4 = <a class="code hl_function" href="../../d4/db4/struct_segment_intersection.html#a3beb2ac1b35d67354f1dbaf9a971e655">direction</a>(first_point, second_point, forth_point);</div>
<div class="line"><span class="lineno"> 25</span> <span class="keywordtype">int</span> direction1 = <a class="code hl_function" href="#a3beb2ac1b35d67354f1dbaf9a971e655">direction</a>(third_point, forth_point, first_point);</div>
<div class="line"><span class="lineno"> 26</span> <span class="keywordtype">int</span> direction2 = <a class="code hl_function" href="#a3beb2ac1b35d67354f1dbaf9a971e655">direction</a>(third_point, forth_point, second_point);</div>
<div class="line"><span class="lineno"> 27</span> <span class="keywordtype">int</span> direction3 = <a class="code hl_function" href="#a3beb2ac1b35d67354f1dbaf9a971e655">direction</a>(first_point, second_point, third_point);</div>
<div class="line"><span class="lineno"> 28</span> <span class="keywordtype">int</span> direction4 = <a class="code hl_function" href="#a3beb2ac1b35d67354f1dbaf9a971e655">direction</a>(first_point, second_point, forth_point);</div>
<div class="line"><span class="lineno"> 29</span> </div>
<div class="line"><span class="lineno"> 30</span> <span class="keywordflow">if</span> ((direction1 &lt; 0 || direction2 &gt; 0) &amp;&amp;</div>
<div class="line"><span class="lineno"> 31</span> (direction3 &lt; 0 || direction4 &gt; 0))</div>
<div class="line"><span class="lineno"> 32</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><span class="lineno"> 33</span> </div>
<div class="line"><span class="lineno"> 34</span> <span class="keywordflow">else</span> <span class="keywordflow">if</span> (direction1 == 0 &amp;&amp;</div>
<div class="line"><span class="lineno"> 35</span> <a class="code hl_function" href="../../d4/db4/struct_segment_intersection.html#a008941b2272866c64cdaf959afa939bf">on_segment</a>(third_point, forth_point, first_point))</div>
<div class="line"><span class="lineno"> 35</span> <a class="code hl_function" href="#a008941b2272866c64cdaf959afa939bf">on_segment</a>(third_point, forth_point, first_point))</div>
<div class="line"><span class="lineno"> 36</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><span class="lineno"> 37</span> </div>
<div class="line"><span class="lineno"> 38</span> <span class="keywordflow">else</span> <span class="keywordflow">if</span> (direction2 == 0 &amp;&amp;</div>
<div class="line"><span class="lineno"> 39</span> <a class="code hl_function" href="../../d4/db4/struct_segment_intersection.html#a008941b2272866c64cdaf959afa939bf">on_segment</a>(third_point, forth_point, second_point))</div>
<div class="line"><span class="lineno"> 39</span> <a class="code hl_function" href="#a008941b2272866c64cdaf959afa939bf">on_segment</a>(third_point, forth_point, second_point))</div>
<div class="line"><span class="lineno"> 40</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><span class="lineno"> 41</span> </div>
<div class="line"><span class="lineno"> 42</span> <span class="keywordflow">else</span> <span class="keywordflow">if</span> (direction3 == 0 &amp;&amp;</div>
<div class="line"><span class="lineno"> 43</span> <a class="code hl_function" href="../../d4/db4/struct_segment_intersection.html#a008941b2272866c64cdaf959afa939bf">on_segment</a>(first_point, second_point, third_point))</div>
<div class="line"><span class="lineno"> 43</span> <a class="code hl_function" href="#a008941b2272866c64cdaf959afa939bf">on_segment</a>(first_point, second_point, third_point))</div>
<div class="line"><span class="lineno"> 44</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><span class="lineno"> 45</span> </div>
<div class="line"><span class="lineno"> 46</span> <span class="keywordflow">else</span> <span class="keywordflow">if</span> (direction3 == 0 &amp;&amp;</div>
<div class="line"><span class="lineno"> 47</span> <a class="code hl_function" href="../../d4/db4/struct_segment_intersection.html#a008941b2272866c64cdaf959afa939bf">on_segment</a>(first_point, second_point, forth_point))</div>
<div class="line"><span class="lineno"> 47</span> <a class="code hl_function" href="#a008941b2272866c64cdaf959afa939bf">on_segment</a>(first_point, second_point, forth_point))</div>
<div class="line"><span class="lineno"> 48</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><span class="lineno"> 49</span> </div>
<div class="line"><span class="lineno"> 50</span> <span class="keywordflow">else</span></div>
<div class="line"><span class="lineno"> 51</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><span class="lineno"> 52</span> }</div>
<div class="ttc" id="astruct_segment_intersection_html_a008941b2272866c64cdaf959afa939bf"><div class="ttname"><a href="../../d4/db4/struct_segment_intersection.html#a008941b2272866c64cdaf959afa939bf">SegmentIntersection::on_segment</a></div><div class="ttdeci">bool on_segment(Point first_point, Point second_point, Point third_point)</div><div class="ttdef"><b>Definition</b> line_segment_intersection.cpp:75</div></div>
<div class="ttc" id="astruct_segment_intersection_html_a3beb2ac1b35d67354f1dbaf9a971e655"><div class="ttname"><a href="../../d4/db4/struct_segment_intersection.html#a3beb2ac1b35d67354f1dbaf9a971e655">SegmentIntersection::direction</a></div><div class="ttdeci">int direction(Point first_point, Point second_point, Point third_point)</div><div class="ttdef"><b>Definition</b> line_segment_intersection.cpp:63</div></div>
<div class="ttc" id="astruct_segment_intersection_html_a008941b2272866c64cdaf959afa939bf"><div class="ttname"><a href="#a008941b2272866c64cdaf959afa939bf">SegmentIntersection::on_segment</a></div><div class="ttdeci">bool on_segment(Point first_point, Point second_point, Point third_point)</div><div class="ttdef"><b>Definition</b> line_segment_intersection.cpp:75</div></div>
<div class="ttc" id="astruct_segment_intersection_html_a3beb2ac1b35d67354f1dbaf9a971e655"><div class="ttname"><a href="#a3beb2ac1b35d67354f1dbaf9a971e655">SegmentIntersection::direction</a></div><div class="ttdeci">int direction(Point first_point, Point second_point, Point third_point)</div><div class="ttdef"><b>Definition</b> line_segment_intersection.cpp:63</div></div>
</div><!-- fragment -->
</div>
</div>
@@ -257,25 +242,17 @@ Public Member Functions</h2></td></tr>
<tr>
<td class="memname">bool SegmentIntersection::on_segment </td>
<td>(</td>
<td class="paramtype"><a class="el" href="../../d8/dc8/struct_point.html">Point</a>&#160;</td>
<td class="paramname"><em>first_point</em>, </td>
<td class="paramtype"><a class="el" href="../../d8/dc8/struct_point.html">Point</a></td> <td class="paramname"><span class="paramname"><em>first_point</em>, </span></td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="../../d8/dc8/struct_point.html">Point</a>&#160;</td>
<td class="paramname"><em>second_point</em>, </td>
<td class="paramtype"><a class="el" href="../../d8/dc8/struct_point.html">Point</a></td> <td class="paramname"><span class="paramname"><em>second_point</em>, </span></td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="../../d8/dc8/struct_point.html">Point</a>&#160;</td>
<td class="paramname"><em>third_point</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
<td class="paramtype"><a class="el" href="../../d8/dc8/struct_point.html">Point</a></td> <td class="paramname"><span class="paramname"><em>third_point</em></span>&#160;)</td>
</tr>
</table>
</td>
@@ -314,7 +291,7 @@ Here is the call graph for this function:</div>
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="../../d4/db4/struct_segment_intersection.html">SegmentIntersection</a></li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8 </li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0 </li>
</ul>
</div>
</body>