Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calculate the rotation angle #17

Open
MysteryNull opened this issue Apr 18, 2024 · 3 comments
Open

Calculate the rotation angle #17

MysteryNull opened this issue Apr 18, 2024 · 3 comments

Comments

@MysteryNull
Copy link

Thank you for your work! I tried the code and just want to know how to calculate the rotation angle from the rotation matrix of the ellipsoid obtained from the program?

@aleksandrbazhin
Copy link
Owner

I guess you can use eigen vectors (evecs) which are returned from ellipsoid_fit() and calculate their angles. As they are orthogonal, you can take any vector you like and calculate the rotation angle from X axis to it.

@MysteryNull
Copy link
Author

How to caculate the angles with one eigen vector, thank you.

@aleksandrbazhin
Copy link
Owner

Sorry, I was wrong - you can not calculate Euler angles to a single vector, the roll angle is undetermined then. I didn't use any of the stuff for a long time. In general Euler angles are more tricky then they seem, but there's nothing too difficult. I suggest you do your own research.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants