title: Intersection Line Poly boost geometry
body: <p>I want to calculate the intersection point between a line:</p>
  
  <pre><code>l := direction * x + origin for x e R or x e [0,R+)
  </code></pre>
  
  <p>and a default Boost polygon. In the documentation I only found the possibility to get the intersection with a line Segment (fixed start and end point)</p>
  
  <p>At the moment I am using boost geometry and for intersection :
  <a href="http://www.boost.org/doc/libs/1_57_0/libs/geometry/doc/html/geometry/reference/algorithms/intersection.html" rel="nofollow noreferrer">http://www.boost.org/doc/libs/1_57_0/libs/geometry/doc/html/geometry/reference/algorithms/intersection.html</a></p>
  
  <p>Did I miss anything? Or do you know some boost function which I can use to solve my Problem.</p>
  
  <hr>
  
  <p>I tried a workaround with:</p>
  
  <pre><code>  typedef boost::geometry::model::d2::point_xy&lt;double&gt; Point;
    typedef boost::geometry::model::segment&lt;Point&gt; Segment;
    Segment AB( Point{1,1*std::numeric_limits&lt;double&gt;::lowest()},Point{0,1*std::numeric_limits&lt;double&gt;::max()});
    boost::geometry::model::polygon&lt;Point&gt; poly;
    poly.outer().push_back(Point{0,0});
    poly.outer().push_back(Point{10,0});
    poly.outer().push_back(Point{10,10});
    poly.outer().push_back(Point{0,10});
    poly.outer().push_back(Point{0,0});
    std::vector&lt;Segment&gt; result;
    boost::geometry::intersection(AB,poly,result);
  </code></pre>
  
  <p>I am using boost 1.56 and get the error that this is not implemented yet. Do you know where I can found a list of which intersection are implemented? Or do know have some new idea?</p>