Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to convert a Matrix4 or Quaternion to angle in degrees

I'm asking if anyone could help me in converting a Matrix4 or Quaternion to angle in degrees, I'm working on Kinect windows SDK 1.5 using C#, the sdk 1.5 provides the joint orientation but only in Matrix4 or Quaternion and i need the angles in degrees.

like image 902
Tak Avatar asked Nov 27 '25 14:11

Tak


1 Answers

Well, the numbers in quaternions and matrix4 are cosines. Therefore, the following functions solves it:

Function cs_a_gr(cose)
    Return 180 / PI * Acos(cose)
End Function
like image 77
Javier Sánchez Avatar answered Nov 29 '25 03:11

Javier Sánchez



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!