Skip to content

Commit

Permalink
Fix MSVC warning
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-ogre committed Jun 20, 2024
1 parent 870eaff commit 46f1ce1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CDT/include/Triangulation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1003,8 +1003,8 @@ void Triangulation<T, TNearPointLocator>::addSuperTriangle(const Box2d<T>& 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 = T(0.8660254037844386); // note: (std::sqrt(3.0) / 2.0)
const T shiftX = R * cos_30_deg;
const V2d<T> posV1 = {center.x - shiftX, center.y - r};
const V2d<T> posV2 = {center.x + shiftX, center.y - r};
Expand Down

0 comments on commit 46f1ce1

Please sign in to comment.