Skip to content

Instantly share code, notes, and snippets.

@SIRHAMY
Created March 17, 2016 00:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SIRHAMY/ab7763cda2b842131de4 to your computer and use it in GitHub Desktop.
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
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