epfl-archive/cs440-acg/ext/eigen/doc/snippets/AngleAxis_mimic_euler.cpp

6 lines
210 B
C++
Raw Normal View History

2022-04-07 18:46:57 +02:00
Matrix3f m;
m = AngleAxisf(0.25*M_PI, Vector3f::UnitX())
* AngleAxisf(0.5*M_PI, Vector3f::UnitY())
* AngleAxisf(0.33*M_PI, Vector3f::UnitZ());
cout << m << endl << "is unitary: " << m.isUnitary() << endl;