We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › About the composition of rotation
Page Index Toggle Pages: 1
About the composition of rotation (Read 373 times)
About the composition of rotation
Mar 15th, 2009, 10:03am
 
Hello everyone.
In left hand coordinate system,
rotateX(a) corresponds to the matrix
M(a)=  {1,0,0;0,cos(a),-sin(a);0,sin(a),cos(a)}
       
rotateY(b) corresponds to the matrix
M(b)=  {cos(b),0,sin(b);0,1,0;-sin(b),0,cos(b)}

Right?

So their composition in order,i.e,rotateX(a) followed by
rotateY(b) corresponds to the matrix
M(a,b)=M(a)*M(b)
Is that right?I made a test where the matrix printed by the function showMatrix() seems the same as computed in mathCAD.
Any advise is appreciated...Thanks.
Re: About the composition of rotation
Reply #1 - Mar 28th, 2009, 12:13pm
 
I share your curiosity. My part of the question: How come the coordinates are left-handed? Are all computer graphics coordinates left-handed? Thanks.
Page Index Toggle Pages: 1