Alogritm to find overlap between 2 sections
<p>I have 2 sections, each section contains of 2 Points and each point has X and Y.
What is the best way to find the overlap between these 2 sections? (only on the X relevant here)</p>

<pre><code>public class section
{
   double leftPoint;
   double rightPoint;
}
</code></pre>
