libeigen/eigen!2509 Closes #2868 Co-authored-by: Rasmus Munk Larsen <rmlarsen@gmail.com>
10 lines
463 B
C++
10 lines
463 B
C++
// SPDX-FileCopyrightText: The Eigen Authors
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
Vector4d v = Vector4d::Random();
|
|
Projective3d P(Matrix4d::Random());
|
|
cout << "v = " << v.transpose() << "]^T" << endl;
|
|
cout << "v.hnormalized() = " << v.hnormalized().transpose() << "]^T" << endl;
|
|
cout << "P*v = " << (P * v).transpose() << "]^T" << endl;
|
|
cout << "(P*v).hnormalized() = " << (P * v).hnormalized().transpose() << "]^T" << endl;
|