title: Gift wrapping algorithm
body: <p>I saved group of points on my panel to <code>List&lt;MyVector&gt; savedPoints</code>, then I calculated the the point with lowest coordinate y : </p>
  
  <pre><code> public void searchLowest()  
      {
          MyVector temp;
          double ylon = savedPoints[0].getY();
          for (int i = 0; i &lt; savedPoints.Count; i++)
          {
              if (savedPoints[i].getY() &gt; ylon)
              {
                  ylon = savedPoints[i].getY();
                  lowest = i;
              }
          }
  
          temp = savedPoints[lowest];
      }
  </code></pre>
  
  <p>after this I made a method to calculate polar angles :</p>
  
  <pre><code>public static double angle(MyVector vec1, MyVector vec2) 
          {
              double angle = Math.Atan2(vec1.getY() - vec2.getY(), vec1.getX() - vec2.getX());
              return angle;
          }
  </code></pre>
  
  <p>now don't know how to use Gift wrapping algorithm in my case. The pseudocode on WikiPedia <a href="http://en.wikipedia.org/wiki/Gift_wrapping_algorithm" rel="nofollow">link</a> is not really understandable for me, so I'm asking for help here.</p>
  
  <p>I'm using C# and win forms (net.framework 4.0)</p>
  
  <p>Thanks for any help.</p>