1 // Boost.Geometry (aka GGL, Generic Geometry Library)
3 // Copyright (c) 2007-2015 Barend Gehrels, Amsterdam, the Netherlands.
5 // This file was modified by Oracle on 2015, 2016.
6 // Modifications copyright (c) 2015-2016 Oracle and/or its affiliates.
7 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
9 // Use, modification and distribution is subject to the Boost Software License,
10 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
11 // http://www.boost.org/LICENSE_1_0.txt)
13 #ifndef BOOST_GEOMETRY_STRATEGIES_INTERSECTION_RESULT_HPP
14 #define BOOST_GEOMETRY_STRATEGIES_INTERSECTION_RESULT_HPP
16 #if defined(HAVE_MATRIX_AS_STRING)
24 namespace boost { namespace geometry
27 template <typename SegmentRatio>
30 SegmentRatio robust_ra; // TODO this can be renamed now to "ra"
31 SegmentRatio robust_rb;
34 inline fraction_type()
38 template <typename Info>
39 inline void assign(Info const& info)
42 robust_ra = info.robust_ra;
43 robust_rb = info.robust_rb;
46 inline void assign(SegmentRatio const& a, SegmentRatio const& b)
57 \brief return-type for segment-intersection
58 \note Set in intersection_points.hpp, from segment_intersection_info
60 template <typename Point, typename SegmentRatio>
61 struct segment_intersection_points
63 std::size_t count; // The number of intersection points
65 // TODO: combine intersections and fractions in one struct
66 Point intersections[2];
67 fraction_type<SegmentRatio> fractions[2];
68 typedef Point point_type;
70 segment_intersection_points()
75 }} // namespace boost::geometry
78 #endif // BOOST_GEOMETRY_STRATEGIES_INTERSECTION_RESULT_HPP