SlideShare a Scribd company logo
1 of 16
Download to read offline
Rotation about an Arbitrary Axis (Line)
Rotation about an Arbitrary Axis (Line)
X
Y
Z
X0X0
Y0
Z0
L
P2
P1
P0
L
AB
C
uCBAL
zCuz
yBuy
xAux
222
0
0
0
++=
+=
+=
+=
0 < =u <=1
P0
O
P1
A
B
C
L
Step 1: Translate Point P0 to Origin O
[ ]
⎥
⎥
⎥
⎥
⎦
⎤
⎢
⎢
⎢
⎢
⎣
⎡
−
−
−
=
1000
100
010
001
0
0
0
z
y
x
D
x
z
y
O
P0
P1(A,B,C)
A
B
0 [ ]T
o o oP x y z=
C
Step 2: Rotate Vector about X Axis to get into the x - z plane	

	

V
C
V
B
CBV
CBAL
=
=
+=
++=
1
1
22
222
cos
sin
θ
θ
[ ]
⎥
⎥
⎥
⎥
⎥
⎥
⎦
⎤
⎢
⎢
⎢
⎢
⎢
⎢
⎣
⎡
−
=
⎥
⎥
⎥
⎥
⎦
⎤
⎢
⎢
⎢
⎢
⎣
⎡
−
=
1000
00
00
0001
1000
0cossin0
0sincos0
0001
11
11
V
C
V
B
V
B
V
C
Rx
θθ
θθ
X
V
L
Step 3: Rotate about the Y axis to get it in the Z direction	

Rotate a negative angle (CW)!	

L
V
L
A
=
−=
2
2
cos
sin
θ
θ
2 2
2 2
0 0
cos 0 sin 0
0 1 0 0 0 1 0 0
sin 0 cos 0
0 0
0 0 0 1
0 0 0 1
y
V A
L L
R
A V
L L
θ θ
θ θ
⎡ ⎤
−⎢ ⎥⎡ ⎤
⎢ ⎥⎢ ⎥
⎢ ⎥⎢ ⎥⎡ ⎤ = =⎣ ⎦ ⎢ ⎥⎢ ⎥−
⎢ ⎥⎢ ⎥
⎢ ⎥⎣ ⎦
⎢ ⎥⎣ ⎦
Step 4: Rotate angle θ about axis	

 L

[ ]
⎥
⎥
⎥
⎥
⎦
⎤
⎢
⎢
⎢
⎢
⎣
⎡ −
=
1000
0100
00cossin
00sincos
θθ
θθ
zR
Step 5: Reverse the rotation about the Y axis	

[ ]
⎥
⎥
⎥
⎥
⎥
⎥
⎦
⎤
⎢
⎢
⎢
⎢
⎢
⎢
⎣
⎡
−
=
−
1000
00
0010
00
1
L
V
L
A
L
A
L
V
Ry [ ]
⎥
⎥
⎥
⎥
⎥
⎥
⎦
⎤
⎢
⎢
⎢
⎢
⎢
⎢
⎣
⎡
−
=
⎥
⎥
⎥
⎥
⎦
⎤
⎢
⎢
⎢
⎢
⎣
⎡
−
=
1000
00
0010
00
1000
0cos0sin
0010
0sin0cos
22
22
L
V
L
A
L
A
L
V
Ry
θθ
θθ
Inverse of Rotation:
Replace θ by – θ
sin θ by – sin θ
cos θ remains cos θ (why?)
Step 6: Reverse rotation about the X axis	

Rx[ ]−1
=
1 0 0 0
0
C
V
B
V
0
0 −
B
V
C
V
0
0 0 0 1
⎡
⎣
⎢
⎢
⎢
⎢
⎢
⎢
⎤
⎦
⎥
⎥
⎥
⎥
⎥
⎥
[ ]
⎥
⎥
⎥
⎥
⎥
⎥
⎦
⎤
⎢
⎢
⎢
⎢
⎢
⎢
⎣
⎡
−
=
⎥
⎥
⎥
⎥
⎦
⎤
⎢
⎢
⎢
⎢
⎣
⎡
−
=
1000
00
00
0001
1000
0cossin0
0sincos0
0001
11
11
V
C
V
B
V
B
V
C
Rx
θθ
θθ
Step 7: Reverse translation	

