diff options
author | Gael Guennebaud <g.gael@free.fr> | 2008-10-25 23:10:21 +0000 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2008-10-25 23:10:21 +0000 |
commit | ec0a423862d74cea10e2b33f7b37f43957adb465 (patch) | |
tree | 041c07641467df69289ef429fa7e3ce3a49752ea /Eigen/src/Geometry/Rotation2D.h | |
parent | 505ce85814f9291b7d242ef57582d7b15e673f26 (diff) |
Add isApprox in Geometry module's classes.
Complete unit tests wrt previous commits.
Diffstat (limited to 'Eigen/src/Geometry/Rotation2D.h')
-rw-r--r-- | Eigen/src/Geometry/Rotation2D.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Eigen/src/Geometry/Rotation2D.h b/Eigen/src/Geometry/Rotation2D.h index 8d9bb8b8f..aac7648b1 100644 --- a/Eigen/src/Geometry/Rotation2D.h +++ b/Eigen/src/Geometry/Rotation2D.h @@ -116,6 +116,13 @@ public: { m_angle = other.angle(); } + + /** \returns \c true if \c *this is approximately equal to \a other, within the precision + * determined by \a prec. + * + * \sa MatrixBase::isApprox() */ + bool isApprox(const Rotation2D& other, typename NumTraits<Scalar>::Real prec = precision<Scalar>()) const + { return ei_isApprox(m_angle,other.m_angle, prec); } }; /** \ingroup GeometryModule |