Log in or register to post comments

Utility functions to convert 3x3 rotation matrix to angles?

December 20, 2013 - 4:24pm #1

Hi,

I am trying to find the orientation of a framemarker around its z-axis.

The camera will be pointed head-on at the framemarker. I believe this means that the z-axis of the framemarker has the same direction as the camera axis.

I understand I can get the 3x4 pose matrix of a trackable and build a new 3x3 rotation matrix from it.

Are there utility functions to go straight from the 3x3 rotation matrix to rotation angles around x, y and z axes? Or do I need to program these myself?

Any help greatly appreciated. A code sample would be great.

 

 

Tom

 

Utility functions to convert 3x3 rotation matrix to angles?

November 13, 2015 - 2:15pm #5

Hi,

What I need was the rotation of a framemarker around its normal. In the end I solved it in another, much simpler way:

 

private GameObject myFrameMarker;
myFrameMarker = GameObject.Find("FrameMarker0");
float myAngle = myFrameMarker.transform.eulerAngles.y;

 

Hope this helps.

 

 

Tom

Utility functions to convert 3x3 rotation matrix to angles?

November 13, 2015 - 7:28am #4

Did you ever program it yourself? can you share code?

Utility functions to convert 3x3 rotation matrix to angles?

December 21, 2013 - 3:46am #3

Thank you!

Utility functions to convert 3x3 rotation matrix to angles?

December 20, 2013 - 10:45pm #2

Are there utility functions to go straight from the 3x3 rotation matrix to rotation angles around x, y and z axes? Or do I need to program these myself?

The Vuforia API has some utility functions, but not specifically for this case. So, you will need to program these by yourself.

 

 

Log in or register to post comments