rickSRQ

15 Reputation

2 Badges

13 years, 134 days

MaplePrimes Activity


These are questions asked by rickSRQ

Can someone explain to me, if you can, how the Euler angles on the plot interface work?

 

It looks like Phi is the rotation around z, Theta is the rotation around x, and Psi is around y. I'm trying to use matrices to compute the vector that is pointing towards your face as you're looking at the plot with the given Euler angles.


X := Matrix(3, 3, {(1, 1) = 1, (1, 2) = 0, (1, 3) = 0, (2, 1) = 0, (2, 2) = cos(phi), (2, 3) = sin(phi), (3, 1) = 0, (3, 2) = -sin(phi), (3, 3) = cos(phi)});


Y := Matrix(3, 3, {(1, 1) = cos(theta), (1, 2) = 0, (1, 3) = sin(theta), (2, 1) = 0, (2, 2) = 1, (2, 3) = 0, (3, 1) = -sin(theta), (3, 2) = 0, (3, 3) = cos(theta)});


Z := Matrix(3, 3, {(1, 1) = cos(psi), (1, 2) = sin(psi), (1, 3) = 0, (2, 1) = -sin(psi), (2, 2) = cos(psi), (2, 3) = 0, (3, 1) = 0, (3, 2) = 0, (3, 3) = 1});

and computing X*Y*Z*e3

 

TIA!

I am using the ExportMatrix command to save matrices to .txt files. Is there a way to use a variable to automatically create the text file name?

 

For example (I know this doesn't work):

Is there a function that will return the current orientation values in a 3dplot, or can anyone help me with this. I would like to display the orientation as I rotate a plot.

 

TIA

Page 1 of 1