[ ] [ ] Orthogonal Transformation of Cartesian Coordinates in 2D & 3D. φ = cos 1 1/ φ = tan 1 [ 2 /1]

Similar documents
Two Dimensional Viewing

Today s class. Geometric objects and transformations. Informationsteknologi. Wednesday, November 7, 2007 Computer Graphics - Class 5 1

4. Two Dimensional Transformations

Image Warping : Computational Photography Alexei Efros, CMU, Fall Some slides from Steve Seitz

Image Warping. Some slides from Steve Seitz

Introduction to Homogeneous Transformations & Robot Kinematics

Modeling Transformations

Unit 2: Trigonometry. This lesson is not covered in your workbook. It is a review of trigonometry topics from previous courses.

Introduction to Trigonometric Functions. Peggy Adamson and Jackie Nicholas

Def.: a, b, and c are called the for the line L. x = y = z =

EXPANDING THE CALCULUS HORIZON. Robotics

Think About. Unit 5 Lesson 3. Investigation. This Situation. Name: a Where do you think the origin of a coordinate system was placed in creating this

Trigonometry Review Day 1

SM 2. Date: Section: Objective: The Pythagorean Theorem: In a triangle, or

Syllabus Objective: 3.1 The student will solve problems using the unit circle.

MATH STUDENT BOOK. 12th Grade Unit 7

Image Warping. Many slides from Alyosha Efros + Steve Seitz. Photo by Sean Carroll

Matrix Transformations. Affine Transformations

4.1 Angles and Angle Measure. 1, multiply by

Script for the Excel-based applet StereogramHeijn_v2.2.xls

CS F-07 Objects in 2D 1

Supplementary Material: The Rotation Matrix

