# How to use Euler's angle theorem in rotation of a coordinate

 Sci Advisor HW Helper P: 2,280 How to use Euler's angle theorem in rotation of a coordinate Second one is correct (I think, they don't line up very well). One rotation matrix for positive (direction of a right hand screw, or counter-clockwise as viewed from the outside) rotations: 1 0 0 0 cos x sin x 0 -sin x cos x With columns x, y, z and rows x, y, z, shift the matrix so the 1 lies at the intersection of whichever axis you're rotating around. For negative (or clockwise), reverse the sign of the sines. Since you're dealing with orthogonal matrices, the safer way is that clockwise is the inverse of counter-clockwise and the inverse of an orthogonal right hand matrix (which your rotation matrices are) is the transpose. In other words, take the transpose of the counter-clockwise matrix to get the clockwise rotation matrix. The latter helps you when you start combining rotations into a single matrix and you don't want to have to reaccomplish the work for the opposite direction. Additionally, sometimes the known angle won't be the rotation angle, but the complement of the rotation angle. Instead of building an ugly rotation matrix consisting of cos (90 - x), sine will substituted for cosine and cosine for sine to make a cleaner matrix consisting of just x.
 P: 9 lets say if i have a Z-axis which perpendicularly point into the screen, X-axis which point to its right side and Y-axis which point upward and a point with coordinate ( 0 , 0 , 5 ). then i rotate the point's y-axis 30 degree in clockwise direction. so the rotation operation matrix should be  |cos 30 0 sin 30 | | 0 1 0 | |-sin 30 0 cos 30 | Sorry about the disoriented matrix in previous post... then on the point's new x-axis, i rotate the point 60 degree counter clockwise, so the point will move upward. And the matrix is:  | 1 0 0 | | 0 cos 60 sin 60 | | 0 -sin 60 cos 60 | so to get the point final position, i just multiply all the stuff together like:  |cos 30 0 sin 30 | | 1 0 0 | | 0 | |1.25 | | 0 1 0 | | 0 cos 60 sin 60 | | 0 | = |4.3301 | |-sin 30 0 cos 30 | | 0 -sin 60 cos 60 | | 5 | |2.165 | Is that the right way?