Fixed missing print function in Rot3Q

release/4.3a0
Luca Carlone 2013-08-19 20:35:44 +00:00
parent 5ead55c8b2
commit 697f185aad
1 changed files with 5 additions and 0 deletions

View File

@ -62,6 +62,11 @@ namespace gtsam {
/* ************************************************************************* */
Rot3::Rot3(const Quaternion& q) : quaternion_(q) {}
/* ************************************************************************* */
void Rot3::print(const std::string& s) const {
gtsam::print((Matrix)matrix(), s);
}
/* ************************************************************************* */
Rot3 Rot3::Rx(double t) { return Quaternion(Eigen::AngleAxisd(t, Eigen::Vector3d::UnitX())); }