Documentation for fb5e00f5fb

This commit is contained in:
github-actions
2020-10-31 06:41:30 +00:00
parent 692390090b
commit 407e656e97
219 changed files with 6898 additions and 5393 deletions

View File

@@ -137,7 +137,7 @@ Functions</h2></td></tr>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Implementation of <a href="https://en.wikipedia.org/wiki/Gift_wrapping_algorithm">Jarviss</a> algorithm. </p>
<p>Given a set of points in the plane. the convex hull of the set is the smallest convex polygon that contains all the points of it.</p>
<h3><a class="anchor" id="autotoc_md53"></a>
<h3><a class="anchor" id="autotoc_md54"></a>
Algorithm</h3>
<p>The idea of Jarviss Algorithm is simple, we start from the leftmost point (or point with minimum x coordinate value) and we keep wrapping points in counterclockwise direction.</p>
<p>The idea is to use orientation() here. Next point is selected as the point that beats all other points at counterclockwise orientation, i.e., next point is q if for any other point r, we have “orientation(p, q, r) = counterclockwise”.</p>