Last active
December 21, 2017 11:34
-
-
Save hertzsprung/56a67b8fcdb8c780c214137c60d2aaab to your computer and use it in GitHub Desktop.
Quaternion rotation behaves unexpectedly!
This file contains 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
#include "quaternion.H" | |
#include "transform.H" | |
int main(int argc, char *argv[]) | |
{ | |
const quaternion q(rotationTensor(vector(-1, 0, 0), vector(1, 0, 0))); | |
Info << q.transform(vector(0, 0, 0.5)) << endl; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment