xref: /aosp_15_r20/external/eigen/doc/snippets/MatrixBase_isOrthogonal.cpp (revision bf2c37156dfe67e5dfebd6d394bad8b2ab5804d4)
1  Vector3d v(1,0,0);
2  Vector3d w(1e-4,0,1);
3  cout << "Here's the vector v:" << endl << v << endl;
4  cout << "Here's the vector w:" << endl << w << endl;
5  cout << "v.isOrthogonal(w) returns: " << v.isOrthogonal(w) << endl;
6  cout << "v.isOrthogonal(w,1e-3) returns: " << v.isOrthogonal(w,1e-3) << endl;
7