From fc9c993a23f73020f2b6da5542e415b01a537a79 Mon Sep 17 00:00:00 2001 From: denizdiktas Date: Thu, 1 Jun 2023 11:39:43 +0300 Subject: [PATCH] Added std:: in front of math functions --- .../include/CGAL/Arr_geodesic_arc_on_sphere_traits_2.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Arrangement_on_surface_2/include/CGAL/Arr_geodesic_arc_on_sphere_traits_2.h b/Arrangement_on_surface_2/include/CGAL/Arr_geodesic_arc_on_sphere_traits_2.h index 76e164ec21d..9812c43c0f3 100644 --- a/Arrangement_on_surface_2/include/CGAL/Arr_geodesic_arc_on_sphere_traits_2.h +++ b/Arrangement_on_surface_2/include/CGAL/Arr_geodesic_arc_on_sphere_traits_2.h @@ -2964,7 +2964,7 @@ public: auto vn = get_approximate_vector_3(n); // normalize the vectors - auto normalize = [](auto& x) { x /= sqrt(x.squared_length()); }; + auto normalize = [](auto& x) { x /= std::sqrt(x.squared_length()); }; normalize(vs); normalize(vt); normalize(vn); @@ -2997,18 +2997,18 @@ public: // compute the number of divisions given the requested error const Approximate_number_type R = 1.0; // radius is always 1 - Approximate_number_type dtheta = 2.0 * acos(1 - error / R); - int N = ceil(theta / dtheta); + Approximate_number_type dtheta = 2.0 * std::acos(1 - error / R); + int N = std::ceil(theta / dtheta); dtheta = theta / N; // generate the points std::vector pts; pts.reserve(N + 1); pts.push_back(vs); - for (int i = 1; i < N; i++) + for (int i = 1; i < N; ++i) { const Approximate_number_type angle = i * dtheta; - auto p = cos(angle) * axisX + sin(angle) * axisY; + auto p = std::cos(angle) * axisX + std::sin(angle) * axisY; pts.push_back(p); } pts.push_back(vt);