Do not define _USE_MATH_DEFINES

This commit is contained in:
Andreas Fabri 2025-10-06 13:47:12 +01:00
parent b3e2f204a4
commit 8a248c0da3
2 changed files with 1 additions and 3 deletions

View File

@ -4,8 +4,6 @@
#ifndef P2T2_UNIT_TEST_TYPES_H
#define P2T2_UNIT_TEST_TYPES_H
#define _USE_MATH_DEFINES
#include <math.h>
#include <CGAL/Periodic_2_triangulation_2.h>
#include <CGAL/Periodic_2_triangulation_traits_2.h>

View File

@ -30,7 +30,7 @@ int main()
vh_midpoint = t.insert(Point(0, 0) + midpoint);
for (int i = 0; i < n; ++i)
{
t.insert(Point(0.3 * sin(i * 1.0 / n * 2 * M_PI), 0.3 * cos(i * 1.0 / n * 2 * M_PI)) + midpoint);
t.insert(Point(0.3 * sin(i * 1.0 / n * 2 * CGAL_PI), 0.3 * cos(i * 1.0 / n * 2 * CGAL_PI)) + midpoint);
}
t.remove(vh_midpoint);
assert(t.is_valid(true));