danhumphreys
- 3
- 0
Hi all,
I've been struggling with this for a couple of days now and am positing a question in the hope that someone can help me out.
I have a global cartesian coordinate system X, Y, Z and a cube with it's centre at (0,0,0) and dimension 1. Hence it's corners are: (0.5, -0.5, 0.5), (-0.5, -0.5, 0.5), (0.5, -0.5, 0.5), (0.5, 0.5, 0.5), (0.5, -0.5, -0.5), (-0.5, -0.5, -0.5), (0.5, -0.5, -0.5), (0.5, 0.5, -0.5).
The cube is now at an arbitrary position where it's local axes are defined such that local axis x is oriented at angle \alpha to global axis X, local axis y is oriented at angle \beta to global axis Y, and local axis z is oriented \gamma to global axis Z.
How can I determine the new cube coordinates in X, Y, Z? The angles \alpha, \beta and \gamma are not the same as the Euler angles, they define the position of the local axes relative to the global ones.
Any help would be very much appreciated.
Dan
I've been struggling with this for a couple of days now and am positing a question in the hope that someone can help me out.
I have a global cartesian coordinate system X, Y, Z and a cube with it's centre at (0,0,0) and dimension 1. Hence it's corners are: (0.5, -0.5, 0.5), (-0.5, -0.5, 0.5), (0.5, -0.5, 0.5), (0.5, 0.5, 0.5), (0.5, -0.5, -0.5), (-0.5, -0.5, -0.5), (0.5, -0.5, -0.5), (0.5, 0.5, -0.5).
The cube is now at an arbitrary position where it's local axes are defined such that local axis x is oriented at angle \alpha to global axis X, local axis y is oriented at angle \beta to global axis Y, and local axis z is oriented \gamma to global axis Z.
How can I determine the new cube coordinates in X, Y, Z? The angles \alpha, \beta and \gamma are not the same as the Euler angles, they define the position of the local axes relative to the global ones.
Any help would be very much appreciated.
Dan