Rotate a cylinder to allign axis

  • Thread starter johnfriend
  • Start date
  • #1
johnfriend
3
0
Hi i have cylinder geometry . bottom (cross section)circle centre point is x1, y1, z1 and top is x2, yz, z2. cylinder centre axis is not allign with any (Global x,y,z) axis. if i want to align a cylinder with Global axis(x,y,z), what is angle need to rotated with respect to x ,y ,z (Global )axis.
 

Answers and Replies

  • #2
Philosophaie
462
0
Declination angle is what you are looking for. The difference between the center will give the spatial coordinates. The (x,y,z), (x1,y1,z1) and (x2,y2,z2) must all be of the same coordinate system or conversion is necessary. Here is the equation for Declination:

DECangle=atan((z2-z1) / sqrt((x2-x1)^2 + (y2-y1)^2))
 
  • #3
johnfriend
3
0
cylinder model declinde with all three (cartesian)axis. it's declined with theta1 axis with respect to X, theta2 axis with respect to Y and theta3 axis with respect to Z.how to calculate that?
 
Last edited:
  • #4
johnfriend
3
0
find inclined angle of cylinder?

cylinder model Inclined with all three (x,y,z-cartesian)axis. it's Inclined with theta1 axis with respect to X, theta2 axis with respect to Y and theta3 axis with respect to Z.how to calculate theta1,theta2,theta3?
 
  • #5
Philosophaie
462
0
Which axis is the cylinder pointing?
 
  • #6
LCKurtz
Science Advisor
Homework Helper
Insights Author
Gold Member
9,568
774


If you have a vector in the direction of the cylinder axis, a unit vector in that direction has the direction cosines for its components. They are the cosines of your angles.
 

Suggested for: Rotate a cylinder to allign axis

  • Last Post
Replies
12
Views
168
  • Last Post
Replies
5
Views
399
Replies
10
Views
676
Replies
1
Views
542
Replies
2
Views
480
Replies
8
Views
901
Replies
2
Views
311
  • Last Post
Replies
1
Views
832
Replies
4
Views
165
Replies
7
Views
614
Top