mirror of https://github.com/CGAL/cgal
Do not define _USE_MATH_DEFINES
This commit is contained in:
parent
b3e2f204a4
commit
8a248c0da3
|
|
@ -4,8 +4,6 @@
|
||||||
#ifndef P2T2_UNIT_TEST_TYPES_H
|
#ifndef P2T2_UNIT_TEST_TYPES_H
|
||||||
#define 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_2.h>
|
||||||
#include <CGAL/Periodic_2_triangulation_traits_2.h>
|
#include <CGAL/Periodic_2_triangulation_traits_2.h>
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ int main()
|
||||||
vh_midpoint = t.insert(Point(0, 0) + midpoint);
|
vh_midpoint = t.insert(Point(0, 0) + midpoint);
|
||||||
for (int i = 0; i < n; ++i)
|
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);
|
t.remove(vh_midpoint);
|
||||||
assert(t.is_valid(true));
|
assert(t.is_valid(true));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue