COSC-4P80-Assignment-2/lib/eigen-3.4.0/doc/snippets/MatrixBase_isOrthogonal.cpp

7 lines
293 B
C++
Raw Normal View History

2024-10-21 16:42:03 -04:00
Vector3d v(1,0,0);
Vector3d w(1e-4,0,1);
cout << "Here's the vector v:" << endl << v << endl;
cout << "Here's the vector w:" << endl << w << endl;
cout << "v.isOrthogonal(w) returns: " << v.isOrthogonal(w) << endl;
cout << "v.isOrthogonal(w,1e-3) returns: " << v.isOrthogonal(w,1e-3) << endl;