37 lines
1020 B
C++
37 lines
1020 B
C++
/* ----------------------------------------------------------------------------
|
|
|
|
* GTSAM Copyright 2010, Georgia Tech Research Corporation,
|
|
* Atlanta, Georgia 30332-0415
|
|
* All Rights Reserved
|
|
* Authors: Frank Dellaert, et al. (see THANKS for the full author list)
|
|
|
|
* See LICENSE for the license information
|
|
|
|
* -------------------------------------------------------------------------- */
|
|
|
|
/**
|
|
* @file StereoPoint2.cpp
|
|
* @date Jan 26, 2010
|
|
* @author dellaert
|
|
*/
|
|
|
|
#include <iostream>
|
|
#include <gtsam/geometry/StereoPoint2.h>
|
|
|
|
using namespace std;
|
|
|
|
namespace gtsam {
|
|
|
|
/* ************************************************************************* */
|
|
void StereoPoint2::print(const string& s) const {
|
|
cout << s << "(" << uL_ << ", " << uR_ << ", " << v_ << ")" << endl;
|
|
}
|
|
|
|
/* ************************************************************************* */
|
|
ostream &operator<<(ostream &os, const StereoPoint2& p) {
|
|
os << '(' << p.uL() << ", " << p.uR() << ", " << p.v() << ')';
|
|
return os;
|
|
}
|
|
|
|
} // namespace gtsam
|