adding some accessor functions

release/4.3a0
Chris Beall 2013-07-10 20:24:00 +00:00
parent ecb24ebd06
commit d36836e1ec
1 changed files with 11 additions and 2 deletions

View File

@ -128,9 +128,18 @@ namespace gtsam {
/// @name Standard Interface /// @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 */ /** convert to vector */
Vector vector() const { Vector3 vector() const {
return Vector_(3, uL_, uR_, v_); return Vector3(uL_, uR_, v_);
} }
/** convenient function to get a Point2 from the left image */ /** convenient function to get a Point2 from the left image */