use Eigen formatting for Rot3 ostream

release/4.3a0
Varun Agrawal 2020-06-16 18:18:55 -05:00
parent e8986ba382
commit f235aaf8c4
1 changed files with 1 additions and 4 deletions

View File

@ -222,10 +222,7 @@ pair<Matrix3, Vector3> RQ(const Matrix3& A) {
/* ************************************************************************* */
ostream &operator<<(ostream &os, const Rot3& R) {
os << "\n";
os << '|' << R.r1().x() << ", " << R.r2().x() << ", " << R.r3().x() << "|\n";
os << '|' << R.r1().y() << ", " << R.r2().y() << ", " << R.r3().y() << "|\n";
os << '|' << R.r1().z() << ", " << R.r2().z() << ", " << R.r3().z() << "|\n";
os << R.matrix().format(matlab) << endl;
return os;
}