title: Minimum bounding rectangle of polygon
body: <p>Let's say we have a class/struct Point</p>
  
  <pre><code>class Point
  {
   int x;
  int y;
  }
  </code></pre>
  
  <p>and a class Polygon that contains list of Points</p>
  
  <pre><code>class Polygon
  {
    List&lt;Point&gt; points;
  
    Path(List&lt;Point&gt; points)
    {
    //some implementation
    }
  }
  </code></pre>
  
  <p>I am interested in finding the Minimal bounding rectangle points of the Polygon(<a href="https://en.wikipedia.org/wiki/Minimum_bounding_rectangle" rel="nofollow noreferrer">https://en.wikipedia.org/wiki/Minimum_bounding_rectangle</a>).  The found minimal bounding rectangle sides might not be parallel to both axis , so I am trying to find an algorithm written in Java,C#,C++ .Can anyone propose or link such a solution, thanks!</p>