title: Efficient search algorithms to calculate crosssection on set of linesegments
body: <p>I have a large dataset of linesegments. Each linesegment consists of <code>[x-start,x-end]</code>. I'm searching for an efficient algorithms to calculate for a given x position the set of intersecting lines. </p>
  
  <p><a href="https://i.stack.imgur.com/ZoP4b.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZoP4b.gif" alt="enter image description here"></a></p>