a 60 degree rotation matrix

Hi

I have a 3d system drawn on a piece of paper, the y axis is coming out of the paper towards me. I want to rotate an object by 60 degrees around the y axis, counter-clockwise. So if the object is looking at the top of the page, after the rotation it should be looking more towards the right side of the page. What's the matrix to do that?

Thanks
DJ_AM_JuiceboxAsked:
Who is Participating?
 
InteractiveMindConnect With a Mentor Commented:
You can find the necessary rotation matrices here:
http://en.wikipedia.org/wiki/Rotation_matrix#The_3-dimensional_rotation_matricies

In your case:

[cos 60   0   sin 60]
[    0        1        0   ]
[-sin 60   0   cos 60]

0
 
InteractiveMindCommented:
'So if the object is looking at the top of the page, after the rotation it should be looking more towards the right side of the page.'

If your rotation is CCW (which the above transformation performs in a right-handed system), then the object will look more to the left side of the page.
If you wish to go in a CW direction, then replace 60 with -60.

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.