blob: 26319609769547d6846b1eeb8b7aace5471bd079 [file] [log] [blame]
Austin Schuh189376f2018-12-20 22:11:15 +11001Vector3d v = Vector3d::Random(), w;
2Projective3d P(Matrix4d::Random());
3cout << "v = [" << v.transpose() << "]^T" << endl;
4cout << "h.homogeneous() = [" << v.homogeneous().transpose() << "]^T" << endl;
5cout << "(P * v.homogeneous()) = [" << (P * v.homogeneous()).transpose() << "]^T" << endl;
Austin Schuhc55b0172022-02-20 17:52:35 -08006cout << "(P * v.homogeneous()).hnormalized() = [" << (P * v.homogeneous()).eval().hnormalized().transpose() << "]^T" << endl;