+ i a y )( cosφ + isinφ) ( ) + i( a x. cosφ a y. = a x

What and Why Transformations?

PreCalculus Unit 1: Unit Circle Trig Quiz Review (Day 9)

GRAPHICS OUTPUT PRIMITIVES

Modeling Transformations

1. We ll look at: Types of geometrical transformation. Vector and matrix representations

Introduction to Homogeneous Transformations & Robot Kinematics

GLOBAL EDITION. Interactive Computer Graphics. A Top-Down Approach with WebGL SEVENTH EDITION. Edward Angel Dave Shreiner

Unit 4 Trigonometry. Study Notes 1 Right Triangle Trigonometry (Section 8.1)

Computer Graphics. Geometric Transformations

Computer Graphics. Geometric. Transformations. by Brian Wyvill University of Calgary. Lecture 2 Geometric. Transformations. Lecture 2 Geometric

Image Metamorphosis By Affine Transformations

Table of Contents. Unit 5: Trigonometric Functions. Answer Key...AK-1. Introduction... v

Trig/Math Anal Name No HW NO. SECTIONS ASSIGNMENT DUE TG 1. Practice Set J #1, 9*, 13, 17, 21, 22

Computer Graphics. Geometric Transformations

3-Dimensional Viewing

Interactive Computer Graphics. Warping and morphing. Warping and Morphing. Warping and Morphing. Lecture 14+15: Warping and Morphing. What is.

3D graphics rendering pipeline (1) 3D graphics rendering pipeline (3) 3D graphics rendering pipeline (2) 8/29/11

CS559: Computer Graphics

CSE328 Fundamentals of Computer Graphics: Theory, Algorithms, and Applications

Basic commands using the "Insert" menu: To insert a two-dimensional (2D) graph, use: To insert a three-dimensional (3D) graph, use: Insert > Plot > 3D

Reteaching Golden Ratio

SECTION 6-8 Graphing More General Tangent, Cotangent, Secant, and Cosecant Functions

2.1 The ReCTAngUlAR COORdInATe SySTemS And graphs

Determining the 2d transformation that brings one image into alignment (registers it) with another. And

is a plane curve and the equations are parametric equations for the curve, with parameter t.

3D Coordinates & Transformations

Math 26: Fall (part 1) The Unit Circle: Cosine and Sine (Evaluating Cosine and Sine, and The Pythagorean Identity)

14.1 Similar Triangles and the Tangent Ratio Per Date Trigonometric Ratios Investigate the relationship of the tangent ratio.

Appendix C: Review of Graphs, Equations, and Inequalities

High Dimensional Rendering in OpenGL

turn counterclockwise from the positive x-axis. However, we could equally well get to this point by a 3 4 turn clockwise, giving (r, θ) = (1, 3π 2

CMSC 425: Lecture 10 Basics of Skeletal Animation and Kinematics

CS770/870 Spring 2017 Transformations

10. ROTATIONS (I) I Main Topics

MATHEMATICS FOR ENGINEERING TUTORIAL 5 COORDINATE SYSTEMS

3.0 Trigonometry Review

3D Geometry and Camera Calibration

Transformations of Functions. 1. Shifting, reflecting, and stretching graphs Symmetry of functions and equations

Let s write this out as an explicit equation. Suppose that the point P 0 = (x 0, y 0, z 0 ), P = (x, y, z) and n = (A, B, C).

Transformations using matrices

Student Instruction Sheet: Unit 4, Lesson 3. Primary Trigonometric Ratios

Geometric Model of Camera

Transformations II. Week 2, Wed Jan 17

UNIT 5 TRIGONOMETRY Lesson 5.4: Calculating Sine, Cosine, and Tangent. Instruction. Guided Practice 5.4. Example 1

2.8 Distance and Midpoint Formulas; Circles

APPENDIX A: Trigonometry Basics

Polynomials. Math 4800/6080 Project Course

Polar Functions Polar coordinates

MEM380 Applied Autonomous Robots Winter Robot Kinematics

Section 9.3: Functions and their Graphs

A fast algorithm for coordinate rotation without using transcendental functions

LESSON 3.1 INTRODUCTION TO GRAPHING

Homogeneous Coordinates

Assignment. Pg. 567 #16-33, even pg 577 # 1-17 odd, 32-37

Systems of Linear Equations

Answers to practice questions for Midterm 1

Unit 6 Introduction to Trigonometry The Unit Circle (Unit 6.3)

Equations and Inequalities

MATHEMATICS FOR ENGINEERING TRIGONOMETRY

2.0 Trigonometry Review Date: Pythagorean Theorem: where c is always the.

(x, y) (ρ, θ) ρ θ. Polar Coordinates. Cartesian Coordinates

Modeling Transformations Revisited

MA 154 PRACTICE QUESTIONS FOR THE FINAL 11/ The angles with measures listed are all coterminal except: 5π B. A. 4

2D and 3D Transformations AUI Course Denbigh Starkey

(0, 4) Figure 12. x + 3. d = c. = b. Figure 13

Glossary alternate interior angles absolute value function Example alternate exterior angles Example angle of rotation Example

1. Determine the remaining sides and angles of the triangle ABC. Show all work and / or support your answer.

Transformations. which the book introduces in this chapter. If you shift the graph of y 1 x to the left 2 units and up 3 units, the

Using Polar Coordinates. Graphing and converting polar and rectangular coordinates

Appendix D Trigonometry

MAN-522: COMPUTER VISION SET-2 Projections and Camera Calibration

PARAMETRIC EQUATIONS AND POLAR COORDINATES

PLANE TRIGONOMETRY Exam I September 13, 2007

Double Integrals in Polar Coordinates

Convert the angle to radians. Leave as a multiple of π. 1) 36 1) 2) 510 2) 4) )

PATTERNS AND ALGEBRA. He opened mathematics to many discoveries and exciting applications.

Graphics and Interaction Transformation geometry and homogeneous coordinates

Transcription:

Orthogonal Transformation of Cartesian Coordinates in 2D & 3D A vector is specified b its coordinates, so it is defined relative to a reference frame. The same vector will have different coordinates in different coordinate sstems, even when the coordinate sstems share the same tpe, origin and scaling. There are man occasions when we need to transform vector information from one reference frame or coordinate sstem to another. In plate tectonics, we might want to describe the instantaneous motion of a point on the Pacific plate relative to (that is, in a reference frame that is fied to) the North American plate, or to the Hawaiian hotspot, or to the "no-net-rotation" reference frame, or... If this change in reference frame involves two coordinate sstems that share a common origin and that are of the same tpe (for eample, Cartesian X-Y-Z coordinates) and scaling (one unit measured along one coordinate ais is the same length as along all other coordinate aes), we sa that the change involves an orthogonal coordinate transformation. In the 2D illustration below, the location vector to point Q is {1, 2} in the X-Y coordinate sstem. The X'-Y' coordinate sstem is rotated b θ = +30 from the X-Y coordinate sstem. The length of the location vector to Q is ~2.24. What are the coordinates to point Q in the X'-Y' coordinate sstem? We will find the answer manuall at first, using plane trigonometr, and later we will learn a more general (and easier) wa to solve this tpe of problem in 2D and 3D. First, we determine the value to angle φ in the previous illustration, between the vector and the X coordinate ais. Eample. Given the previous figure, what is the angle φ between the vector to point Q = {1, 2} and the X coordinate ais? Answer. Project a line segment parallel to the Y ais that etends from the X ais to point Q at the head of the vector. The length of that line segment is 2. Notice that angle φ is an interior angle of a right triangle with apices at {0, 0}, {1, 2} and {1, 0}. Using the one of the following trigonometric relationships, φ = sin 1 2 / 2.24 [ ] [ ] φ = tan 1 [ 2 /1] φ = cos 1 1/ 2.24 we find that φ equals approimatel 1.11 radian or 63.43. Revised 2 September 2012 Page 1

