Skip to content

Commit

Permalink
Replace non-portable M_PI with constansts::pi()
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanCurtis-TRI committed Feb 24, 2020
1 parent 4726598 commit 2ec3137
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,8 @@ GTEST_TEST(FCL_GJK_EPA, faceNormalPointingOutwardOriginNearFace1) {
vertices[1] << 0, 1, face0_origin_distance;
vertices[2] << -0.5, -0.5, face0_origin_distance;
vertices[3] << 0, 0, -1;
Eigen::AngleAxis<ccd_real_t> rotation(0.05 * M_PI,
const double kPi = constants<double>::pi();
Eigen::AngleAxis<ccd_real_t> rotation(0.05 * kPi,
Vector3<ccd_real_t>::UnitX());
for (int i = 0; i < 4; ++i) {
vertices[i] = rotation * vertices[i];
Expand Down

0 comments on commit 2ec3137

Please sign in to comment.