Link to home
Start Free TrialLog in
Avatar of Paulagier
PaulagierFlag for France

asked on

3D rotation changing an axis

I need to shift from an orthogonal & normalized coordinate system to another
Both coordinate systems are illustrated in a pictureUser generated imageX axis = blue
Y axis = green
Z axis = red

Because it has to be inserted in an existing code I need a 3x3 matrix to shift from coordinates "1" on the right of the picture to coordinates "2" on the left of the picture.
The only change is the Z axis direction (from "down" to "up")
I've found an uneasy solution with a lot of transform operations
Could someone give me a simple 3x3 matrix to do that ?
Regards
Avatar of phoffric
phoffric

Is this what you want T to be?
T(1,0,0) --> (1,0,0)
T(0,1,0) --> (0,1,0)
T(0,0,-1) --> (0,0,1)

>> The only change is the Z axis direction (from "down" to "up")
But, if I am reading your picture right, it looks like not only does Z rotate, but also Y rotates (from pointing into the page to out of the page). So, maybe this T:
T(1,0,0) --> (1,0,0)
T(0,1,0) --> (0,-1,0)
T(0,0,-1) --> (0,0,1)

Which one is the T you want? If neither, could you specify how you would like the unit vectors on the x,y,z axes to be transformed?
Could you post the "uneasy solution with a lot of transform operations" that you found that satisfy your needs?
Avatar of Paulagier

ASKER

After checking more in depth, my "solution" is not only uneasy but wrong, so let's forget it.
Being a newbee in the 3D world I guess my problem comes because i'm having a wrong definition of each of the reference planes.
Here are one reference system ("Ref") and three different x,y,z orientations, named A,B,C.
  User generated imageCould you please give me the three A,B,C transform in the same way you gave "A to Ref" in your previous post ?
Some more details to avoid confusion:
in Ref: y (green) is pointing out of the page
in A :  y (green) is pointing out of the page
in B : z (red) is pointing into the page
in C: x ( blue) is pointing out of the page
Thanks by advance
ASKER CERTIFIED SOLUTION
Avatar of phoffric
phoffric

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial