diff options
author | 2013-07-28 19:31:33 +0200 | |
---|---|---|
committer | 2013-07-28 19:31:33 +0200 | |
commit | dd27b5c4a85f6a7b67424ab0ad249e2c1fab88a4 (patch) | |
tree | 767e469b5a23d8ab39cade7e4e76d3c1a7a31e1d | |
parent | 70131120abc723eb6e09c9066bee81a0b42335ae (diff) |
Fixed dummy_precision evaluation.
-rw-r--r-- | Eigen/src/Eigen2Support/Geometry/AngleAxis.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/Eigen2Support/Geometry/AngleAxis.h b/Eigen/src/Eigen2Support/Geometry/AngleAxis.h index 9f48c460b..a0b4ac44e 100644 --- a/Eigen/src/Eigen2Support/Geometry/AngleAxis.h +++ b/Eigen/src/Eigen2Support/Geometry/AngleAxis.h @@ -76,7 +76,7 @@ public: using std::sqrt; using std::abs; // since we compare against 1, this is equal to computing the relative error - eigen_assert( abs(m_axis.derived().squaredNorm() - 1) < sqrt( dummy_precision<Scalar>() ) ); + eigen_assert( abs(m_axis.derived().squaredNorm() - 1) < sqrt( NumTraits<Scalar>::dummy_precision() ) ); } /** Constructs and initialize the angle-axis rotation from a quaternion \a q. */ @@ -180,7 +180,7 @@ AngleAxis<Scalar>& AngleAxis<Scalar>::operator=(const QuaternionType& q) using std::sqrt; using std::abs; // since we compare against 1, this is equal to computing the relative error - eigen_assert( abs(m_axis.derived().squaredNorm() - 1) < sqrt( dummy_precision<Scalar>() ) ); + eigen_assert( abs(m_axis.derived().squaredNorm() - 1) < sqrt( NumTraits<Scalar>::dummy_precision() ) ); } return *this; } |