From d36836e1ec9d75034e083ac88d61fff70549000b Mon Sep 17 00:00:00 2001 From: Chris Beall Date: Wed, 10 Jul 2013 20:24:00 +0000 Subject: [PATCH] adding some accessor functions --- gtsam/geometry/StereoPoint2.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/gtsam/geometry/StereoPoint2.h b/gtsam/geometry/StereoPoint2.h index 470c3496f..acaad08d7 100644 --- a/gtsam/geometry/StereoPoint2.h +++ b/gtsam/geometry/StereoPoint2.h @@ -128,9 +128,18 @@ namespace gtsam { /// @name Standard Interface /// @{ + /// get uL + inline double uL() const {return uL_;} + + /// get uR + inline double uR() const {return uR_;} + + /// get v + inline double v() const {return v_;} + /** convert to vector */ - Vector vector() const { - return Vector_(3, uL_, uR_, v_); + Vector3 vector() const { + return Vector3(uL_, uR_, v_); } /** convenient function to get a Point2 from the left image */