Determining the orientation of ellipsoids after 2 rotations

  • Context: Graduate 
  • Thread starter Thread starter lemonCBI
  • Start date Start date
  • Tags Tags
    Orientation Rotations
Click For Summary
SUMMARY

This discussion focuses on calculating the orientation of ellipsoids after two rotations defined by Z-Y-Z angles. The first rotation occurs about the z-axis, the second about the y-axis, and the final rotation again about the z-axis. To determine the final orientation, one can represent the transformations using matrices and perform matrix multiplication. Additionally, the discussion addresses whether an ellipsoid's position is uniquely defined by a set of angles or if multiple correct answers exist, emphasizing the importance of using linear transformations or quaternion rotations for accurate calculations.

PREREQUISITES
  • Understanding of Z-Y-Z rotation sequences
  • Familiarity with transformation matrices
  • Knowledge of quaternion rotations
  • Basic concepts of linear transformations
NEXT STEPS
  • Research how to implement Z-Y-Z rotation matrices in code
  • Learn about quaternion mathematics for 3D rotations
  • Explore the use of transformation matrices in graphics programming
  • Investigate methods for extracting rotation angles from transformation matrices
USEFUL FOR

Mathematicians, computer graphics developers, and engineers working with 3D modeling or simulations involving ellipsoids and rotational transformations.

lemonCBI
Messages
2
Reaction score
0
I am writing some code in which I am working with ellipsoids. The ellipsoids can be rotated in its body frame with three angles (First rotation is about the z-axis in the body frame, second is about the y-axis in the body frame, and finally another rotation about the z-axis in the body frame). In addition, a group of ellipsoids can be rotated together. This means an individual ellipsoid is rotated in the same manner as before except the point of rotation is not necessarily the center of the ellipse.

My question is how do I calculate the 3 angles (Z-Y-Z) that describe the position an ellipsoid that has experienced both rotations? I have the 3 angles of the body rotation, the 3 angles of second rotation, and the displacement of the ellipsoid center from the point of rotation.

Also, in trying to figuring this out I was wondering if an ellipsoid's position has unique set of angles to describe it or if there are several correct answers (besides multiples of 360)
 
Physics news on Phys.org
lemonCBI said:
My question is how do I calculate the 3 angles (Z-Y-Z) that describe the position an ellipsoid that has experienced both rotations? I have the 3 angles of the body rotation, the 3 angles of second rotation, and the displacement of the ellipsoid center from the point of rotation.

You can combine a sequence of two or more rotations/translations by representing the transformations as matrices and multiplying the matrices together. Wikipedia has a pretty comprehensive page on transformation matrices.

I wonder how you represent the orientation of an ellipsoid. Is it by another set of angles, or by vectors or quaternions? Are they relative to some fixed global coordinate system? I guess you also have a position vector for each ellipsoid? In rectangular coordinates?
 
lemonCBI said:
I am writing some code in which I am working with ellipsoids. The ellipsoids can be rotated in its body frame with three angles (First rotation is about the z-axis in the body frame, second is about the y-axis in the body frame, and finally another rotation about the z-axis in the body frame). In addition, a group of ellipsoids can be rotated together. This means an individual ellipsoid is rotated in the same manner as before except the point of rotation is not necessarily the center of the ellipse.

My question is how do I calculate the 3 angles (Z-Y-Z) that describe the position an ellipsoid that has experienced both rotations? I have the 3 angles of the body rotation, the 3 angles of second rotation, and the displacement of the ellipsoid center from the point of rotation.

Also, in trying to figuring this out I was wondering if an ellipsoid's position has unique set of angles to describe it or if there are several correct answers (besides multiples of 360)

If your points of an object are with respect to the body's origin, a simple rotation will suffice. You can use a linear transformation, or use something like a quaternion rotation and then convert that to a matrix which you can apply as a standard linear transformation.

If you want to rotate with respect to a point that is not the origin, you need to translate the point you are rotating by the negative of the point you wish to rotate around, perform your rotation and then translate back.

If you really want to you could manually pre-compute a final matrix that will be your linear transformation that is composed of all necessary linear maps (translations and rotations) if you really need a speed edge, but modern computers can do this quick enough nowadays.

In terms of angles, with rotations you usually supply them. If however you instead have a final rotation point, you can use methods to extract the angle from these.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 6 ·
Replies
6
Views
30K
  • · Replies 40 ·
2
Replies
40
Views
9K
  • · Replies 2 ·
Replies
2
Views
775
  • · Replies 3 ·
Replies
3
Views
1K