4. Two Dimensional Transformations

Size: px
Start display at page:

Download "4. Two Dimensional Transformations"

Transcription

1 4. Two Dimensional Transformations CS362 Introduction to Computer Graphics Helena Wong, 2 In man applications, changes in orientations, sizes, and shapes are accomplished with geometric transformations that alter the coordinate descriptions of objects. Basic geometric transformations are: Translation Rotation Scaling Other transformations: Reflection Shear

2 4. Basic Transformations CS362 Introduction to Computer Graphics Helena Wong, 2 Translation We translate a 2D point b adding translation distances, t and t, to the original coordinate position (,): ' + t, ' + t Alternativel, translation can also be specified b the following transformation matri: t t

3 CS362 Introduction to Computer Graphics Helena Wong, 2 Then we can rewrite the formula as: ' ' t t For eample, to translate a triangle with vertices at original coordinates (,2), (,), (2,) b t 5, t, we compute as followings: Translation of verte (,2): ' ' * * 2 * * * 2 * 5* * 2 * 3 5

4 Translation of verte (,): ' 5 * + * + 5* 5 ' * + * + * 2 * + * + * CS362 Introduction to Computer Graphics Helena Wong, 2 Translation of verte (2,): ' 5 2 * 2 + * + 5* 25 ' * 2 + * + * 2 * 2 + * + * The resultant coordinates of the triangle vertices are (5,3), (5,2), and (25,2) respectivel. Eercise: translate a triangle with vertices at original coordinates (,25), (5,), (2,) b t 5, t 5. Roughl plot the original and resultant triangles.

5 Rotation About the Origin CS362 Introduction to Computer Graphics Helena Wong, 2 To rotate an object about the origin (,), we specif the rotation angle?. Positive and negative values for the rotation angle define counterclockwise and clockwise rotations respectivel. The followings is the computation of this rotation for a point: ' cos? - sin? ' sin? + cos? Alternativel, this rotation can also be specified b the following transformation matri: cos sin sin cos

6 CS362 Introduction to Computer Graphics Helena Wong, 2 Then we can rewrite the formula as: ' ' cos sin sin cos For eample, to rotate a triangle about the origin with vertices at original coordinates (,2), (,), (2,) b 3 degrees, we compute as followings: cos sin sin cos cos3 sin 3 sin 3 cos

7 Rotation of verte (,2): CS362 Introduction to Computer Graphics Helena Wong, 2 '.866 ' * + (.5) * 2 + * * * 2 + * * + * 2 + * Rotation of verte (,): '.866 ' * + (.5) * + * * * + * 3.66 * + * + *

8 Rotation of verte (2,): CS362 Introduction to Computer Graphics Helena Wong, 2 '.866 ' * 2 + (.5) * + * * * + * 8.66 * 2 + * + * The resultant coordinates of the triangle vertices are (-.34,22.32), (3.6,3.66), and (2.32,8.66) respectivel. Eercise: Rotate a triangle with vertices at original coordinates (,2), (5,), (2,) b 45 degrees. Roughl plot the original and resultant triangles.

9 Scaling With Respect to the Origin CS362 Introduction to Computer Graphics Helena Wong, 2 We scale a 2D object with respect to the origin b setting the scaling factors s and s, which are multiplied to the original verte coordinate positions (,): ' * s, ' * s Alternativel, this scaling can also be specified b the following transformation matri: s s

10 CS362 Introduction to Computer Graphics Helena Wong, 2 Then we can rewrite the formula as: ' ' s s For eample, to scale a triangle with respect to the origin, with vertices at original coordinates (,2), (,), (2,) b s 2, s.5, we compute as followings: Scaling of verte (,2): ' ' * * 2 * *.5* 2 * * * 2 2 * 3 2

11 Scaling of verte (,): CS362 Introduction to Computer Graphics Helena Wong, 2 ' 2 '.5 2 * + * + * 2 * +.5* + * 5 * + * + * Scaling of verte (2,): ' 2 ' * 2 + * + * 4 * 2 +.5* + * 5 * 2 + * + *

12 CS362 Introduction to Computer Graphics Helena Wong, 2 The resultant coordinates of the triangle vertices are (2,3), (2,5), and (4,5) respectivel. Eercise: Scale a triangle with vertices at original coordinates (,25), (5,), (2,) b s.5, s 2, with respect to the origin. Roughl plot the original and resultant triangles. 4.2 Concatenation Properties of Composite Matri I. Matri multiplication is associative: A B C (A B) C A (B C)

13 CS362 Introduction to Computer Graphics Helena Wong, 2 Therefore, we can evaluate matri products using these associative grouping. For eample, we have a triangle, we want to rotate it with the matri B, then we translate it with matri A. Then, for a verte of that triangle represented as C, we compute its transformation as: C'A (B C) But we can also change the computation method as: C' (A B) C The advantage of computing it using C' (A B) C instead of C'A (B C) is that, for computing the 3 vertices of the triangle, C, C 2, C 3, the computation time is shortened:

14 Using C'A (B C):. compute B C and put the result into I 2. compute A I and put the result into C ' 3. compute B C 2 and put the result into I 2 4. compute A I 2 and put the result into C 2 ' 5. compute B C 3 and put the result into I 3 6. compute A I 3 and put the result into C 3 ' CS362 Introduction to Computer Graphics Helena Wong, 2 Using C' (A B) C:. compute A B and put the result into M 2. compute M C and put the result into C ' 3. compute M C 2 and put the result into C 2 ' 4. compute M C 3 and put the result into C 3 '

15 CS362 Introduction to Computer Graphics Helena Wong, 2 Eample: Rotate a triangle with vertices (,2), (,), (2,) about the origin b 3 degrees and then translate it b t 5, t, We compute the rotation matri: B cos3 sin 3 sin 3 cos And we compute the translation matri: A 5 Then, we compute MA B

