diff options
author | David Tellenbach <david.tellenbach@me.com> | 2020-10-09 02:05:05 +0200 |
---|---|---|
committer | David Tellenbach <david.tellenbach@me.com> | 2020-10-09 02:05:05 +0200 |
commit | 4091f6b25c5ad0ca3f7c00bd82bfd7ca1bbedee3 (patch) | |
tree | c464c196d1f0f125532d2a162c99b80c00fb7255 /Eigen/src/Geometry/Rotation2D.h | |
parent | 183a208212353ccf81a664d25dc7660b6269acdd (diff) |
Drop EIGEN_USING_STD_MATH in favour of EIGEN_USING_STD
Diffstat (limited to 'Eigen/src/Geometry/Rotation2D.h')
-rw-r--r-- | Eigen/src/Geometry/Rotation2D.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Eigen/src/Geometry/Rotation2D.h b/Eigen/src/Geometry/Rotation2D.h index 884b7d0ee..d0bd57569 100644 --- a/Eigen/src/Geometry/Rotation2D.h +++ b/Eigen/src/Geometry/Rotation2D.h @@ -175,7 +175,7 @@ template<typename Scalar> template<typename Derived> EIGEN_DEVICE_FUNC Rotation2D<Scalar>& Rotation2D<Scalar>::fromRotationMatrix(const MatrixBase<Derived>& mat) { - EIGEN_USING_STD_MATH(atan2) + EIGEN_USING_STD(atan2) EIGEN_STATIC_ASSERT(Derived::RowsAtCompileTime==2 && Derived::ColsAtCompileTime==2,YOU_MADE_A_PROGRAMMING_MISTAKE) m_angle = atan2(mat.coeff(1,0), mat.coeff(0,0)); return *this; @@ -187,8 +187,8 @@ template<typename Scalar> typename Rotation2D<Scalar>::Matrix2 EIGEN_DEVICE_FUNC Rotation2D<Scalar>::toRotationMatrix(void) const { - EIGEN_USING_STD_MATH(sin) - EIGEN_USING_STD_MATH(cos) + EIGEN_USING_STD(sin) + EIGEN_USING_STD(cos) Scalar sinA = sin(m_angle); Scalar cosA = cos(m_angle); return (Matrix2() << cosA, -sinA, sinA, cosA).finished(); |