Second, project a line perpendicular to the X' ais that passes through point Q. Notice the right triangle with apices {0, 0}, {1, 2} and the intersection of ais X' and the line ou just constructed. At the origin, one of the interior angles of that right triangle is the difference between angles φ and θ. Eample. What are the respective lengths of the opposite (O) and adjacent (A) sides of the right triangle whose hpotenuse is equal to 1 2 + 2 2 2.24 and where the relevant interior angle is (φ θ) = 63.43 30 = 33.43. Answer. Recalling the trigonometric relationship O = H sin(φ θ), Similarl, recalling that A = H cos(φ θ), O = 2.24 sin(33.43 ) = 1.23 A = 2.24 cos(33.43 ) = 1.87 The coordinates of the vector to point Q in the original X-Y coordinate sstem are {1, 2}. In the X'-Y' coordinate sstem with the same origin as the X-Y coordinate sstem but which is rotated 30 anti-clockwise from the X-Y sstem, the coordinates of the vector to Q are {1.87, 1.23}. Now that we know how to multipl a 31 vector matri b a 33 matri (or a 21 vector matri b a 22 matri, for the 2 dimensional case), we can take advantage of a simpler and more general wa to solve this kind of problem. We start b calling the unit vectors along the original X, Y and Z aes i, j and k, respectivel. In a similar manner, we call the unit vectors along the new X, Y and Z aes i', j' and k', respectivel. Using these unit vectors, we can define a 3 dimensional transformation matri J3D as follows J 3D = î ' î î ' ĵ î ' ˆk ĵ ' î ĵ ' ĵ ĵ ' ˆk ˆk ' î ˆk ' ĵ ˆk ' ˆk The first row in the transformation matri includes the coordinates of the î ' unit vector (which is along the new X' ais) along the original X, Y and Z coordinate aes, respectivel. The second row is the projection of the ĵ ' vector along the original coordinate aes, and the third row is the projection of the ˆk ' vector along the original coordinate aes. The 2-dimensional version of the transformation matri is J 2D, where J 2 D = î ' î ĵ ' î î ' ĵ ĵ ' ĵ Revised 2 September 2012 Page 2

If a new coordinate sstem X'-Y'-Z' is rotated b a positive angle θ (anti-clockwise) relative to the original coordinate sstem X-Y-Z, where both coordinate sstems share a common origin, the transformation matri is cosθ sinθ J 2 D = sinθ cosθ The matri equation that gives us the coordinates of a vector in a new coordinate sstem rotated b an angle of θ from the original coordinate sstem is ' = cosθ sinθ sinθ cosθ where {, } are the coordinates in the original coordinate sstem and {', } are the coordinates in the new coordinate sstem. Eample. If the coordinates of a vector in one coordinate sstem are {1, 2}, what are the coordinates of that vector in a new coordinate sstem with the same origin and that is rotated +30 (anti-clockwise) from the original coordinate sstem? Answer. Given ' = cosθ sinθ sinθ cosθ where {, } = {1, 2} and θ = 30, ' = cos(30 ) sin(30 ) sin(30 ) cos(30 ) which can be unpacked into parametric equations as follows: So {', } = {1.87, 1.23}. 1 2 ' = ((1) cos(30 )) + ((2) sin(30 )) = 1.87 = ((1) ( sin(30 ))) + ((2) cos(30 )) = 1.23. Revised 2 September 2012 Page 3

