Closest Segment under Point</a></h2>
<p>When multiple segments are positioned below point <strong>P</strong>, we need to determine which segment is the closest to <strong>P</strong>. This scenario can be divided into three distinct cases based on the configuration of the segments relative to <strong>P</strong>.</p>
<h3 id="left-case"><a class="header" href="#left-case">Left Case</a></h3>
<p><img src="overlay/extract/segment_under_segment_a.svg" alt="Left Case" /></p>
<p>When both segments share a common lef