16 CS362 Introduction to Computer Graphics Helena Wong, 2 M M * *.5 + 5* * *.5 + * * *.5 + * *.5 + * * *.5 + * * *.5 + * * * + * + 5* * + * + * * + * + *.866 M Then, we compute the transformations of the 3 vertices:

17 Transformation of verte (,2): CS362 Introduction to Computer Graphics Helena Wong, 2 '.866 ' * + (.5) * * * * 2 + * * + * 2 + * Transformation of verte (,): '.866 ' * + (.5) * + 5 * * * + * * + * + *

18 Transformation of verte (2,): CS362 Introduction to Computer Graphics Helena Wong, 2 '.866 ' * 2 + (.5) * + 5 * * * + * * 2 + * + * The resultant coordinates of the triangle vertices are (3.66,32.32), (8.66,23.66), and (7.32,28.66) respectivel.

19 II. Matri multiplication ma not be commutative: CS362 Introduction to Computer Graphics Helena Wong, 2 A B ma not equal to B A This means that if we want to translate and rotate an object, we must be careful about the order in which the composite matri is evaluated. Using the previous eample, if ou compute C' (A B) C, ou are rotating the triangle with B first, then translate it with A, but if ou compute C' (B A) C, ou are translating it with A first, then rotate it with B. The result is different. Eercise: Translate a triangle with vertices (,2), (,), (2,) b t 5, t and then rotate it about the origin b 3 degrees. Compare the result with the one obtained previousl: (3.66,32.32), (8.66,23.66), and (7.32,28.66) b plotting the original triangle together with these 2 results.

20 CS362 Introduction to Computer Graphics Helena Wong, Composite Transformation Matri Translations B common sense, if we translate a shape with 2 successive translation vectors: (t, t ) and (t 2, t 2 ), it is equal to a single translation of (t + t 2, t + t 2 ). This additive propert can be demonstrated b composite transformation matri:

21 CS362 Introduction to Computer Graphics Helena Wong, 2 t t 2 2 t t * + * + t 2 * *+ * + t * 2 *+ * + * * + *+ t * + *+ t 2 2 * * * + *+ * * t * t * t + * t + * t + * t + t 2 * + t 2 * + * Y t t + + t t 2 2 This demonstrates that 2 successive translations are additive.

22 Rotations CS362 Introduction to Computer Graphics Helena Wong, 2 B common sense, if we rotate a shape with 2 successive rotation angles: a and?, about the origin, it is equal to rotating the shape once b an angle a +? about the origin. Similarl, this additive propert can be demonstrated b composite transformation matri: cos sin sin cos cosα sin α sin α cosα coscosα + ( sin )*sin α + * sin cosα + cos*sin α + * *cosα + *sin α + * cos*( sin α) + ( sin )*cosα + * sin *( sin α) + cos*cosα + * *( sin α) + *cosα + * cos* + ( sin )* + * sin * + cos* + * * + * + *

23 CS362 Introduction to Computer Graphics Helena Wong, 2 coscosα sin sin α sin cosα + cossin α (cossin α + sin cosα) sin sin α + coscosα cos( α + ) sin( α + ) sin( α + ) cos( α + ) This demonstrates that 2 successive rotations about the origin are additive. Scaling With Respect to the Origin B common sense, if we scale a shape with 2 successive scaling factor: (s, s ) and (s 2, s 2 ), with respect to the origin, it is equal to a single scaling of (s * s 2, s * s 2 ) with respect to the origin.

24 This multiplicative propert can be demonstrated b composite transformation matri: CS362 Introduction to Computer Graphics Helena Wong, 2 s 2 s 2 s s s2 *s + * + * *s + s2 * + * *s + * + * s 2 * * + *s + s 2 *s * + *s + * + * + * s2 * + * + * * + s2 * + * * + * + * s *s 2 s *s 2

25 CS362 Introduction to Computer Graphics Helena Wong, 2 This demonstrates that 2 successive scalings with respect to the origin are multiplicative. General Pivot-Point Rotation Rotation about an arbitrar pivot point is not as simple as rotation about the origin. The procedure of rotation about an arbitrar pivot point is:. Translate the object so that the pivot-point position is moved to the origin. 2. Rotate the object about the origin. 3. Translate the object so that the pivot point is returned to its original position.

26 CS362 Introduction to Computer Graphics Helena Wong, 2 The corresponding composite transformation matri is: r r cos sin sin cos r r

27 CS362 Introduction to Computer Graphics Helena Wong, 2 cos sin sin cos r r r r cos sin sin cos r r cos + sin r r sin + cos + r r General Fied-Point Scaling Scaling with respect to an arbitrar fied point is not as simple as scaling with respect to the origin. The procedure of scaling with respect to an arbitrar fied point is:

28 CS362 Introduction to Computer Graphics Helena Wong, 2. Translate the object so that the fied point coincides with the origin. 2. Scale the object with respect to the origin. 3. Use the inverse translation of step to return the object to its original position.

