Created
March 17, 2016 00:11
-
-
Save SIRHAMY/ab7763cda2b842131de4 to your computer and use it in GitHub Desktop.
Example showing how to print the vals of an Eigen::Quaterniond to the console
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Eigen::Quaterniond myQuaternion = someFuncThatReturnsQuaternionVals(exampleParam); //The Quaternion to print | |
std::cout << "Debug: " << "myQuaternion.w() = " << myQuaternion.w() << std::endl; //Print out the scalar | |
std::cout << "Debug: " << "myQuaternion.vec() = " << myQuaternion.vec() << std::endl; //Print out the orientation vector |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment