简体   繁体   中英

Processing: getting Yaw, Pitch and Roll angle from matrix4x4

So I am pretty new with Processing and I am trying to integrate the Oculus Rift in my current project.

Since I am reading the Oculus sensor data with an application found on internet, I am only able to get the transformation matrix instead of the Euler angles.

Now I need to extract the Yaw Pitch and Roll angles from the Matrix4x4.

Does anyone know how would I do that using processing?

Thank you.

If you're working with the Oculus SDK Matrix4 class, you can easily use the Matrix4::ToEulerAngles() method. If you're working with another class then you should look for a method in that class that does something similar.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM