From 546ab87feb8b172d3552bc1bcd2f4db1db3c554d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Fri, 22 Oct 2021 17:28:48 +0200 Subject: [PATCH] add backward compatibility internal functions --- .../Intersections_2/Segment_2_Segment_2.h | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Intersections_2/include/CGAL/Intersections_2/Segment_2_Segment_2.h b/Intersections_2/include/CGAL/Intersections_2/Segment_2_Segment_2.h index d7494b3892d..eeff672e407 100644 --- a/Intersections_2/include/CGAL/Intersections_2/Segment_2_Segment_2.h +++ b/Intersections_2/include/CGAL/Intersections_2/Segment_2_Segment_2.h @@ -113,6 +113,17 @@ seg_seg_do_intersect_crossing( return S2S2_inter_info(false); } +// used internally by Arr_segment_traits_2template +template +bool +seg_seg_do_intersect_crossing( + const typename K::Point_2& p1, const typename K::Point_2& p2, + const typename K::Point_2& p3, const typename K::Point_2& p4, + const K& k) +{ + return seg_seg_do_intersect_crossing(p1,p2,p3,p4,0,0,0,0,k,false).inter; +} + // lexicographic order of points p1 < p3 < p4 < p2, with segments (p1,p2) and (p3,p4) template @@ -157,6 +168,16 @@ seg_seg_do_intersect_contained( return S2S2_inter_info(false); } +// used internally by Arr_segment_traits_2 +template +bool +seg_seg_do_intersect_contained( + const typename K::Point_2& p1, const typename K::Point_2& p2, + const typename K::Point_2& p3, const typename K::Point_2& p4, + const K& k) +{ + return seg_seg_do_intersect_contained(p1,p2,p3,p4,0,0,0,0,k,false).inter; +} template S2S2_inter_info