From 6a3d64c89666425077f5aef63f83dbfc22234c0d Mon Sep 17 00:00:00 2001 From: Manohar Paluri Date: Wed, 26 Aug 2009 18:04:52 +0000 Subject: [PATCH] Added const verifiers for member functions of the class which are compatible --- cpp/Pose3.cpp | 2 +- cpp/Pose3.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/Pose3.cpp b/cpp/Pose3.cpp index c4a139b62..f791cad09 100644 --- a/cpp/Pose3.cpp +++ b/cpp/Pose3.cpp @@ -101,7 +101,7 @@ bool assert_equal(const Pose3& A, const Pose3& B, double tol) } /* ************************************************************************* */ -Pose3 Pose3::transformPose_to(const Pose3& transform) +Pose3 Pose3::transformPose_to(const Pose3& transform) const { Rot3 cRv = rotation() * Rot3(transform.rotation().inverse()); Point3 t = transform_to(transform, translation()); diff --git a/cpp/Pose3.h b/cpp/Pose3.h index 0ec0819a7..cf5fb4b49 100644 --- a/cpp/Pose3.h +++ b/cpp/Pose3.h @@ -73,7 +73,7 @@ public: } /** transforms */ - Pose3 transformPose_to(const Pose3& transform); + Pose3 transformPose_to(const Pose3& transform) const; /** assert equality up to a tolerance */ bool equals(const Pose3& pose, double tol=1e-9) const;