diff --git a/gtsam/geometry/Point2.h b/gtsam/geometry/Point2.h index 01a6d6052..6f4f93cf9 100644 --- a/gtsam/geometry/Point2.h +++ b/gtsam/geometry/Point2.h @@ -165,12 +165,12 @@ public: /// @{ inline void operator += (const Point2& q) {x_+=q.x_;y_+=q.y_;} inline void operator *= (double s) {x_*=s;y_*=s;} - Point2 inverse() { return -(*this);} - Point2 compose(const Point2& q) { return (*this)+q;} - Point2 between(const Point2& q) { return q-(*this);} - Vector2 localCoordinates(const Point2& q) { return between(q).vector();} - Point2 retract(const Vector2& v) {return compose(Point2(v));} - static Vector2 Logmap(const Point2& p) {return p.vector();} + Point2 inverse() const { return -(*this);} + Point2 compose(const Point2& q) const { return (*this)+q;} + Point2 between(const Point2& q) const { return q-(*this);} + Vector2 localCoordinates(const Point2& q) const { return between(q).vector();} + Point2 retract(const Vector2& v) const { return compose(Point2(v));} + static Vector2 Logmap(const Point2& p) { return p.vector();} static Point2 Expmap(const Vector2& v) { return Point2(v);} /// @} diff --git a/gtsam/geometry/Point3.h b/gtsam/geometry/Point3.h index 5b133dc60..c9dee9003 100644 --- a/gtsam/geometry/Point3.h +++ b/gtsam/geometry/Point3.h @@ -164,12 +164,12 @@ namespace gtsam { /// @name Deprecated /// @{ - Point3 inverse() { return -(*this);} - Point3 compose(const Point3& q) { return (*this)+q;} - Point3 between(const Point3& q) { return q-(*this);} - Vector3 localCoordinates(const Point3& q) { return between(q).vector();} - Point3 retract(const Vector3& v) {return compose(Point3(v));} - static Vector3 Logmap(const Point3& p) {return p.vector();} + Point3 inverse() const { return -(*this);} + Point3 compose(const Point3& q) const { return (*this)+q;} + Point3 between(const Point3& q) const { return q-(*this);} + Vector3 localCoordinates(const Point3& q) const { return between(q).vector();} + Point3 retract(const Vector3& v) const { return compose(Point3(v));} + static Vector3 Logmap(const Point3& p) { return p.vector();} static Point3 Expmap(const Vector3& v) { return Point3(v);} /// @}