D[ ]−1
=
1 0 0 x0
0 1 0 y0
0 0 1 z0
0 0 0 1
⎡
⎣
⎢
⎢
⎢
⎢
⎢
⎤
⎦
⎥
⎥
⎥
⎥
⎥
Overall Transformation	

1 1 1
2 1
[ ] [ ] [ ] [ ] [ ][ ][ ][ ]
[ ]
x y z y xT D R R R
P
R R D
T P
θ− − −
=
=
180120
60
original
CCW
An Example
An Example 3 10 1 3
[P1]= 5 6 1 5
0 0 0 0
1 1 1 1Given the point matrix (four
points) on the right; and a line,
NM, with point N at (6, -2, 0)
and point M at (12, 8, 0).
Rotate the these four points 60
degrees around line NM (alone
the N to M direction) N: u=0;
M: u=1
10
6619.11
0,10,6
Thus
0
102
66
22
222
=+=
=++=
===
=
+−=
+=
CBV
CBAL
CBA
z
uy
ux
1.  Calculate the constants
(the Line/Axis of Rotation)
P1 P2 P3 P4
12 6 6
8 ( 2) 10
0 0 0
A
B
C
= − =
= − − =
= − =
1
oP N
P M
=
=
2. Translate N to the origin
[D] = 1 0 0 -6
0 1 0 2
0 0 1 0
0 0 0 1
3. Rotate about the X axis
[R]x = 1 0 0 0
0 C/V -B/V 0
0 B/V C/V 0
0 0 0 1
4. Rotate about the Y axis
[R]y = V/L 0 -A/L 0
0 1 0 0
A/L 0 V/L 0
0 0 0 1
5. Rotate 60 degree (positive)
[R]z = cos(60) -sin(60) 0 0
sin(60) cos(60) 0 0
0 0 1 0
0 0 0 1
6. Reverse [R]y
V/L 0 A/L 0
[R]y
-1= 0 1 0 0
-A/L 0 V/L 0
0 0 0 1
7. Reverse [R]x
1 0 0 0
[R]x
-1= 0 C/V B/V 0
0 -B/V C/V 0
0 0 0 1
8. Reverse the Translation
1 0 0 6
[D]-1 = 0 1 0 -2
0 0 1 0
0 0 0 1
9. Calculate the total transformation
5.6471 10.2941 3.5000 5.6471
[P]2 = 3.4118 5.8235 -0.5000 3.4118
5.3468 0.5941 5.0498 5.3468
1.0000 1.0000 1.0000 1.0000
1 1 1 60
2 1
[ ] [ ] [ ] [ ] [ ][ ][ ][ ]
[ ]
x y z y xT D R R R R D
TP
R
P
− − −
=
=
P1 P2 P3 P4
180120
60
original
CCW

More Related Content

What's hot

What's hot (19)

Matematicas criterios
Matematicas criteriosMatematicas criterios
Matematicas criterios
 
Bezier curve
Bezier curveBezier curve
Bezier curve
 
4.2 Rotations
4.2 Rotations4.2 Rotations
4.2 Rotations
 
Report in mathematics
Report in mathematicsReport in mathematics
Report in mathematics
 
Ejercicio
EjercicioEjercicio
Ejercicio
 
Differentiation using First Principle - By Mohd Noor Abdul Hamid
Differentiation using First Principle  - By Mohd Noor Abdul HamidDifferentiation using First Principle  - By Mohd Noor Abdul Hamid
Differentiation using First Principle - By Mohd Noor Abdul Hamid
 
Hprec10 1
Hprec10 1Hprec10 1
Hprec10 1
 
Qwizdom
Qwizdom Qwizdom
Qwizdom
 
Power point2
Power point2Power point2
Power point2
 
Problema
ProblemaProblema
Problema
 
A) proving angle properties of circles 2
A) proving angle properties of circles 2A) proving angle properties of circles 2
A) proving angle properties of circles 2
 
Calculating Light Speed
Calculating Light SpeedCalculating Light Speed
Calculating Light Speed
 
Metematicas 3
Metematicas 3Metematicas 3
Metematicas 3
 
Exercici selectivitat portes lògiques
Exercici selectivitat portes lògiquesExercici selectivitat portes lògiques
Exercici selectivitat portes lògiques
 