29 CS362 Introduction to Computer Graphics Helena Wong, 2 The corresponding composite transformation matri is: f f s s f f ) s ( s ) s ( s f f General Scaling Direction Scaling along an arbitrar direction is not as simple as scaling along the - ais. The procedure of scaling along and normal to an arbitrar direction (s and s 2 ), with respect to the origin, is:. Rotate the object so that the directions for s and s 2 coincide with the and aes respectivel. 2. Scale the object with respect to the origin using (s, s 2 ). 3. Use an opposite rotation to return points to their original orientation.

30 CS362 Introduction to Computer Graphics Helena Wong, 2 The corresponding composite transformation matri is: ) cos( ) sin( ) sin( ) cos( s s 2 cos sin sin cos

31 CS362 Introduction to Computer Graphics Helena Wong, Other Transformations Reflection Reflection about the ais: ' ' ie. '; '-

32 CS362 Introduction to Computer Graphics Helena Wong, 2 Reflection about the ais: ' ' ie. '-; ' Flipping both and coordinates of a point relative to the origin: ' ' ie. '-; '-

33 CS362 Introduction to Computer Graphics Helena Wong, 2 Reflection about the diagonal line : ' ' ie. '; ' Reflection about the diagonal line -: ' ' ie. '-; '-

34 CS362 Introduction to Computer Graphics Helena Wong, 2 Shear X-direction shear, with a shearing parameter sh, relative to the -ais: ' sh ' ie. '+*sh ; '- Eercise: Think of a -direction shear, with a shearing parameter sh, relative to the -ais.

35 4.5 Transformation Between 2 Cartesian Sstems CS362 Introduction to Computer Graphics Helena Wong, 2 For modeling and design applications, individual objects ma be defined in their own local Cartesian references (modeling coordinates). The local coordinates must then be transformed to position the objects within the overall scene coordinate sstem (world coordinates). Suppose we want to transform object descriptions from the sstem to the '' sstem: The composite transformation is: cos( ) sin( ) sin( ) cos( ) r r

What and Why Transformations?

What and Why Transformations? 2D transformations What and Wh Transformations? What? : The geometrical changes of an object from a current state to modified state. Changing an object s position (translation), orientation (rotation)

More information

CSE528 Computer Graphics: Theory, Algorithms, and Applications

CSE528 Computer Graphics: Theory, Algorithms, and Applications CSE528 Computer Graphics: Theor, Algorithms, and Applications Hong Qin State Universit of New York at Ston Brook (Ston Brook Universit) Ston Brook, New York 794--44 Tel: (63)632-845; Fa: (63)632-8334 qin@cs.sunsb.edu

More information

Computer Graphics. Geometric Transformations

Computer Graphics. Geometric Transformations Contents coordinate sstems scalar values, points, vectors, matrices right-handed and left-handed coordinate sstems mathematical foundations transformations mathematical descriptions of geometric changes,

More information

Computer Graphics. Geometric Transformations

Computer Graphics. Geometric Transformations Computer Graphics Geometric Transformations Contents coordinate sstems scalar values, points, vectors, matrices right-handed and left-handed coordinate sstems mathematical foundations transformations mathematical

More information

Two Dimensional Viewing

Two Dimensional Viewing Two Dimensional Viewing Dr. S.M. Malaek Assistant: M. Younesi Two Dimensional Viewing Basic Interactive Programming Basic Interactive Programming User controls contents, structure, and appearance of objects

More information

1 Points and Distances

1 Points and Distances Ale Zorn 1 Points and Distances 1. Draw a number line, and plot and label these numbers: 0, 1, 6, 2 2. Plot the following points: (A) (3,1) (B) (2,5) (C) (-1,1) (D) (2,-4) (E) (-3,-3) (F) (0,4) (G) (-2,0)

More information

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

[ ] [ ] Orthogonal Transformation of Cartesian Coordinates in 2D & 3D. φ = cos 1 1/ φ = tan 1 [ 2 /1] 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

More information

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

CSE328 Fundamentals of Computer Graphics: Theory, Algorithms, and Applications CSE328 Fundamentals of Computer Graphics: Theor, Algorithms, and Applications Hong in State Universit of New York at Ston Brook (Ston Brook Universit) Ston Brook, New York 794-44 Tel: (63)632-845; Fa:

More information

CS770/870 Spring 2017 Transformations

CS770/870 Spring 2017 Transformations CS770/870 Spring 2017 Transformations Coordinate sstems 2D Transformations Homogeneous coordinates Matrices, vectors, points Coordinate Sstems Coordinate sstems used in graphics Screen coordinates: the

More information

CS F-07 Objects in 2D 1

CS F-07 Objects in 2D 1 CS420-2010F-07 Objects in 2D 1 07-0: Representing Polgons We want to represent a simple polgon Triangle, rectangle, square, etc Assume for the moment our game onl uses these simple shapes No curves for

More information

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

GLOBAL EDITION. Interactive Computer Graphics. A Top-Down Approach with WebGL SEVENTH EDITION. Edward Angel Dave Shreiner GLOBAL EDITION Interactive Computer Graphics A Top-Down Approach with WebGL SEVENTH EDITION Edward Angel Dave Shreiner This page is intentionall left blank. 4.10 Concatenation of Transformations 219 in

More information

2D Transformations. 7 February 2017 Week 5-2D Transformations 1

2D Transformations. 7 February 2017 Week 5-2D Transformations 1 2D Transformations 7 Februar 27 Week 5-2D Transformations Matri math Is there a difference between possible representations? a c b e d f ae bf ce df a c b d e f ae cf be df a b c d e f ae bf ce df 7 Februar

More information

CS Computer Graphics: Transformations & The Synthetic Camera

CS Computer Graphics: Transformations & The Synthetic Camera CS 543 - Computer Graphics: Transformations The Snthetic Camera b Robert W. Lindeman gogo@wpi.edu (with help from Emmanuel Agu ;-) Introduction to Transformations A transformation changes an objects Size

More information

STRAND I: Geometry and Trigonometry. UNIT 37 Further Transformations: Student Text Contents. Section Reflections. 37.

STRAND I: Geometry and Trigonometry. UNIT 37 Further Transformations: Student Text Contents. Section Reflections. 37. MEP Jamaica: STRN I UNIT 7 Further Transformations: Student Tet ontents STRN I: Geometr and Trigonometr Unit 7 Further Transformations Student Tet ontents Section 7. Reflections 7. Rotations 7. Translations

More information

Modeling Transformations

Modeling Transformations Modeling Transformations Michael Kazhdan (601.457/657) HB Ch. 5 FvDFH Ch. 5 Overview Ra-Tracing so far Modeling transformations Ra Tracing Image RaTrace(Camera camera, Scene scene, int width, int heigh,

More information

Rotate. A bicycle wheel can rotate clockwise or counterclockwise. ACTIVITY: Three Basic Ways to Move Things

Rotate. A bicycle wheel can rotate clockwise or counterclockwise. ACTIVITY: Three Basic Ways to Move Things . Rotations object in a plane? What are the three basic was to move an Rotate A biccle wheel can rotate clockwise or counterclockwise. 0 0 0 9 9 9 8 8 8 7 6 7 6 7 6 ACTIVITY: Three Basic Was to Move Things

More information

Transformations II. Arbitrary 3D Rotation. What is its inverse? What is its transpose? Can we constructively elucidate this relationship?

Transformations II. Arbitrary 3D Rotation. What is its inverse? What is its transpose? Can we constructively elucidate this relationship? Utah School of Computing Fall 25 Transformations II CS46 Computer Graphics From Rich Riesenfeld Fall 25 Arbitrar 3D Rotation What is its inverse? What is its transpose? Can we constructivel elucidate this

More information

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

Transformations of Functions. 1. Shifting, reflecting, and stretching graphs Symmetry of functions and equations Chapter Transformations of Functions TOPICS.5.. Shifting, reflecting, and stretching graphs Smmetr of functions and equations TOPIC Horizontal Shifting/ Translation Horizontal Shifting/ Translation Shifting,

More information

Name Class Date. subtract 3 from each side. w 5z z 5 2 w p - 9 = = 15 + k = 10m. 10. n =

Name Class Date. subtract 3 from each side. w 5z z 5 2 w p - 9 = = 15 + k = 10m. 10. n = Reteaching Solving Equations To solve an equation that contains a variable, find all of the values of the variable that make the equation true. Use the equalit properties of real numbers and inverse operations

More information

CS559: Computer Graphics

CS559: Computer Graphics CS559: Computer Graphics Lecture 8: 3D Transforms Li Zhang Spring 28 Most Slides from Stephen Chenne Finish Color space Toda 3D Transforms and Coordinate sstem Reading: Shirle ch 6 RGB and HSV Green(,,)

More information

CS 335 Graphics and Multimedia. Geometric Warping

CS 335 Graphics and Multimedia. Geometric Warping CS 335 Graphics and Multimedia Geometric Warping Geometric Image Operations Eample transformations Straightforward methods and their problems The affine transformation Transformation algorithms: Forward

More information

6. Modelview Transformations

6. Modelview Transformations 6. Modelview Transformations Transformation Basics Transformations map coordinates from one frame of reference to another through matri multiplications Basic transformation operations include: - translation

More information

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

Today s class. Geometric objects and transformations. Informationsteknologi. Wednesday, November 7, 2007 Computer Graphics - Class 5 1 Toda s class Geometric objects and transformations Wednesda, November 7, 27 Computer Graphics - Class 5 Vector operations Review of vector operations needed for working in computer graphics adding two

More information

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

3D graphics rendering pipeline (1) 3D graphics rendering pipeline (3) 3D graphics rendering pipeline (2) 8/29/11 3D graphics rendering pipeline (1) Geometr Rasteriation 3D Coordinates & Transformations Prof. Aaron Lanterman (Based on slides b Prof. Hsien-Hsin Sean Lee) School of Electrical and Computer Engineering

More information

9.1 Exercises. Section 9.1 The Square Root Function 879. In Exercises 1-10, complete each of the following tasks.

9.1 Exercises. Section 9.1 The Square Root Function 879. In Exercises 1-10, complete each of the following tasks. Section 9. The Square Root Function 879 9. Eercises In Eercises -, complete each of the following tasks. i. Set up a coordinate sstem on a sheet of graph paper. Label and scale each ais. ii. Complete the

More information

Transformations. Examples of transformations: shear. scaling

Transformations. Examples of transformations: shear. scaling Transformations Eamples of transformations: translation rotation scaling shear Transformations More eamples: reflection with respect to the y-ais reflection with respect to the origin Transformations Linear

More information

Computer Graphics. P04 Transformations. Aleksandra Pizurica Ghent University

Computer Graphics. P04 Transformations. Aleksandra Pizurica Ghent University Computer Graphics P4 Transformations Aleksandra Pizurica Ghent Universit Telecommunications and Information Processing Image Processing and Interpretation Group Transformations in computer graphics Goal:

More information

3D Coordinates & Transformations

3D Coordinates & Transformations 3D Coordinates & Transformations Prof. Aaron Lanterman (Based on slides b Prof. Hsien-Hsin Sean Lee) School of Electrical and Computer Engineering Georgia Institute of Technolog 3D graphics rendering pipeline

More information

9. f(x) = x f(x) = x g(x) = 2x g(x) = 5 2x. 13. h(x) = 1 3x. 14. h(x) = 2x f(x) = x x. 16.

9. f(x) = x f(x) = x g(x) = 2x g(x) = 5 2x. 13. h(x) = 1 3x. 14. h(x) = 2x f(x) = x x. 16. Section 4.2 Absolute Value 367 4.2 Eercises For each of the functions in Eercises 1-8, as in Eamples 7 and 8 in the narrative, mark the critical value on a number line, then mark the sign of the epression

More information

Reteaching Golden Ratio

Reteaching Golden Ratio Name Date Class Golden Ratio INV 11 You have investigated fractals. Now ou will investigate the golden ratio. The Golden Ratio in Line Segments The golden ratio is the irrational number 1 5. c On the line

More information

Transformations II. Week 2, Wed Jan 17

Transformations II. Week 2, Wed Jan 17 Universit of British Columbia CPSC 34 Computer Graphics Jan-Apr 27 Tamara Munzner Transformations II Week 2, Wed Jan 7 http://www.ugrad.cs.ubc.ca/~cs34/vjan27 Readings for Jan 5-22 FCG Chap 6 Transformation

More information

Plot and connect the points in a coordinate plane to make a polygon. Name the polygon.

Plot and connect the points in a coordinate plane to make a polygon. Name the polygon. . Start Thinking Find at least two objects in each of the following categories: circle, square, triangle, and rectangle (nonsquare). Use a table to compare each object of the same categor in the following

More information

Section 10.1 Polar Coordinates

Section 10.1 Polar Coordinates Section 10.1 Polar Coordinates Up until now, we have always graphed using the rectangular coordinate system (also called the Cartesian coordinate system). In this section we will learn about another system,

More information

1/29/13. Computer Graphics. Transformations. Simple Transformations

1/29/13. Computer Graphics. Transformations. Simple Transformations /29/3 Computer Graphics Transformations Simple Transformations /29/3 Contet 3D Coordinate Sstems Right hand (or counterclockwise) coordinate sstem Left hand coordinate sstem Not used in this class and

More information

Polynomials. Math 4800/6080 Project Course

Polynomials. Math 4800/6080 Project Course Polnomials. Math 4800/6080 Project Course 2. The Plane. Boss, boss, ze plane, ze plane! Tattoo, Fantas Island The points of the plane R 2 are ordered pairs (x, ) of real numbers. We ll also use vector

More information

Modeling Transformations

Modeling Transformations Modeling Transformations Thomas Funkhouser Princeton Universit CS 426, Fall 2 Modeling Transformations Specif transformations for objects Allos definitions of objects in on coordinate sstems Allos use

More information

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

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 Think About This Situation Unit 5 Lesson 3 Investigation 1 Name: Eamine how the sequence of images changes from frame to frame. a Where do ou think the origin of a coordinate sstem was placed in creating

More information

A rotation is a transformation that turns a figure around a point, called the.

A rotation is a transformation that turns a figure around a point, called the. Name: # Geometr: Period Ms. Pierre Date: Rotations Toda s Objective KWBAT represent a rotation as a function of coordinate pairs and rotate a figure in the plane following a rule described in words or

More information

Modeling Transformations

Modeling Transformations Modeling Transformations Michael Kazhdan (601.457/657) HB Ch. 5 FvDFH Ch. 5 Announcement Assignment 2 has been posted: Due: 10/24 ASAP: Download the code and make sure it compiles» On windows: just build

More information

IMGD The Game Development Process: 3D Modeling and Transformations

IMGD The Game Development Process: 3D Modeling and Transformations IMGD - The Game Development Process: 3D Modeling and Transformations b Robert W. Lindeman (gogo@wpi.edu Kent Quirk (kent_quirk@cognito.com (with lots of input from Mark Clapool! Overview of 3D Modeling

More information

Introduction to Trigonometric Functions. Peggy Adamson and Jackie Nicholas

Introduction to Trigonometric Functions. Peggy Adamson and Jackie Nicholas Mathematics Learning Centre Introduction to Trigonometric Functions Pegg Adamson and Jackie Nicholas c 998 Universit of Sdne Acknowledgements A significant part of this manuscript has previousl appeared

More information

Trigonometry Review Day 1

Trigonometry Review Day 1 Name Trigonometry Review Day 1 Algebra II Rotations and Angle Terminology II Terminal y I Positive angles rotate in a counterclockwise direction. Reference Ray Negative angles rotate in a clockwise direction.

More information

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

Def.: a, b, and c are called the for the line L. x = y = z = Bob Brown, CCBC Dundalk Math 253 Calculus 3, Chapter Section 5 Completed Lines in Space Eercise : Consider the vector v = Sketch and describe the following set: t v ta, tb, tc : t a, b, c. Let P =,,. Sketch

More information

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

Math 26: Fall (part 1) The Unit Circle: Cosine and Sine (Evaluating Cosine and Sine, and The Pythagorean Identity) Math : Fall 0 0. (part ) The Unit Circle: Cosine and Sine (Evaluating Cosine and Sine, and The Pthagorean Identit) Cosine and Sine Angle θ standard position, P denotes point where the terminal side of

More information

Matrix Representations

Matrix Representations CONDENSED LESSON 6. Matri Representations In this lesson, ou Represent closed sstems with transition diagrams and transition matrices Use matrices to organize information Sandra works at a da-care center.

More information

7. f(x) = 1 2 x f(x) = x f(x) = 4 x at x = 10, 8, 6, 4, 2, 0, 2, and 4.

7. f(x) = 1 2 x f(x) = x f(x) = 4 x at x = 10, 8, 6, 4, 2, 0, 2, and 4. Section 2.2 The Graph of a Function 109 2.2 Eercises Perform each of the following tasks for the functions defined b the equations in Eercises 1-8. i. Set up a table of points that satisf the given equation.

More information

Image Metamorphosis By Affine Transformations

Image Metamorphosis By Affine Transformations Image Metamorphosis B Affine Transformations Tim Mers and Peter Spiegel December 16, 2005 Abstract Among the man was to manipulate an image is a technique known as morphing. Image morphing is a special

More information

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

Determining the 2d transformation that brings one image into alignment (registers it) with another. And Last two lectures: Representing an image as a weighted combination of other images. Toda: A different kind of coordinate sstem change. Solving the biggest problem in using eigenfaces? Toda Recognition

More information

CMSC 425: Lecture 10 Basics of Skeletal Animation and Kinematics

CMSC 425: Lecture 10 Basics of Skeletal Animation and Kinematics : Lecture Basics of Skeletal Animation and Kinematics Reading: Chapt of Gregor, Game Engine Architecture. The material on kinematics is a simplification of similar concepts developed in the field of robotics,

More information

13.2. General Angles and Radian Measure. What you should learn

13.2. General Angles and Radian Measure. What you should learn Page 1 of 1. General Angles and Radian Measure What ou should learn GOAL 1 Measure angles in standard position using degree measure and radian measure. GOAL Calculate arc lengths and areas of sectors,

More information

UNIT 2 2D TRANSFORMATIONS

UNIT 2 2D TRANSFORMATIONS UNIT 2 2D TRANSFORMATIONS Introduction With the procedures for displaying output primitives and their attributes, we can create variety of pictures and graphs. In many applications, there is also a need

More information

Modeling Transformations Revisited

Modeling Transformations Revisited Modeling Transformations Revisited Basic 3D Transformations Translation Scale Shear Rotation 3D Transformations Same idea as 2D transformations o Homogeneous coordinates: (,,z,w) o 44 transformation matrices

More information

Junior Circle Meeting 9 Commutativity and Inverses. May 30, We are going to examine different ways to transform the square below:

Junior Circle Meeting 9 Commutativity and Inverses. May 30, We are going to examine different ways to transform the square below: Junior Circle Meeting 9 Commutativity and Inverses May 0, 2010 We are going to examine different ways to transform the square below: Just as with the triangle from last week, we are going to examine flips

More information

More on Transformations. COS 426, Spring 2019 Princeton University

More on Transformations. COS 426, Spring 2019 Princeton University More on Transformations COS 426, Spring 2019 Princeton Universit Agenda Grab-bag of topics related to transformations: General rotations! Euler angles! Rodrigues s rotation formula Maintaining camera transformations!

More information

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

(x, y) (ρ, θ) ρ θ. Polar Coordinates. Cartesian Coordinates Coordinate Sstems Point Representation in two dimensions Cartesian Coordinates: (; ) Polar Coordinates: (; ) (, ) ρ θ (ρ, θ) Cartesian Coordinates Polar Coordinates p = CPS1, 9: Computer Graphics D Geometric

More information

Three-Dimensional Coordinates

Three-Dimensional Coordinates CHAPTER Three-Dimensional Coordinates Three-dimensional movies superimpose two slightl different images, letting viewers with polaried eeglasses perceive depth (the third dimension) on a two-dimensional

More information

STRAND J: TRANSFORMATIONS, VECTORS and MATRICES

STRAND J: TRANSFORMATIONS, VECTORS and MATRICES Mathematics SKE, Strand J UNIT J Further Transformations: Tet STRND J: TRNSFORMTIONS, VETORS and MTRIES J Further Transformations Tet ontents Section J.1 Translations * J. ombined Transformations Mathematics

More information

Lines and Their Slopes

Lines and Their Slopes 8.2 Lines and Their Slopes Linear Equations in Two Variables In the previous chapter we studied linear equations in a single variable. The solution of such an equation is a real number. A linear equation

More information

How can you enlarge or reduce a figure in the coordinate plane? Dilate. ACTIVITY: Comparing Triangles in a Coordinate Plane.

How can you enlarge or reduce a figure in the coordinate plane? Dilate. ACTIVITY: Comparing Triangles in a Coordinate Plane. . Dilations How can ou enlarge or reduce a figure in the coordinate plane? Dilate When ou have our ees checked, the optometrist sometimes dilates one or both of the pupils of our ees. ACTIVITY: Comparing

More information

6. f(x) = x f(x) = x f(x) = x f(x) = 3 x. 10. f(x) = x + 3

6. f(x) = x f(x) = x f(x) = x f(x) = 3 x. 10. f(x) = x + 3 Section 9.1 The Square Root Function 879 9.1 Eercises In Eercises 1-, complete each of the following tasks. i. Set up a coordinate sstem on a sheet of graph paper. Label and scale each ais. ii. Complete

More information

Modeling Transformations

Modeling Transformations Transformations Transformations Specif transformations for objects o Allos definitions of objects in on coordinate sstems o Allos use of object definition multiple times in a scene Adam Finkelstein Princeton

More information

8.6 Three-Dimensional Cartesian Coordinate System

8.6 Three-Dimensional Cartesian Coordinate System SECTION 8.6 Three-Dimensional Cartesian Coordinate Sstem 69 What ou ll learn about Three-Dimensional Cartesian Coordinates Distance and Midpoint Formulas Equation of a Sphere Planes and Other Surfaces

More information

Unit 2: Function Transformation Chapter 1

Unit 2: Function Transformation Chapter 1 Basic Transformations Reflections Inverses Unit 2: Function Transformation Chapter 1 Section 1.1: Horizontal and Vertical Transformations A of a function alters the and an combination of the of the graph.

More information

Modeling Transformations

Modeling Transformations שיעור 3 גרפיקה ממוחשבת תשס"ח ב ליאור שפירא Modeling Transformations Heavil based on: Thomas Funkhouser Princeton Universit CS 426, Fall 2 Modeling Transformations Specif transformations for objects Allows

More information

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

PATTERNS AND ALGEBRA. He opened mathematics to many discoveries and exciting applications. PATTERNS AND ALGEBRA The famous French philosopher and mathematician René Descartes (596 65) made a great contribution to mathematics in 67 when he published a book linking algebra and geometr for the

More information

Rotations. Essential Question How can you rotate a figure in a coordinate plane?

Rotations. Essential Question How can you rotate a figure in a coordinate plane? 11.3 Rotations Essential Question How can ou rotate a figure in a coordinate plane? Rotating a Triangle in a oordinate lane ONSTRUTING VILE RGUMENTS To be proficient in math, ou need to use previousl established

More information

CS5620 Intro to Computer Graphics

CS5620 Intro to Computer Graphics CS56 and Quaternions Piar s Luo Jr. A New Dimension - Time 3 4 Principles of Traditional Specifing Anticipation Suash/Stretch Secondar Action 5 6 C. Gotsman, G. Elber,. Ben-Chen Page CS56 Keframes anual

More information

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

1. We ll look at: Types of geometrical transformation. Vector and matrix representations Tob Howard COMP272 Computer Graphics and Image Processing 3: Transformations Tob.Howard@manchester.ac.uk Introduction We ll look at: Tpes of geometrical transformation Vector and matri representations

More information

Unit 5 Lesson 2 Investigation 1

Unit 5 Lesson 2 Investigation 1 Name: Investigation 1 Modeling Rigid Transformations CPMP-Tools Computer graphics enable designers to model two- and three-dimensional figures and to also easil manipulate those figures. For eample, interior

More information

Appendix A.6 Functions

Appendix A.6 Functions A. Functions 539 RELATIONS: DOMAIN AND RANGE Appendi A. Functions A relation is a set of ordered pairs. A relation can be a simple set of just a few ordered pairs, such as {(0, ), (1, 3), (, )}, or it

More information

Uses of Transformations. 2D transformations Homogeneous coordinates. Transformations. Transformations. Transformations. Transformations and matrices

Uses of Transformations. 2D transformations Homogeneous coordinates. Transformations. Transformations. Transformations. Transformations and matrices Uses of Transformations 2D transformations Homogeneous coordinates odeling: position and resie parts of a comple model; Viewing: define and position the virtual camera Animation: define how objects move/change

More information

Lesson 8.1 Exercises, pages

Lesson 8.1 Exercises, pages Lesson 8.1 Eercises, pages 1 9 A. Complete each table of values. a) -3 - -1 1 3 3 11 8 5-1 - -7 3 11 8 5 1 7 To complete the table for 3, take the absolute value of each value of 3. b) - -3 - -1 1 3 3

More information

3-2. Families of Graphs. Look Back. OBJECTIVES Identify transformations of simple graphs. Sketch graphs of related functions.

3-2. Families of Graphs. Look Back. OBJECTIVES Identify transformations of simple graphs. Sketch graphs of related functions. 3-2 BJECTIVES Identif transformations of simple graphs. Sketch graphs of related functions. Families of Graphs ENTERTAINMENT At some circuses, a human cannonball is shot out of a special cannon. In order

More information

Lecture 4: Viewing. Topics:

Lecture 4: Viewing. Topics: Lecture 4: Viewing Topics: 1. Classical viewing 2. Positioning the camera 3. Perspective and orthogonal projections 4. Perspective and orthogonal projections in OpenGL 5. Perspective and orthogonal projection

More information

Unit 14: Transformations (Geometry) Date Topic Page

Unit 14: Transformations (Geometry) Date Topic Page Unit 14: Transformations (Geometry) Date Topic Page image pre-image transformation translation image pre-image reflection clockwise counterclockwise origin rotate 180 degrees rotate 270 degrees rotate

More information

9 3 Rotations 9 4 Symmetry

9 3 Rotations 9 4 Symmetry h 9: Transformations 9 1 Translations 9 Reflections 9 3 Rotations 9 Smmetr 9 1 Translations: Focused Learning Target: I will be able to Identif Isometries. Find translation images of figures. Vocabular:

More information

Lecture 4: Transforms. Computer Graphics CMU /15-662, Fall 2016

Lecture 4: Transforms. Computer Graphics CMU /15-662, Fall 2016 Lecture 4: Transforms Computer Graphics CMU 15-462/15-662, Fall 2016 Brief recap from last class How to draw a triangle - Why focus on triangles, and not quads, pentagons, etc? - What was specific to triangles

More information

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

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 CHAPTER 8 Transformations Content Summar In Chapter 8, students continue their work with functions, especiall nonlinear functions, through further stud of function graphs. In particular, the consider three

More information

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

Image Warping : Computational Photography Alexei Efros, CMU, Fall Some slides from Steve Seitz Image Warping http://www.jeffre-martin.com Some slides from Steve Seitz 5-463: Computational Photograph Aleei Efros, CMU, Fall 2 Image Transformations image filtering: change range of image g() T(f())

More information

Chapter 1 Notes, Calculus I with Precalculus 3e Larson/Edwards

Chapter 1 Notes, Calculus I with Precalculus 3e Larson/Edwards Contents 1.1 Functions.............................................. 2 1.2 Analzing Graphs of Functions.................................. 5 1.3 Shifting and Reflecting Graphs..................................

More information

Image warping. image filtering: change range of image. image warping: change domain of image g(x) = f(h(x)) h(y)=0.5y+0.5. h([x,y])=[x,y/2] f h

Image warping. image filtering: change range of image. image warping: change domain of image g(x) = f(h(x)) h(y)=0.5y+0.5. h([x,y])=[x,y/2] f h Image warping Image warping image filtering: change range of image g() () = h(f()) h(f()) f h g h()=0.5+0.5 image warping: change domain of image g() = f(h()) f h g h([,])=[,/2] Parametric (global) warping

More information

Chapter 9 Transformations

Chapter 9 Transformations Section 9-1: Reflections SOL: G.2 The student will use pictorial representations, including computer software, constructions, and coordinate methods, to solve problems involving smmetr and transformation.

More information

Image Warping. Some slides from Steve Seitz

Image Warping.   Some slides from Steve Seitz Image Warping http://www.jeffre-martin.com Some slides from Steve Seitz 5-463: Computational Photograph Aleei Efros, CMU, Spring 2 Image Transformations image filtering: change range of image g() = T(f())

More information

Computer Graphics. 2D Transforma5ons. Review Vertex Transforma5ons 2/3/15. adjust the zoom. posi+on the camera. posi+on the model

Computer Graphics. 2D Transforma5ons. Review Vertex Transforma5ons 2/3/15. adjust the zoom. posi+on the camera. posi+on the model /3/5 Computer Graphics D Transforma5ons Review Verte Transforma5ons posi+on the model posi+on the camera adjust the zoom verte shader input verte shader output, transformed /3/5 From Object to World Space

More information

3.1 Sequences of Transformations

3.1 Sequences of Transformations Name lass Date 3.1 Sequences of Transformations Essential Question: What happens when ou appl more than one transformation to a figure? Eplore ombining Rotations or Reflections transformation is a function

More information

Geometric Model of Camera

Geometric Model of Camera Geometric Model of Camera Dr. Gerhard Roth COMP 42A Winter 25 Version 2 Similar Triangles 2 Geometric Model of Camera Perspective projection P(X,Y,Z) p(,) f X Z f Y Z 3 Parallel lines aren t 4 Figure b

More information

Module 2, Section 2 Graphs of Trigonometric Functions

Module 2, Section 2 Graphs of Trigonometric Functions Principles of Mathematics Section, Introduction 5 Module, Section Graphs of Trigonometric Functions Introduction You have studied trigonometric ratios since Grade 9 Mathematics. In this module ou will

More information

What does OpenGL do?

What does OpenGL do? Theor behind Geometrical Transform What does OpenGL do? So the user specifies a lot of information Ee Center Up Near, far, UP EE Left, right top, bottom, etc. f b CENTER left right top bottom What does

More information

Lesson 20: Exploiting the Connection to Cartesian Coordinates

Lesson 20: Exploiting the Connection to Cartesian Coordinates : Exploiting the Connection to Cartesian Coordinates Student Outcomes Students interpret complex multiplication as the corresponding function of two real variables. Students calculate the amount of rotation

More information

Method 1: Use Pencil and Paper 1. Draw the triangle with vertices A(2, 5), B(1, 2), and C(6, 2). Use the. that it is isosceles.

Method 1: Use Pencil and Paper 1. Draw the triangle with vertices A(2, 5), B(1, 2), and C(6, 2). Use the. that it is isosceles. 3. Verif Properties of Triangles Since triangular frames are strong and simple to make, the are widel used to strengthen buildings and other structures. This section applies analtic geometr to verif the

More information

3-Dimensional Viewing

3-Dimensional Viewing CHAPTER 6 3-Dimensional Vieing Vieing and projection Objects in orld coordinates are projected on to the vie plane, hich is defined perpendicular to the vieing direction along the v -ais. The to main tpes

More information

ANGLES See the Math Notes boxes in Lessons and for more information about angle relationships.

ANGLES See the Math Notes boxes in Lessons and for more information about angle relationships. CC1 Basic Definitions Defense Practice ANGLES 2.1.1 2.1.5 Applications of geometr in everda settings often involve the measures of angles. In this chapter we begin our stud of angle measurement. After

More information

Understanding Rotations

Understanding Rotations Lesson 19 Understanding Rotations 8.G.1.a, 8.G.1.b, 8.G.1.c, 8.G., 8.G.3 1 Getting the idea A rotation is a tpe of transformation in which ou turn a figure about a fied point. The image formed b a rotation

More information

2.8 Distance and Midpoint Formulas; Circles

2.8 Distance and Midpoint Formulas; Circles Section.8 Distance and Midpoint Formulas; Circles 9 Eercises 89 90 are based on the following cartoon. B.C. b permission of Johnn Hart and Creators Sndicate, Inc. 89. Assuming that there is no such thing

More information

Homogeneous Coordinates

Homogeneous Coordinates COMS W4172 3D Math 2 Steven Feiner Department of Computer Science Columbia Universit New York, NY 127 www.cs.columbia.edu/graphics/courses/csw4172 Februar 1, 218 1 Homogeneous Coordinates w X W Y X W Y

More information

Transformations using matrices

Transformations using matrices Transformations using matrices 6 sllabusref eferenceence Core topic: Matrices and applications In this cha 6A 6B 6C 6D 6E 6F 6G chapter Geometric transformations and matri algebra Linear transformations

More information

Scene Graphs & Modeling Transformations COS 426

Scene Graphs & Modeling Transformations COS 426 Scene Graphs & Modeling Transformations COS 426 3D Object Representations Points Range image Point cloud Surfaces Polgonal mesh Subdivision Parametric Implicit Solids Voels BSP tree CSG Sweep High-level

More information

2.4 Coordinate Proof Using Distance with Quadrilaterals

2.4 Coordinate Proof Using Distance with Quadrilaterals Name Class Date.4 Coordinate Proof Using Distance with Quadrilaterals Essential Question: How can ou use slope and the distance formula in coordinate proofs? Resource Locker Eplore Positioning a Quadrilateral

More information

3D Geometry and Camera Calibration

3D Geometry and Camera Calibration 3D Geometr and Camera Calibration 3D Coordinate Sstems Right-handed vs. left-handed 2D Coordinate Sstems ais up vs. ais down Origin at center vs. corner Will often write (u, v) for image coordinates v

More information

20 Calculus and Structures

20 Calculus and Structures 0 Calculus and Structures CHAPTER FUNCTIONS Calculus and Structures Copright LESSON FUNCTIONS. FUNCTIONS A function f is a relationship between an input and an output and a set of instructions as to how

More information