- #1
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 [tex]\alpha[/tex] to global axis X, local axis y is oriented at angle [tex]\beta[/tex] to global axis Y, and local axis z is oriented [tex]\gamma[/tex] to global axis Z.
How can I determine the new cube coordinates in X, Y, Z? The angles [tex]\alpha[/tex], [tex]\beta[/tex] and [tex]\gamma[/tex] 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 [tex]\alpha[/tex] to global axis X, local axis y is oriented at angle [tex]\beta[/tex] to global axis Y, and local axis z is oriented [tex]\gamma[/tex] to global axis Z.
How can I determine the new cube coordinates in X, Y, Z? The angles [tex]\alpha[/tex], [tex]\beta[/tex] and [tex]\gamma[/tex] 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