Assignment
AssignmentAssignment
Assignment
 
Ejerccio uno
Ejerccio unoEjerccio uno
Ejerccio uno
 
C8031labels
C8031labelsC8031labels
C8031labels
 
C8031labels
C8031labelsC8031labels
C8031labels
 
The wave function
The wave functionThe wave function
The wave function
 

Similar to 3 d rotation about an arbitary axix

Rotation in 3d Space: Euler Angles, Quaternions, Marix Descriptions
Rotation in 3d Space: Euler Angles, Quaternions, Marix DescriptionsRotation in 3d Space: Euler Angles, Quaternions, Marix Descriptions
Rotation in 3d Space: Euler Angles, Quaternions, Marix DescriptionsSolo Hermelin
 
2.1. fundamental of computer graphics
2.1. fundamental of computer graphics2.1. fundamental of computer graphics
2.1. fundamental of computer graphicsRatnadeepsinh Jadeja
 
Computer Graphic - Transformations in 2D
Computer Graphic - Transformations in 2DComputer Graphic - Transformations in 2D
Computer Graphic - Transformations in 2D2013901097
 
Three dimensional transformations
Three dimensional transformationsThree dimensional transformations
Three dimensional transformationsNareek
 
2 d transformation
2 d transformation2 d transformation
2 d transformationAnkit Garg
 
Karnaugh maps
Karnaugh mapsKarnaugh maps
Karnaugh mapsAJAL A J
 
Modeling Transformations
Modeling TransformationsModeling Transformations
Modeling TransformationsTarun Gehlot
 
2D Rotation- Transformation in Computer Graphics
2D Rotation- Transformation in Computer Graphics2D Rotation- Transformation in Computer Graphics
2D Rotation- Transformation in Computer GraphicsSusmita
 
Trigonometric ratios and identities 1
Trigonometric ratios and identities 1Trigonometric ratios and identities 1
Trigonometric ratios and identities 1Sudersana Viswanathan
 
EE301 Lesson 15 Phasors Complex Numbers and Impedance (2).ppt
EE301 Lesson 15 Phasors Complex Numbers and Impedance (2).pptEE301 Lesson 15 Phasors Complex Numbers and Impedance (2).ppt
EE301 Lesson 15 Phasors Complex Numbers and Impedance (2).pptRyanAnderson41811
 
Digital logic circuits important question and answers for 5 units
Digital logic circuits important question and answers for 5 unitsDigital logic circuits important question and answers for 5 units
Digital logic circuits important question and answers for 5 unitsLekashri Subramanian
 
Matrix 2 d
Matrix 2 dMatrix 2 d
Matrix 2 dxyz120
 
Two dimensional geometric transformation
Two dimensional geometric transformationTwo dimensional geometric transformation
Two dimensional geometric transformationjapan vasani
 
10CSL67 CG LAB PROGRAM 4
10CSL67 CG LAB PROGRAM 410CSL67 CG LAB PROGRAM 4
10CSL67 CG LAB PROGRAM 4Vanishree Arun
 
Jee advanced-2020-paper-1-solution
Jee advanced-2020-paper-1-solutionJee advanced-2020-paper-1-solution
Jee advanced-2020-paper-1-solutionAnkitBiswas17
 

Similar to 3 d rotation about an arbitary axix (20)

Rotation in 3d Space: Euler Angles, Quaternions, Marix Descriptions
Rotation in 3d Space: Euler Angles, Quaternions, Marix DescriptionsRotation in 3d Space: Euler Angles, Quaternions, Marix Descriptions
Rotation in 3d Space: Euler Angles, Quaternions, Marix Descriptions
 
2.1. fundamental of computer graphics
2.1. fundamental of computer graphics2.1. fundamental of computer graphics
2.1. fundamental of computer graphics
 
Computer Graphics - transformations in 2d
Computer Graphics - transformations in 2dComputer Graphics - transformations in 2d
Computer Graphics - transformations in 2d
 
Computer Graphic - Transformations in 2D
Computer Graphic - Transformations in 2DComputer Graphic - Transformations in 2D
Computer Graphic - Transformations in 2D
 
Three dimensional transformations
Three dimensional transformationsThree dimensional transformations
Three dimensional transformations
 
2 d transformation
2 d transformation2 d transformation
2 d transformation
 
