From 7ecd0ad05be054a9d98ac8ee8edd90d501e07105 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Thu, 2 Jan 2025 07:24:28 +0000 Subject: [PATCH] fix max --- .../include/CGAL/Frechet_distance/internal/filter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Frechet_distance/include/CGAL/Frechet_distance/internal/filter.h b/Frechet_distance/include/CGAL/Frechet_distance/internal/filter.h index 835e75cf6753..f69eb4a5f3df 100644 --- a/Frechet_distance/include/CGAL/Frechet_distance/internal/filter.h +++ b/Frechet_distance/include/CGAL/Frechet_distance/internal/filter.h @@ -158,7 +158,7 @@ bool Filter::bichromaticFarthestDistance() typename Curve::IFT squared_max_dist = 0; for (int i = 0; i < K::dimension; ++i) { auto d1 = CGAL::square(typename Curve::IFT((bbox1.max)(i)) - typename Curve::IFT((bbox2.min)(i))); - auto d2 = CGAL::square(typename Curve::IFT((bbox2.max(i))) - typename Curve::IFT((bbox1.min)(i))); + auto d2 = CGAL::square(typename Curve::IFT((bbox2.max)(i)) - typename Curve::IFT((bbox1.min)(i))); squared_max_dist += (CGAL::max)(d1, d2); }