We had alread proven that a vector with coordinates {1, 2} in one coordinate sstem has coordinates {1.87, 1.23} in a coordinate sstem rotated 30 from original, so now we have duplicated that result using a transformation matri. Now that we have this tool, we can use it to quickl find the new coordinates of an vector whose coordinates are known in the original coordinate sstem. And we can find the coordinates of an vector in an coordinate sstem that shares an origin with our original coordinate sstem, so long as we know the angular relationship of the new coordinate aes to the original coordinate aes. Eample. Given the following unit vectors along an initial set of coordinate aes (X-Y-Z), î = {1, 0, 0}, ĵ = {0, 1, 0} and ˆk = {0, 0, 1}, and the following unit vectors along a new set of coordinate aes (epressed relative to the initial coordinate sstem and rounded to four places past the decimal), î ' = {0.6409, -0.7604, -0.1056}, ĵ ' = {0.6409, 0.6057, -0.4717}, and ˆk ' = {0.4226, 0.2346, 0.8754}. Use the appropriate dot products to find the transformation matri to go from the initial coordinates to the new coordinates, and find the new coordinates of the vector {2, 3, 1}. Answer. We need to solve the following equation for {',, z'} given {,, z} = {2, 3, 1}: ' î ' î î ' ĵ î ' ˆk = ĵ ' î ĵ ' ĵ ĵ ' ˆk z' ˆk ' î ˆk ' ĵ ˆk ' ˆk Computing all of the dot products and rounding to four places past the decimal gives us ' z' = 0.6409 0.7604 0.1056 0.6409 0.6057 0.4717 0.4226 0.2346 0.8754 so the new coordinates {',, z'} = {-1.105, 2.6271, 2.4244}. To check, we can multipl the new coordinates b the inverse of the transformation matri, and the result should be the original coordinates. J = z. î ' î î ' ĵ î ' ˆk î î ĵ ' î ĵ ' ĵ ĵ ' ˆk ' î ĵ ' î ˆk ', so J 1 = ĵ î ' ĵ ĵ ' ĵ ˆk ' ˆk ' î ˆk ' ĵ ˆk ' ˆk ˆk î ' ˆk ĵ ' ˆk ˆk ' 2 3 1 J 1 = 0.6409 0.6409 0.4226 0.7604 0.6057 0.2346 0.1056 0.4717 0.8754 Revised 2 September 2012 Page 4

We now solve the following equation for {,, z} given {',, z'} = {-1.105, 2.6271, 2.4244}: z = 0.6409 0.6409 0.4226 0.7604 0.6057 0.2346 0.1056 0.4717 0.8754 The solution, {,, z} = {2, 3, 1}, leads us back to where we began. 1.105 2.6271 2.4244. Resources Summar sheets on vectors (that contains information about dot products) and matrices are available from the same source from which ou obtained this summar sheet. Davis, H.F., and Snider, A.D., 1987, Introduction to vector analsis [fifth edition]: Boston, Alln and Bacon, 365 p. ISBN 0-205-10263-8. Web resources There are several videos available online from the Khan Academ (http://www.khanacadem.org) that relate to various aspects of coordinates and coordinate transformations. For eample, an introduction to Cartesian coordinates is available at http://www.khanacadem.org/math/algebra/linear-equations-and-inequalitie/v/descartes-andcartesian-coordinates Weisstein, Eric W., Cartesian coordinates: MathWorld--A Wolfram Web Resource, accessed 2 September 2012 via http://mathworld.wolfram.com/cartesiancoordinates.html Weisstein, Eric W., Coordinate sstem: MathWorld--A Wolfram Web Resource, accessed 2 September 2012 via http://mathworld.wolfram.com/coordinatesstem.html Weisstein, Eric W., Matri: MathWorld--A Wolfram Web Resource, accessed 2 September 2012 via http://mathworld.wolfram.com/matri.html Weisstein, Eric W., Matri inversion: MathWorld--A Wolfram Web Resource, accessed 2 September 2012 via http://mathworld.wolfram.com/matriinversion.html Weisstein, Eric W., Matri multiplication: MathWorld--A Wolfram Web Resource, accessed 2 September 2012 via http://mathworld.wolfram.com/matrimultiplication.html Weisstein, Eric W., Orthogonal coordinate sstem: MathWorld--A Wolfram Web Resource, accessed 2 September 2012 via http://mathworld.wolfram.com/orthogonalcoordinatesstem.html Weisstein, Eric W., Vector: MathWorld--A Wolfram Web Resource, accessed 2 September 2012 via http://mathworld.wolfram.com/vector.html Weisstein, Eric W., Vector multiplication: MathWorld--A Wolfram Web Resource, accessed 2 September 2012 via http://mathworld.wolfram.com/vectormultiplication.html Revised 2 September 2012 Page 5