Computer Graphics - transformations in 3d
Computer Graphics - transformations in 3dComputer Graphics - transformations in 3d
Computer Graphics - transformations in 3d
 
U unit4 vm
U unit4 vmU unit4 vm
U unit4 vm
 
Karnaugh maps
Karnaugh mapsKarnaugh maps
Karnaugh maps
 
Modeling Transformations
Modeling TransformationsModeling Transformations
Modeling Transformations
 
Transforms UNIt 2
Transforms UNIt 2 Transforms UNIt 2
Transforms UNIt 2
 
2D Rotation- Transformation in Computer Graphics
2D Rotation- Transformation in Computer Graphics2D Rotation- Transformation in Computer Graphics
2D Rotation- Transformation in Computer Graphics
 
Trigonometric ratios and identities 1
Trigonometric ratios and identities 1Trigonometric ratios and identities 1
Trigonometric ratios and identities 1
 
EE301 Lesson 15 Phasors Complex Numbers and Impedance (2).ppt
EE301 Lesson 15 Phasors Complex Numbers and Impedance (2).pptEE301 Lesson 15 Phasors Complex Numbers and Impedance (2).ppt
EE301 Lesson 15 Phasors Complex Numbers and Impedance (2).ppt
 
Digital logic circuits important question and answers for 5 units
Digital logic circuits important question and answers for 5 unitsDigital logic circuits important question and answers for 5 units
Digital logic circuits important question and answers for 5 units
 
Lecture11
Lecture11Lecture11
Lecture11
 
Matrix 2 d
Matrix 2 dMatrix 2 d
Matrix 2 d
 
Two dimensional geometric transformation
Two dimensional geometric transformationTwo dimensional geometric transformation
Two dimensional geometric transformation
 
10CSL67 CG LAB PROGRAM 4
10CSL67 CG LAB PROGRAM 410CSL67 CG LAB PROGRAM 4
10CSL67 CG LAB PROGRAM 4
 
Jee advanced-2020-paper-1-solution
Jee advanced-2020-paper-1-solutionJee advanced-2020-paper-1-solution
Jee advanced-2020-paper-1-solution
 

Recently uploaded

CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdfSuman Jyoti
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
Intro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfIntro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfrs7054576148
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...SUHANI PANDEY
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdfKamal Acharya
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756dollysharma2066
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 

Recently uploaded (20)

CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Intro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfIntro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdf
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 

