How to transform a quaternion to Euler Angle in OSGEarth?

classic Classic list List threaded Threaded
3 messages Options
Mirro187 Mirro187
Reply | Threaded
Open this post in threaded view
|

How to transform a quaternion to Euler Angle in OSGEarth?

gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: How to transform a quaternion to Euler Angle in OSGEarth?

There is no method for that, but you can start here:

https://en.wikipedia.org/wiki/Conversion_between_quaternions_and_Euler_angles#Quaternion_to_Euler_angles_conversion

Glenn Waldron / Pelican Mapping
Mirro187 Mirro187
Reply | Threaded
Open this post in threaded view
|

Re: How to transform a quaternion to Euler Angle in OSGEarth?

Thank you for your question and answer.The test result is that the function returns the inverse value