Make compile in deprecated mode

release/4.3a0
Frank 2016-06-06 17:12:56 -07:00
parent b2d2301533
commit 0799cda9de
1 changed files with 4 additions and 8 deletions

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* GTSAM Copyright 2010, Georgia Tech Research Corporation, * GTSAM Copyright 2010, Georgia Tech Research Corporation,
* Atlanta, Georgia 30332-0415 * Atlanta, Georgia 30332-0415
* All Rights Reserved * All Rights Reserved
* Authors: Frank Dellaert, et al. (see THANKS for the full author list) * Authors: Frank Dellaert, et al. (see THANKS for the full author list)
@ -42,9 +42,7 @@ public:
// Deprecated default constructor initializes to zero, in contrast to new behavior below // Deprecated default constructor initializes to zero, in contrast to new behavior below
Point2() { setZero(); } Point2() { setZero(); }
#else #else
Point2() { Point2() {}
// throw std::runtime_error("Point2 default");
}
#endif #endif
using Vector2::Vector2; using Vector2::Vector2;
@ -148,16 +146,14 @@ public:
#ifdef GTSAM_ALLOW_DEPRECATED_SINCE_V4 #ifdef GTSAM_ALLOW_DEPRECATED_SINCE_V4
/// @name Deprecated /// @name Deprecated
/// @{ /// @{
inline void operator += (const Point2& q) {x_+=q.x_;y_+=q.y_;} Point2 inverse() const { return -(*this); }
inline void operator *= (double s) {x_*=s;y_*=s;}
Point2 inverse() const { return -(*this);}
Point2 compose(const Point2& q) const { return (*this)+q;} Point2 compose(const Point2& q) const { return (*this)+q;}
Point2 between(const Point2& q) const { return q-(*this);} Point2 between(const Point2& q) const { return q-(*this);}
Vector2 localCoordinates(const Point2& q) const { return between(q);} Vector2 localCoordinates(const Point2& q) const { return between(q);}
Point2 retract(const Vector2& v) const { return compose(Point2(v));} Point2 retract(const Vector2& v) const { return compose(Point2(v));}
static Vector2 Logmap(const Point2& p) { return p;} static Vector2 Logmap(const Point2& p) { return p;}
static Point2 Expmap(const Vector2& v) { return Point2(v);} static Point2 Expmap(const Vector2& v) { return Point2(v);}
inline double dist(const Point2& p2) const {return distance();} inline double dist(const Point2& p2) const {return distance(p2);}
/// @} /// @}
#endif #endif