3 d rotation about an arbitary axix

  • 1. Rotation about an Arbitrary Axis (Line)
  • 2. Rotation about an Arbitrary Axis (Line) X Y Z X0X0 Y0 Z0 L P2 P1 P0 L AB C uCBAL zCuz yBuy xAux 222 0 0 0 ++= += += += 0 < =u <=1 P0 O P1 A B C L
  • 3. Step 1: Translate Point P0 to Origin O [ ] ⎥ ⎥ ⎥ ⎥ ⎦ ⎤ ⎢ ⎢ ⎢ ⎢ ⎣ ⎡ − − − = 1000 100 010 001 0 0 0 z y x D x z y O P0 P1(A,B,C) A B 0 [ ]T o o oP x y z= C
  • 4. Step 2: Rotate Vector about X Axis to get into the x - z plane V C V B CBV CBAL = = += ++= 1 1 22 222 cos sin θ θ [ ] ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎦ ⎤ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎣ ⎡ − = ⎥ ⎥ ⎥ ⎥ ⎦ ⎤ ⎢ ⎢ ⎢ ⎢ ⎣ ⎡ − = 1000 00 00 0001 1000 0cossin0 0sincos0 0001 11 11 V C V B V B V C Rx θθ θθ X V L
  • 5. Step 3: Rotate about the Y axis to get it in the Z direction Rotate a negative angle (CW)! L V L A = −= 2 2 cos sin θ θ 2 2 2 2 0 0 cos 0 sin 0 0 1 0 0 0 1 0 0 sin 0 cos 0 0 0 0 0 0 1 0 0 0 1 y V A L L R A V L L θ θ θ θ ⎡ ⎤ −⎢ ⎥⎡ ⎤ ⎢ ⎥⎢ ⎥ ⎢ ⎥⎢ ⎥⎡ ⎤ = =⎣ ⎦ ⎢ ⎥⎢ ⎥− ⎢ ⎥⎢ ⎥ ⎢ ⎥⎣ ⎦ ⎢ ⎥⎣ ⎦
  • 6. Step 4: Rotate angle θ about axis L  [ ] ⎥ ⎥ ⎥ ⎥ ⎦ ⎤ ⎢ ⎢ ⎢ ⎢ ⎣ ⎡ − = 1000 0100 00cossin 00sincos θθ θθ zR
  • 7. Step 5: Reverse the rotation about the Y axis [ ] ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎦ ⎤ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎣ ⎡ − = − 1000 00 0010 00 1 L V L A L A L V Ry [ ] ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎦ ⎤ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎣ ⎡ − = ⎥ ⎥ ⎥ ⎥ ⎦ ⎤ ⎢ ⎢ ⎢ ⎢ ⎣ ⎡ − = 1000 00 0010 00 1000 0cos0sin 0010 0sin0cos 22 22 L V L A L A L V Ry θθ θθ Inverse of Rotation: Replace θ by – θ sin θ by – sin θ cos θ remains cos θ (why?)
  • 8. Step 6: Reverse rotation about the X axis Rx[ ]−1 = 1 0 0 0 0 C V B V 0 0 − B V C V 0 0 0 0 1 ⎡ ⎣ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎤ ⎦ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ [ ] ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎦ ⎤ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎣ ⎡ − = ⎥ ⎥ ⎥ ⎥ ⎦ ⎤ ⎢ ⎢ ⎢ ⎢ ⎣ ⎡ − = 1000 00 00 0001 1000 0cossin0 0sincos0 0001 11 11 V C V B V B V C Rx θθ θθ
  • 9. Step 7: Reverse translation D[ ]−1 = 1 0 0 x0 0 1 0 y0 0 0 1 z0 0 0 0 1 ⎡ ⎣ ⎢ ⎢ ⎢ ⎢ ⎢ ⎤ ⎦ ⎥ ⎥ ⎥ ⎥ ⎥
  • 10. Overall Transformation 1 1 1 2 1 [ ] [ ] [ ] [ ] [ ][ ][ ][ ] [ ] x y z y xT D R R R P R R D T P θ− − − = =
  • 12. An Example 3 10 1 3 [P1]= 5 6 1 5 0 0 0 0 1 1 1 1Given the point matrix (four points) on the right; and a line, NM, with point N at (6, -2, 0) and point M at (12, 8, 0). Rotate the these four points 60 degrees around line NM (alone the N to M direction) N: u=0; M: u=1 10 6619.11 0,10,6 Thus 0 102 66 22 222 =+= =++= === = +−= += CBV CBAL CBA z uy ux 1.  Calculate the constants (the Line/Axis of Rotation) P1 P2 P3 P4 12 6 6 8 ( 2) 10 0 0 0 A B C = − = = − − = = − = 1 oP N P M = =
  • 13. 2. Translate N to the origin [D] = 1 0 0 -6 0 1 0 2 0 0 1 0 0 0 0 1 3. Rotate about the X axis [R]x = 1 0 0 0 0 C/V -B/V 0 0 B/V C/V 0 0 0 0 1 4. Rotate about the Y axis [R]y = V/L 0 -A/L 0 0 1 0 0 A/L 0 V/L 0 0 0 0 1 5. Rotate 60 degree (positive) [R]z = cos(60) -sin(60) 0 0 sin(60) cos(60) 0 0 0 0 1 0 0 0 0 1
  • 14. 6. Reverse [R]y V/L 0 A/L 0 [R]y -1= 0 1 0 0 -A/L 0 V/L 0 0 0 0 1 7. Reverse [R]x 1 0 0 0 [R]x -1= 0 C/V B/V 0 0 -B/V C/V 0 0 0 0 1 8. Reverse the Translation 1 0 0 6 [D]-1 = 0 1 0 -2 0 0 1 0 0 0 0 1
  • 15. 9. Calculate the total transformation 5.6471 10.2941 3.5000 5.6471 [P]2 = 3.4118 5.8235 -0.5000 3.4118 5.3468 0.5941 5.0498 5.3468 1.0000 1.0000 1.0000 1.0000 1 1 1 60 2 1 [ ] [ ] [ ] [ ] [ ][ ][ ][ ] [ ] x y z y xT D R R R R D TP R P − − − = = P1 P2 P3 P4