Browse Source

missing PI on windows ❄️

Alec Jacobson 2 years ago
parent
commit
e45a7e0868
1 changed files with 2 additions and 1 deletions
  1. 2 1
      tests/include/igl/turning_number.cpp

+ 2 - 1
tests/include/igl/turning_number.cpp

@@ -1,6 +1,7 @@
 #include <test_common.h>
 #include <igl/turning_number.h>
 #include <igl/matlab_format.h>
+#include <igl/PI.h>
 #include <iostream>
 
 TEST_CASE("turning_number: pentagon", "[igl]")
@@ -25,7 +26,7 @@ TEST_CASE("turning_number: heptagram", "[igl]")
   for (int i = 0; i < 7; i++)
   {
       // Multiply by 3 to get the {7/3} skipping pattern
-      double theta = 2.0 * M_PI * (3 * i) / 7;
+      double theta = 2.0 * igl::PI * (3 * i) / 7;
       V(i, 0) = std::cos(theta);
       V(i, 1) = std::sin(theta);
   }