From a5c655c36aadf0fa443e8f21f100aed0e6a01794 Mon Sep 17 00:00:00 2001 From: Efi Fogel Date: Thu, 13 Feb 2003 17:55:28 +0000 Subject: [PATCH] typo --- .../CGAL/Arr_segment_cached_traits_2.h | 22 ++++++------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/Packages/Arrangement/include/CGAL/Arr_segment_cached_traits_2.h b/Packages/Arrangement/include/CGAL/Arr_segment_cached_traits_2.h index 5e636de5cce..e1618c2b16c 100644 --- a/Packages/Arrangement/include/CGAL/Arr_segment_cached_traits_2.h +++ b/Packages/Arrangement/include/CGAL/Arr_segment_cached_traits_2.h @@ -618,14 +618,10 @@ public: return (false); if (! is_overlap) - { return (compare_xy_2_object()(ip1, p) == LARGER); - } - else - { - // Since always ip1 < ip2. - return (compare_xy_2_object()(ip2, p) == LARGER); - } + + // Since always ip1 < ip2. + return (compare_xy_2_object()(ip2, p) == LARGER); } /*! do_intersect_to_left() compares the location of the intersection @@ -646,14 +642,10 @@ public: return (false); if (! is_overlap) - { return (compare_xy_2_object()(ip1, p) == SMALLER); - } - else - { - // Since always ip1 < ip2. - return (compare_xy_2_object()(ip1, p) == SMALLER); - } + + // Since always ip1 < ip2. + return (compare_xy_2_object()(ip1, p) == SMALLER); } /*! nearest_intersection_to_right() finds the nearest intersection point of @@ -953,7 +945,7 @@ private: } // Check if the intersection segment has not become a point. - is_overlap = (comp_xy(p1,p2) == EQUAL); + is_overlap = (comp_xy(p1,p2) != EQUAL); CGAL_assertion(comp_xy(p1,p2) != LARGER); return (true); }