Replace all M_PI by EIGEN_PI and add a check to the testsuite.

This commit is contained in:
Christoph Hertzberg
2016-03-23 15:37:45 +01:00
parent 28e02996df
commit 9642fd7a93
6 changed files with 13 additions and 13 deletions

View File

@@ -24,7 +24,7 @@ void test2dRotation(double tol)
s = std::sin(angle);
B << c, s, -s, c;
C = Apow(std::ldexp(angle,1) / M_PI);
C = Apow(std::ldexp(angle,1) / EIGEN_PI);
std::cout << "test2dRotation: i = " << i << " error powerm = " << relerr(C,B) << '\n';
VERIFY(C.isApprox(B, tol));
}