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

6 lines
210 B
C++
Raw Normal View History

2024-10-21 16:42:03 -04: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;