libeigen/eigen!2509 Closes #2868 Co-authored-by: Rasmus Munk Larsen <rmlarsen@gmail.com>
10 lines
380 B
C++
10 lines
380 B
C++
// SPDX-FileCopyrightText: The Eigen Authors
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
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;
|