From 870eaff913921a73ecfe7a627a5adc666adc056b Mon Sep 17 00:00:00 2001 From: artem-ogre Date: Thu, 20 Jun 2024 09:44:51 +0200 Subject: [PATCH] Fix MSVC warning --- CDT/include/Triangulation.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CDT/include/Triangulation.hpp b/CDT/include/Triangulation.hpp index 4b0a8a1..0435939 100644 --- a/CDT/include/Triangulation.hpp +++ b/CDT/include/Triangulation.hpp @@ -1003,8 +1003,8 @@ void Triangulation::addSuperTriangle(const Box2d& box) r *= T(2); } - const T R = T(2) * r; // excircle radius - const T cos_30_deg = 0.8660254037844386; // note: (std::sqrt(3.0) / 2.0) + const T R = T(2) * r; // excircle radius + const T cos_30_deg(0.8660254037844386); // note: (std::sqrt(3.0) / 2.0) const T shiftX = R * cos_30_deg; const V2d posV1 = {center.x - shiftX, center.y - r}; const V2d posV2 = {center.x + shiftX, center.y - r};