How To Understand The Concept Of Transformation In Ces3 (Computer Graphics)

Size: px
Start display at page:

Download "How To Understand The Concept Of Transformation In Ces3 (Computer Graphics)"

Transcription

1 CS3 INTRODUCTION TO COMPUTER GRAPHICS Geometric Transformations D and 3D

2 CS3 INTRODUCTION TO COMPUTER GRAPHICS Grading Plan to be out Wednesdas one week after the due date

3 CS3 INTRODUCTION TO COMPUTER GRAPHICS How do we use Geometric Transformations? (/) } Objects in a scene are a collection of points } These objects have location, orientation, size } Correspond to transformations: Translation (T), Rotation (R), and Scaling (S) 3

4 CS3 INTRODUCTION TO COMPUTER GRAPHICS How do we use Geometric Transformations? (/) } A scene has a camera/view point from which the scene is viewed } The camera has some location and some orientation in 3-space } These correspond to Translation and Rotation transformations 4

5 CS3 INTRODUCTION TO COMPUTER GRAPHICS Linear Transformations (/3) } We represent vectors as bold-italic letters (v) and scalars as italic letters (c) 5

6 CS3 INTRODUCTION TO COMPUTER GRAPHICS Linear Transformations (/3) } Definition of a linear function f: } f(v+w) = f(v) + f(w) for all v and w in the domain of f } f(cv) = cf(v) for all scalars c and elements v in the domain } Example: f(x) = f(x, x ) := (3x +x, -3x +4x ) } Check linearit f(e ) } f(v+w) = f(v +w, v +w ) e = (3(v +w )+(v +w ), -3(v +w )+4(v +w )) e = (3v +v, -3v +4v ) + (3w +w, -3w +4w ) = f(v) + f(w) } We can check the second propert the same wa f(e ) 6

7 CS3 INTRODUCTION TO COMPUTER GRAPHICS Is X linear? } Is rotation linear? } Is scaling linear? } Is Translation linear? 7

8 CS3 INTRODUCTION TO COMPUTER GRAPHICS Linear Transformations (3/3) } Graphical use: transformations of points around the origin (leaves the origin invariant) } These include Scaling and Rotations } Translation is not a linear function (moves the origin) 8

9 CS3 INTRODUCTION TO COMPUTER GRAPHICS Linear Transformations as Matrices (/) } Linear transformations can be represented as matrices } Let s start with D transformations. These can be represented b x matrices: T = a c b d 9

10 CS3 INTRODUCTION TO COMPUTER GRAPHICS Linear Transformations as Matrices (/) } A transformation of an arbitrar column vector x = has the form: x x + + = = dx cx bx ax x x d c b a x x T

11 CS3 INTRODUCTION TO COMPUTER GRAPHICS Scaling in D } Scale x b 3, b (S x = 3, S = ) 3

12 CS3 INTRODUCTION TO COMPUTER GRAPHICS Scaling in D Side effect: House shifts position relative to origin } Scale x b 3, b (S x = 3, S = ) } v = (original vertex); } v = (new vertex) } v = Sv x ' ' x S= s x s 6 9 3

13 CS3 INTRODUCTION TO COMPUTER GRAPHICS Rotation in D (/) } Rotate b θ about the origin } Derive R θ b determining how e and e should be transformed: θ } (first column of R θ ) } (second column of R θ ) e = sinθ cosθ R θ = cosθ sinθ sinθ cosθ 3

14 CS3 INTRODUCTION TO COMPUTER GRAPHICS Rotation in D (/) } Let s tr matrix-vector multiplication } R θ * v = cosθ sinθ sinθ x cosθ = x x cosθ sinθ+ sinθ cosθ = x' ' = v' } } x'= xcosθ sinθ '= xsinθ + cosθ } Other properties of rotation: } Preserves lengths in objects and angles between parts of objects (rigid-bod) } For objects not centered at the origin, an unwanted translation might be introduced (rotation is alwas about the origin) 4

15 CS3 INTRODUCTION TO COMPUTER GRAPHICS What about translation? } Translation is not a linear transformation (the origin is not invariant) } Therefore, it can t be represented as a x invertible matrix } Question: Is there another solution? } Answer: Yes, v = v + t, where t = dx d } However, using vector addition is not consistent with our method of treating transformations as matrices 5

16 CS3 INTRODUCTION TO COMPUTER GRAPHICS Homogeneous coordinate } Represent a D point } B a 3D vector x x 6

17 CS3 INTRODUCTION TO COMPUTER GRAPHICS Homogeneous coordinate } Represent a D point } B a 3D vector x x 7

18 CS3 INTRODUCTION TO COMPUTER GRAPHICS Back to Translation } Our translation matrix (T) can now be represented b embedding the translation vector in the right column: Dimension of T? } To verif that this is the right matrix, multipl it b our homogenized point: } Coordinates have been translated, and v is still homogeneous 8

19 CS3 INTRODUCTION TO COMPUTER GRAPHICS //3 Back to Translation } Our translation matrix (T) can now be represented b embedding the translation vector in the right column: } To verif that this is the right matrix, multipl it b our homogenized point: } Coordinates have been translated, and v is still homogeneous = d dx T Tv = v' + + = = d dx x x d dx 9

20 CS3 INTRODUCTION TO COMPUTER GRAPHICS Transformations Homogenized } Let s homogenize our all matrices! Doesn t affect linearit of scaling and rotation } Our new transformation matrices look like this Transformation Scaling Rotation Translation Matrix s x s } Note: These transformations are called affine transformations cosθ sinθ sinθ cosθ dx d

21 CS3 INTRODUCTION TO COMPUTER GRAPHICS Examples } Scaling: Scale b 5 in the x direction, 7 in the 5 7 } Rotation: Rotate b 3 o cos(3) sin(3) sin(3) cos(3) } Translation: Translate b -6 in the x direction, +8 in the 6 8 //3

22 CS3 INTRODUCTION TO COMPUTER GRAPHICS Before we continue! Vectors vs. Points } Up until now, we ve onl used the notion of a point in our D space } We now present a distinction between points and vectors } We used homogeneous coordinates to more convenientl represent translation; hence points are represented as (x,, ) T } A vector can be rotated/scaled, not translated (can think of it as alwas starting at origin), don t use the homogeneous coordinate: (x,, ) T } For now, let s focus on just our points (tpicall vertices) //3

23 CS3 INTRODUCTION TO COMPUTER GRAPHICS Inverses } How do we find the inverse of a transformation? } Take the inverse of the transformation matrix (thanks to homogenization, the are all invertible!): 3

24 CS3 INTRODUCTION TO COMPUTER GRAPHICS Composition of Transformations (D) (/) } We now have a number of tools at our disposal; we can combine them! } An object in a scene uses man transformations in sequence. How do we represent this in terms of functions? } Think of a transformation that first translates b (, 3) M, then scales b (.5,.3) M. } Our composition is equivalent to M M v //3 4

25 CS3 INTRODUCTION TO COMPUTER GRAPHICS Composition of Transformations (D) (/) } Compositions of transformation matrices to form a more complex transformation } For example, TRSv, which scales, rotates, then translates a point: dxcosθ sinθ sx x d sinθ cosθ s } We appl the matrices from right to left. Associativit allows composition. One matrix does S, R, and T. No need to multiple 3 times. } Important: order matters! Matrix multiplication is NOT commutative. } Be sure to check out the Transformation Game at repositor/edu/brown/cs/exploratories/applets/transformationgame/transformation_game_guide.html } Let s see an example //3 5

26 CS3 INTRODUCTION TO COMPUTER GRAPHICS Not commutative 6 Translate b x = 6, =, then rotate b 45 o Rotate b 45 o, then translate b x = 6, = Y X //3 6

27 CS3 INTRODUCTION TO COMPUTER GRAPHICS //3 Composition (an example) (D) (/) } Start: Goal: } Important concept: make the problem simpler } Translate object to origin first, scale, rotate, and translate back: } Appl to all vertices = cos9 sin 9 sin 9 cos9 3 3 RST T -Uniform scale 3x -Rotate 9 o -Both around object s center, not the origin 7

28 CS3 INTRODUCTION TO COMPUTER GRAPHICS Composition (an example) (D) (/) } T - RST } But what if we mixed up the order? Let s tr RT - ST: cos9 sin sin9 cos } Oops! We scaled properl, but when we rotated the object, it s center was not at the origin, so its position was shifted. Order matters! //3 8

29 CS3 INTRODUCTION TO COMPUTER GRAPHICS Inverses Revisited } What is the inverse of a sequence of transformations? } (M M M n ) - = M n - M n- - M - } Inverse of a sequence of transformations is the composition of the inverses of each transformation in reverse order (wh?) } Sa we want to do the opposite transformation of the example on slide 7. What will our sequence look like? } (T - RST) - = T - S - R - T } We still translate to the origin first, then translate back at the end! T - S - R - T = 3/ 3 3 / 3 cos9 sin 9 sin 9 cos9 3 3 //3 9

30 CS3 INTRODUCTION TO COMPUTER GRAPHICS Question } You have an object at (3, 4). } What is the transformation to } Rotate b 3 degrees with respect to the object } Scale b along x and 3 along with respect to the object } Translate b (, -) in the world coordinate frame? //3 3

31 CS3 INTRODUCTION TO COMPUTER GRAPHICS Question } You have an object at (3, 4). } What is the transformation to } Rotate b 3 degrees with respect to the object } Scale b along x and 3 along with respect to the object } Translate b (, -) in the world coordinate frame? } What is the inverse? //3 3

32 CS3 INTRODUCTION TO COMPUTER GRAPHICS Aside: Skewing/shearing } Skew an object to the side, like shearing a card deck b displacing each card relative to the previous one } What phsical situations mirror this behavior? } Squares become parallelograms; x-coordinates skew to right, stas the same Y θ π θ = Skew θ = tanθ D non-homogeneous X } Notice that the base of the house (at = ) remains horizontal but shifts right. Wh? Skew θ tanθ = D homogeneous //3 3

33 CS3 INTRODUCTION TO COMPUTER GRAPHICS //3 } Windowing transformation maps contents of a D clip rectangle ( window ) to a rectangle on the screen, e.g., interior canvas of a window manager s window ( viewport ), so also known as a window-to-viewport transformation } Sends rectangle with bounding coordinates (u, v i ), (u, v ) to (x, ), (x, ) } The transformation matrix here is: Aside: Windowing Transformations ) ) /( ( ) ) /( ( ) ) /( ( ) ) /( ( v v v v v v u u u x x u u u x x 33

34 CS3 INTRODUCTION TO COMPUTER GRAPHICS Aside: Homogeneous Coordinates (/3) } Allow expression of all three D transformations as 3x3 matrices } We start with the point P d on the x plane and appl a mapping to bring it to the w- plane in the hperspace } P d (x,) à P h (wx, w, w), w } The resulting (x, ) coordinates in our new point P h are different from the original (x,), since x = wx, = w } P h (x,, w), w //3 34

35 CS3 INTRODUCTION TO COMPUTER GRAPHICS Aside: Homogeneous Coordinates (/3) } Once we have this point, we can appl a homogenized version of our transformation matrices (next slides) to get a new point in the hperspace } Finall, we want to obtain the corresponding point in D-space, so perform the inverse of the previous mapping (divide all entries b w) } The vertex v = is now represented as v = x x //3 35

36 CS3 INTRODUCTION TO COMPUTER GRAPHICS Aside: Homogeneous Coordinates (3/3) } The transformations we use will alwas map points in the hperplane defined b w = to other such points. } In other words, we want our transformations T to map points v = to points v = x' ' } How do we achieve this with the matrices we have alread derived? } For linear transformations (i.e. scaling and rotation), embed the existing matrix in the upper-left of a new 3x3 matrix: x a c b d //3 36

37 CS3 INTRODUCTION TO COMPUTER GRAPHICS Dimension++ (3D!) } How should we treat geometric transformations in 3D? } Just add one more coordinate/axis! } A point is represented as x z } Homogeneous coordinate is x z //3 37

38 CS3 INTRODUCTION TO COMPUTER GRAPHICS Transformations in 3D Transformation Matrix Comments Scaling sx s Looks just like the D version. We just added an s z term. Rotation (see next slide) In D, onl one axis of rotation; now there are infinitel man! Must take all into account. See next slide... s z Translation dx d dz Similar to the D version, just with one more entr dz, representing change in the z- direction. //3 38

39 CS3 INTRODUCTION TO COMPUTER GRAPHICS Rodrigues s Formula } Rotation b angle θ around vector u = [u x u u z ] T } Note: this is an arbitrar unit vector u in xz-space } Here s a not so friendl rotation matrix u u x x cosθ u u z + u x ( cosθ ) ( cosθ ) + u ( cosθ ) u sinθ sinθ } This is called the coordinate form of Rodrigues s formula } Let s tr a different approach z u u x u ( cosθ ) u cosθ u z + u ( cosθ ) ( cosθ ) + u z x sinθ sinθ u u x u u z z ( cosθ ) + u ( cosθ ) u cosθ + u z x sinθ sinθ ( cosθ ) //3 39

40 CS3 INTRODUCTION TO COMPUTER GRAPHICS Rotating axis b axis } Ever rotation can be represented as the composition of 3 different angles of counterclockwise rotation around 3 axes, namel } x-axis in the z plane b ψ; -axis in the xz plane b θ; z-axis in the x plane b ϕ } Also known as Euler angles, make problem of rotation much easier } R z : rotation around x axis, R x : rotation about axis, R x : rotation about z axis } Note these differ onl in how the 3x3 submatrix is embedded in the homogeneous matrix } You can compose these matrices to form a composite rotation matrix //3 4

41 CS3 INTRODUCTION TO COMPUTER GRAPHICS Inverses and Composition in 3D! } Inverses are once again parallel to their D versions Transformation Inverse Matrix Scaling Rotation Translation /s x /s /s z cosφ sinφ sinφ cosφ, cosψ sinψ sinψ cosψ dx d dz } Composition works exactl the same wa, cosθ sinθ sinθ cosθ //3 4

42 CS3 INTRODUCTION TO COMPUTER GRAPHICS //3 Example in 3D! } Let s take some 3D object, sa a cube centered at (,,) } Rotate in object s space b 3 o around x axis, 6 o around, and 9 o around z } Scale in object space b in the x, in the, 3 in the z } Translate b (,,4) in world space } Transformation sequence: TT - S x R x R xz R z T o, where T translates to (,): cos3 sin 3 sin 3 cos3 cos6 sin 6 sin 6 cos6 cos9 sin 9 sin 9 cos9 3 4 T T - S x R x R xz R z T 4

43 CS3 INTRODUCTION TO COMPUTER GRAPHICS Transformations and the scene graph (/4) } Objects can be complex: Scene Graph ROBOT upper bod lower bod head trunkarm arm stanchion base } 3D scenes are often stored in a directed acclic graph (DAG) called a scene graph } WPF (Windows Presentation Foundation) } Open Scene Graph (used in the Cave) } Sun s Java3D } X3D (VRML was a precursor to X3D) } Tpical scene graph format: } objects (cubes, sphere, cone, polhedra etc.): stored as nodes (default: unit size at origin) } attributes (color, texture map, etc.): stored as separate nodes } Transformations: also nodes //3 43

44 CS3 INTRODUCTION TO COMPUTER GRAPHICS Transformations and the scene graph (3/4) } Notion of a cumulative transformation matrix that builds as ou move up the tree (CTM), appending higher level transformation matrices to the front of the sequence M M M 3 M 4 } Example: } For object (o), CTM = M M 5 } For o, CTM = M M 3 } For o3, CTM = M M 4 M 5 } For a vertex v in o3, position in world coordinate sstem is CTM v = (M M 4 M 5 ) v object nodes (geometr) transformation nodes group nodes //3 44

Affine Transformations

Affine Transformations A P P E N D I X C Affine Transformations CONTENTS C The need for geometric transformations 335 C2 Affine transformations 336 C3 Matri representation of the linear transformations 338 C4 Homogeneous coordinates

More information

MAT188H1S Lec0101 Burbulla

MAT188H1S Lec0101 Burbulla Winter 206 Linear Transformations A linear transformation T : R m R n is a function that takes vectors in R m to vectors in R n such that and T (u + v) T (u) + T (v) T (k v) k T (v), for all vectors u

More information

2D Geometric Transformations

2D Geometric Transformations 2D Geometric Transformations (Chapter 5 in FVD) 2D Geometric Transformations Question: How do we represent a geometric object in the plane? Answer: For now, assume that objects consist of points and lines.

More information

2D Geometrical Transformations. Foley & Van Dam, Chapter 5

2D Geometrical Transformations. Foley & Van Dam, Chapter 5 2D Geometrical Transformations Fole & Van Dam, Chapter 5 2D Geometrical Transformations Translation Scaling Rotation Shear Matri notation Compositions Homogeneous coordinates 2D Geometrical Transformations

More information

Computer Graphics Labs

Computer Graphics Labs Computer Graphics Labs Abel J. P. Gomes LAB. 2 Department of Computer Science and Engineering University of Beira Interior Portugal 2011 Copyright 2009-2011 All rights reserved. LAB. 2 1. Learning goals

More information

CS 4204 Computer Graphics

CS 4204 Computer Graphics CS 4204 Computer Graphics 2D and 3D Transformations Doug Bowman Adapted from notes by Yong Cao Virginia Tech 1 Transformations What are they? changing something to something else via rules mathematics:

More information

9 MATRICES AND TRANSFORMATIONS

9 MATRICES AND TRANSFORMATIONS 9 MATRICES AND TRANSFORMATIONS Chapter 9 Matrices and Transformations Objectives After studying this chapter you should be able to handle matrix (and vector) algebra with confidence, and understand the

More information

Vector Notation: AB represents the vector from point A to point B on a graph. The vector can be computed by B A.

Vector Notation: AB represents the vector from point A to point B on a graph. The vector can be computed by B A. 1 Linear Transformations Prepared by: Robin Michelle King A transformation of an object is a change in position or dimension (or both) of the object. The resulting object after the transformation is called

More information

Geometric Transformation CS 211A

Geometric Transformation CS 211A Geometric Transformation CS 211A What is transformation? Moving points (x,y) moves to (x+t, y+t) Can be in any dimension 2D Image warps 3D 3D Graphics and Vision Can also be considered as a movement to

More information

Introduction to Matrices for Engineers

Introduction to Matrices for Engineers Introduction to Matrices for Engineers C.T.J. Dodson, School of Mathematics, Manchester Universit 1 What is a Matrix? A matrix is a rectangular arra of elements, usuall numbers, e.g. 1 0-8 4 0-1 1 0 11

More information

Rotation and Inter interpolation Using Quaternion Representation

Rotation and Inter interpolation Using Quaternion Representation This week CENG 732 Computer Animation Spring 2006-2007 Week 2 Technical Preliminaries and Introduction to Keframing Recap from CEng 477 The Displa Pipeline Basic Transformations / Composite Transformations

More information

INTRODUCTION TO RENDERING TECHNIQUES

INTRODUCTION TO RENDERING TECHNIQUES INTRODUCTION TO RENDERING TECHNIQUES 22 Mar. 212 Yanir Kleiman What is 3D Graphics? Why 3D? Draw one frame at a time Model only once X 24 frames per second Color / texture only once 15, frames for a feature

More information

Geometric Camera Parameters

Geometric Camera Parameters Geometric Camera Parameters What assumptions have we made so far? -All equations we have derived for far are written in the camera reference frames. -These equations are valid only when: () all distances

More information

Geometric Transformations

Geometric Transformations Geometric Transformations Definitions Def: f is a mapping (function) of a set A into a set B if for every element a of A there exists a unique element b of B that is paired with a; this pairing is denoted

More information

Realtime 3D Computer Graphics Virtual Reality

Realtime 3D Computer Graphics Virtual Reality Realtime 3D Computer Graphics Virtual Realit Viewing and projection Classical and General Viewing Transformation Pipeline CPU Pol. DL Pixel Per Vertex Texture Raster Frag FB object ee clip normalized device

More information

Addition and Subtraction of Vectors

Addition and Subtraction of Vectors ddition and Subtraction of Vectors 1 ppendi ddition and Subtraction of Vectors In this appendi the basic elements of vector algebra are eplored. Vectors are treated as geometric entities represented b

More information

Given a point cloud, polygon, or sampled parametric curve, we can use transformations for several purposes:

Given a point cloud, polygon, or sampled parametric curve, we can use transformations for several purposes: 3 3.1 2D Given a point cloud, polygon, or sampled parametric curve, we can use transformations for several purposes: 1. Change coordinate frames (world, window, viewport, device, etc). 2. Compose objects

More information

COMPONENTS OF VECTORS

COMPONENTS OF VECTORS COMPONENTS OF VECTORS To describe motion in two dimensions we need a coordinate sstem with two perpendicular aes, and. In such a coordinate sstem, an vector A can be uniquel decomposed into a sum of two

More information

Chapter 6. Linear Transformation. 6.1 Intro. to Linear Transformation

Chapter 6. Linear Transformation. 6.1 Intro. to Linear Transformation Chapter 6 Linear Transformation 6 Intro to Linear Transformation Homework: Textbook, 6 Ex, 5, 9,, 5,, 7, 9,5, 55, 57, 6(a,b), 6; page 7- In this section, we discuss linear transformations 89 9 CHAPTER

More information

Solving Simultaneous Equations and Matrices

Solving Simultaneous Equations and Matrices Solving Simultaneous Equations and Matrices The following represents a systematic investigation for the steps used to solve two simultaneous linear equations in two unknowns. The motivation for considering

More information

Section 1.1. Introduction to R n

Section 1.1. Introduction to R n The Calculus of Functions of Several Variables Section. Introduction to R n Calculus is the study of functional relationships and how related quantities change with each other. In your first exposure to

More information

Use order of operations to simplify. Show all steps in the space provided below each problem. INTEGER OPERATIONS

Use order of operations to simplify. Show all steps in the space provided below each problem. INTEGER OPERATIONS ORDER OF OPERATIONS In the following order: 1) Work inside the grouping smbols such as parenthesis and brackets. ) Evaluate the powers. 3) Do the multiplication and/or division in order from left to right.

More information

MATH2210 Notebook 1 Fall Semester 2016/2017. 1 MATH2210 Notebook 1 3. 1.1 Solving Systems of Linear Equations... 3

MATH2210 Notebook 1 Fall Semester 2016/2017. 1 MATH2210 Notebook 1 3. 1.1 Solving Systems of Linear Equations... 3 MATH0 Notebook Fall Semester 06/07 prepared by Professor Jenny Baglivo c Copyright 009 07 by Jenny A. Baglivo. All Rights Reserved. Contents MATH0 Notebook 3. Solving Systems of Linear Equations........................

More information

Exam 1 Sample Question SOLUTIONS. y = 2x

Exam 1 Sample Question SOLUTIONS. y = 2x Exam Sample Question SOLUTIONS. Eliminate the parameter to find a Cartesian equation for the curve: x e t, y e t. SOLUTION: You might look at the coordinates and notice that If you don t see it, we can

More information

4BA6 - Topic 4 Dr. Steven Collins. Chap. 5 3D Viewing and Projections

4BA6 - Topic 4 Dr. Steven Collins. Chap. 5 3D Viewing and Projections 4BA6 - Topic 4 Dr. Steven Collins Chap. 5 3D Viewing and Projections References Computer graphics: principles & practice, Fole, vandam, Feiner, Hughes, S-LEN 5.644 M23*;-6 (has a good appendix on linear

More information

SECTION 7-4 Algebraic Vectors

SECTION 7-4 Algebraic Vectors 7-4 lgebraic Vectors 531 SECTIN 7-4 lgebraic Vectors From Geometric Vectors to lgebraic Vectors Vector ddition and Scalar Multiplication Unit Vectors lgebraic Properties Static Equilibrium Geometric vectors

More information

Section V.2: Magnitudes, Directions, and Components of Vectors

Section V.2: Magnitudes, Directions, and Components of Vectors Section V.: Magnitudes, Directions, and Components of Vectors Vectors in the plane If we graph a vector in the coordinate plane instead of just a grid, there are a few things to note. Firstl, directions

More information

Algebra 2 Chapter 1 Vocabulary. identity - A statement that equates two equivalent expressions.

Algebra 2 Chapter 1 Vocabulary. identity - A statement that equates two equivalent expressions. Chapter 1 Vocabulary identity - A statement that equates two equivalent expressions. verbal model- A word equation that represents a real-life problem. algebraic expression - An expression with variables.

More information

Elasticity Theory Basics

Elasticity Theory Basics G22.3033-002: Topics in Computer Graphics: Lecture #7 Geometric Modeling New York University Elasticity Theory Basics Lecture #7: 20 October 2003 Lecturer: Denis Zorin Scribe: Adrian Secord, Yotam Gingold

More information

Math, Trigonometry and Vectors. Geometry. Trig Definitions. sin(θ) = opp hyp. cos(θ) = adj hyp. tan(θ) = opp adj. Here's a familiar image.

Math, Trigonometry and Vectors. Geometry. Trig Definitions. sin(θ) = opp hyp. cos(θ) = adj hyp. tan(θ) = opp adj. Here's a familiar image. Math, Trigonometr and Vectors Geometr Trig Definitions Here's a familiar image. To make predictive models of the phsical world, we'll need to make visualizations, which we can then turn into analtical

More information

TWO-DIMENSIONAL TRANSFORMATION

TWO-DIMENSIONAL TRANSFORMATION CHAPTER 2 TWO-DIMENSIONAL TRANSFORMATION 2.1 Introduction As stated earlier, Computer Aided Design consists of three components, namely, Design (Geometric Modeling), Analysis (FEA, etc), and Visualization

More information

w = COI EYE view direction vector u = w ( 010,, ) cross product with y-axis v = w u up vector

w = COI EYE view direction vector u = w ( 010,, ) cross product with y-axis v = w u up vector . w COI EYE view direction vector u w ( 00,, ) cross product with -ais v w u up vector (EQ ) Computer Animation: Algorithms and Techniques 29 up vector view vector observer center of interest 30 Computer

More information

Essential Mathematics for Computer Graphics fast

Essential Mathematics for Computer Graphics fast John Vince Essential Mathematics for Computer Graphics fast Springer Contents 1. MATHEMATICS 1 Is mathematics difficult? 3 Who should read this book? 4 Aims and objectives of this book 4 Assumptions made

More information

Vector Math Computer Graphics Scott D. Anderson

Vector Math Computer Graphics Scott D. Anderson Vector Math Computer Graphics Scott D. Anderson 1 Dot Product The notation v w means the dot product or scalar product or inner product of two vectors, v and w. In abstract mathematics, we can talk about

More information

Connecting Transformational Geometry and Transformations of Functions

Connecting Transformational Geometry and Transformations of Functions Connecting Transformational Geometr and Transformations of Functions Introductor Statements and Assumptions Isometries are rigid transformations that preserve distance and angles and therefore shapes.

More information

3D Tranformations. CS 4620 Lecture 6. Cornell CS4620 Fall 2013 Lecture 6. 2013 Steve Marschner (with previous instructors James/Bala)

3D Tranformations. CS 4620 Lecture 6. Cornell CS4620 Fall 2013 Lecture 6. 2013 Steve Marschner (with previous instructors James/Bala) 3D Tranformations CS 4620 Lecture 6 1 Translation 2 Translation 2 Translation 2 Translation 2 Scaling 3 Scaling 3 Scaling 3 Scaling 3 Rotation about z axis 4 Rotation about z axis 4 Rotation about x axis

More information

521493S Computer Graphics. Exercise 2 & course schedule change

521493S Computer Graphics. Exercise 2 & course schedule change 521493S Computer Graphics Exercise 2 & course schedule change Course Schedule Change Lecture from Wednesday 31th of March is moved to Tuesday 30th of March at 16-18 in TS128 Question 2.1 Given two nonparallel,

More information

Geometry for Computer Graphics

Geometry for Computer Graphics Computer Graphics and Visualisation Geometry for Computer Graphics Student Notes Developed by F Lin K Wyrwas J Irwin C Lilley W T Hewitt T L J Howard Computer Graphics Unit Manchester Computing Centre

More information

Part I. Basic Maths for Game Design

Part I. Basic Maths for Game Design Part I Basic Maths for Game Design 1 Chapter 1 Basic Vector Algebra 1.1 What's a vector? Why do you need it? A vector is a mathematical object used to represent some magnitudes. For example, temperature

More information

Adding vectors We can do arithmetic with vectors. We ll start with vector addition and related operations. Suppose you have two vectors

Adding vectors We can do arithmetic with vectors. We ll start with vector addition and related operations. Suppose you have two vectors 1 Chapter 13. VECTORS IN THREE DIMENSIONAL SPACE Let s begin with some names and notation for things: R is the set (collection) of real numbers. We write x R to mean that x is a real number. A real number

More information

Lecture 3: Coordinate Systems and Transformations

Lecture 3: Coordinate Systems and Transformations Lecture 3: Coordinate Systems and Transformations Topics: 1. Coordinate systems and frames 2. Change of frames 3. Affine transformations 4. Rotation, translation, scaling, and shear 5. Rotation about an

More information

Solutions to Homework Section 3.7 February 18th, 2005

Solutions to Homework Section 3.7 February 18th, 2005 Math 54W Spring 5 Solutions to Homeork Section 37 Februar 8th, 5 List the ro vectors and the column vectors of the matrix The ro vectors are The column vectors are ( 5 5 The matrix ( (,,,, 4, (5,,,, (

More information

x1 x 2 x 3 y 1 y 2 y 3 x 1 y 2 x 2 y 1 0.

x1 x 2 x 3 y 1 y 2 y 3 x 1 y 2 x 2 y 1 0. Cross product 1 Chapter 7 Cross product We are getting ready to study integration in several variables. Until now we have been doing only differential calculus. One outcome of this study will be our ability

More information

South Carolina College- and Career-Ready (SCCCR) Pre-Calculus

South Carolina College- and Career-Ready (SCCCR) Pre-Calculus South Carolina College- and Career-Ready (SCCCR) Pre-Calculus Key Concepts Arithmetic with Polynomials and Rational Expressions PC.AAPR.2 PC.AAPR.3 PC.AAPR.4 PC.AAPR.5 PC.AAPR.6 PC.AAPR.7 Standards Know

More information

Transformations Worksheet. How many units and in which direction were the x-coordinates of parallelogram ABCD moved? C. D.

Transformations Worksheet. How many units and in which direction were the x-coordinates of parallelogram ABCD moved? C. D. Name: ate: 1. Parallelogram ABC was translated to parallelogram A B C. 2. A shape is shown below. Which shows this shape transformed by a flip? A. B. How many units and in which direction were the x-coordinates

More information

Lecture L3 - Vectors, Matrices and Coordinate Transformations

Lecture L3 - Vectors, Matrices and Coordinate Transformations S. Widnall 16.07 Dynamics Fall 2009 Lecture notes based on J. Peraire Version 2.0 Lecture L3 - Vectors, Matrices and Coordinate Transformations By using vectors and defining appropriate operations between

More information

Geometric description of the cross product of the vectors u and v. The cross product of two vectors is a vector! u x v is perpendicular to u and v

Geometric description of the cross product of the vectors u and v. The cross product of two vectors is a vector! u x v is perpendicular to u and v 12.4 Cross Product Geometric description of the cross product of the vectors u and v The cross product of two vectors is a vector! u x v is perpendicular to u and v The length of u x v is uv u v sin The

More information

ME 115(b): Solution to Homework #1

ME 115(b): Solution to Homework #1 ME 115(b): Solution to Homework #1 Solution to Problem #1: To construct the hybrid Jacobian for a manipulator, you could either construct the body Jacobian, JST b, and then use the body-to-hybrid velocity

More information

Lecture 2: Homogeneous Coordinates, Lines and Conics

Lecture 2: Homogeneous Coordinates, Lines and Conics Lecture 2: Homogeneous Coordinates, Lines and Conics 1 Homogeneous Coordinates In Lecture 1 we derived the camera equations λx = P X, (1) where x = (x 1, x 2, 1), X = (X 1, X 2, X 3, 1) and P is a 3 4

More information

Biggar High School Mathematics Department. National 5 Learning Intentions & Success Criteria: Assessing My Progress

Biggar High School Mathematics Department. National 5 Learning Intentions & Success Criteria: Assessing My Progress Biggar High School Mathematics Department National 5 Learning Intentions & Success Criteria: Assessing My Progress Expressions & Formulae Topic Learning Intention Success Criteria I understand this Approximation

More information

Section 1.7 22 Continued

Section 1.7 22 Continued Section 1.5 23 A homogeneous equation is always consistent. TRUE - The trivial solution is always a solution. The equation Ax = 0 gives an explicit descriptions of its solution set. FALSE - The equation

More information

Solutions to old Exam 1 problems

Solutions to old Exam 1 problems Solutions to old Exam 1 problems Hi students! I am putting this old version of my review for the first midterm review, place and time to be announced. Check for updates on the web site as to which sections

More information

ISOMETRIES OF R n KEITH CONRAD

ISOMETRIES OF R n KEITH CONRAD ISOMETRIES OF R n KEITH CONRAD 1. Introduction An isometry of R n is a function h: R n R n that preserves the distance between vectors: h(v) h(w) = v w for all v and w in R n, where (x 1,..., x n ) = x

More information

Complex Numbers. w = f(z) z. Examples

Complex Numbers. w = f(z) z. Examples omple Numbers Geometrical Transformations in the omple Plane For functions of a real variable such as f( sin, g( 2 +2 etc ou are used to illustrating these geometricall, usuall on a cartesian graph. If

More information

Rotation Matrices and Homogeneous Transformations

Rotation Matrices and Homogeneous Transformations Rotation Matrices and Homogeneous Transformations A coordinate frame in an n-dimensional space is defined by n mutually orthogonal unit vectors. In particular, for a two-dimensional (2D) space, i.e., n

More information

Downloaded from www.heinemann.co.uk/ib. equations. 2.4 The reciprocal function x 1 x

Downloaded from www.heinemann.co.uk/ib. equations. 2.4 The reciprocal function x 1 x Functions and equations Assessment statements. Concept of function f : f (); domain, range, image (value). Composite functions (f g); identit function. Inverse function f.. The graph of a function; its

More information

In this this review we turn our attention to the square root function, the function defined by the equation. f(x) = x. (5.1)

In this this review we turn our attention to the square root function, the function defined by the equation. f(x) = x. (5.1) Section 5.2 The Square Root 1 5.2 The Square Root In this this review we turn our attention to the square root function, the function defined b the equation f() =. (5.1) We can determine the domain and

More information

Section 1: How will you be tested? This section will give you information about the different types of examination papers that are available.

Section 1: How will you be tested? This section will give you information about the different types of examination papers that are available. REVISION CHECKLIST for IGCSE Mathematics 0580 A guide for students How to use this guide This guide describes what topics and skills you need to know for your IGCSE Mathematics examination. It will help

More information

sin(θ) = opp hyp cos(θ) = adj hyp tan(θ) = opp adj

sin(θ) = opp hyp cos(θ) = adj hyp tan(θ) = opp adj Math, Trigonometr and Vectors Geometr 33º What is the angle equal to? a) α = 7 b) α = 57 c) α = 33 d) α = 90 e) α cannot be determined α Trig Definitions Here's a familiar image. To make predictive models

More information

SECTION 2.2. Distance and Midpoint Formulas; Circles

SECTION 2.2. Distance and Midpoint Formulas; Circles SECTION. Objectives. Find the distance between two points.. Find the midpoint of a line segment.. Write the standard form of a circle s equation.. Give the center and radius of a circle whose equation

More information

C3: Functions. Learning objectives

C3: Functions. Learning objectives CHAPTER C3: Functions Learning objectives After studing this chapter ou should: be familiar with the terms one-one and man-one mappings understand the terms domain and range for a mapping understand the

More information

CS 4204 Computer Graphics

CS 4204 Computer Graphics CS 4204 Computer Graphics 3D views and projection Adapted from notes by Yong Cao 1 Overview of 3D rendering Modeling: *Define object in local coordinates *Place object in world coordinates (modeling transformation)

More information

Lecture 2: Geometric Image Transformations

Lecture 2: Geometric Image Transformations Lecture 2: Geometric Image Transformations Harvey Rhody Chester F. Carlson Center for Imaging Science Rochester Institute of Technology rhody@cis.rit.edu September 8, 2005 Abstract Geometric transformations

More information

Lecture Notes. Fundamentals of Computer Graphics. Prof. Michael Langer School of Computer Science McGill University

Lecture Notes. Fundamentals of Computer Graphics. Prof. Michael Langer School of Computer Science McGill University COMP 557 Winter 2015 Lecture Notes Fundamentals of Computer Graphics Prof. Michael Langer School of Computer Science McGill University NOTE: These lecture notes are dynamic. The initial version of the

More information

Introduction to 2D and 3D Computer Graphics Mastering 2D & 3D Computer Graphics Pipelines

Introduction to 2D and 3D Computer Graphics Mastering 2D & 3D Computer Graphics Pipelines Introduction to 2D and 3D Computer Graphics Mastering 2D & 3D Computer Graphics Pipelines CS447 3-1 Mastering 2D & 3D Graphics Overview of 2D & 3D Pipelines What are pipelines? What are the fundamental

More information

3D Viewing. Chapter 7. Projections. 3D clipping. OpenGL viewing functions and clipping planes

3D Viewing. Chapter 7. Projections. 3D clipping. OpenGL viewing functions and clipping planes 3D Viewing Chapter 7 Projections 3D clipping OpenGL viewing functions and clipping planes 1 Projections Parallel Perspective Coordinates are transformed along parallel lines Relative sizes are preserved

More information

LINEAR ALGEBRA W W L CHEN

LINEAR ALGEBRA W W L CHEN LINEAR ALGEBRA W W L CHEN c W W L Chen, 1997, 2008 This chapter is available free to all individuals, on understanding that it is not to be used for financial gain, and may be downloaded and/or photocopied,

More information

Dear Accelerated Pre-Calculus Student:

Dear Accelerated Pre-Calculus Student: Dear Accelerated Pre-Calculus Student: I am very excited that you have decided to take this course in the upcoming school year! This is a fastpaced, college-preparatory mathematics course that will also

More information

of surface, 569-571, 576-577, 578-581 of triangle, 548 Associative Property of addition, 12, 331 of multiplication, 18, 433

of surface, 569-571, 576-577, 578-581 of triangle, 548 Associative Property of addition, 12, 331 of multiplication, 18, 433 Absolute Value and arithmetic, 730-733 defined, 730 Acute angle, 477 Acute triangle, 497 Addend, 12 Addition associative property of, (see Commutative Property) carrying in, 11, 92 commutative property

More information

Chapter 8. Lines and Planes. By the end of this chapter, you will

Chapter 8. Lines and Planes. By the end of this chapter, you will Chapter 8 Lines and Planes In this chapter, ou will revisit our knowledge of intersecting lines in two dimensions and etend those ideas into three dimensions. You will investigate the nature of planes

More information

December 4, 2013 MATH 171 BASIC LINEAR ALGEBRA B. KITCHENS

December 4, 2013 MATH 171 BASIC LINEAR ALGEBRA B. KITCHENS December 4, 2013 MATH 171 BASIC LINEAR ALGEBRA B KITCHENS The equation 1 Lines in two-dimensional space (1) 2x y = 3 describes a line in two-dimensional space The coefficients of x and y in the equation

More information

Geometric Transformations

Geometric Transformations Geometric Transformations Moving objects relative to a stationary coordinate system Common transformations: Translation Rotation Scaling Implemented using vectors and matrices Quick Review of Matrix Algebra

More information

Solutions to Practice Problems

Solutions to Practice Problems Higher Geometry Final Exam Tues Dec 11, 5-7:30 pm Practice Problems (1) Know the following definitions, statements of theorems, properties from the notes: congruent, triangle, quadrilateral, isosceles

More information

Dr. Fritz Wilhelm, DVC,8/30/2004;4:25 PM E:\Excel files\ch 03 Vector calculations.doc Last printed 8/30/2004 4:25:00 PM

Dr. Fritz Wilhelm, DVC,8/30/2004;4:25 PM E:\Excel files\ch 03 Vector calculations.doc Last printed 8/30/2004 4:25:00 PM E:\Ecel files\ch 03 Vector calculations.doc Last printed 8/30/2004 4:25:00 PM Vector calculations 1 of 6 Vectors are ordered sequences of numbers. In three dimensions we write vectors in an of the following

More information

GeoGebra. 10 lessons. Gerrit Stols

GeoGebra. 10 lessons. Gerrit Stols GeoGebra in 10 lessons Gerrit Stols Acknowledgements GeoGebra is dynamic mathematics open source (free) software for learning and teaching mathematics in schools. It was developed by Markus Hohenwarter

More information

How To Understand And Solve Algebraic Equations

How To Understand And Solve Algebraic Equations College Algebra Course Text Barnett, Raymond A., Michael R. Ziegler, and Karl E. Byleen. College Algebra, 8th edition, McGraw-Hill, 2008, ISBN: 978-0-07-286738-1 Course Description This course provides

More information

CS3220 Lecture Notes: QR factorization and orthogonal transformations

CS3220 Lecture Notes: QR factorization and orthogonal transformations CS3220 Lecture Notes: QR factorization and orthogonal transformations Steve Marschner Cornell University 11 March 2009 In this lecture I ll talk about orthogonal matrices and their properties, discuss

More information

COMPLEX STRESS TUTORIAL 3 COMPLEX STRESS AND STRAIN

COMPLEX STRESS TUTORIAL 3 COMPLEX STRESS AND STRAIN COMPLX STRSS TUTORIAL COMPLX STRSS AND STRAIN This tutorial is not part of the decel unit mechanical Principles but covers elements of the following sllabi. o Parts of the ngineering Council eam subject

More information

with functions, expressions and equations which follow in units 3 and 4.

with functions, expressions and equations which follow in units 3 and 4. Grade 8 Overview View unit yearlong overview here The unit design was created in line with the areas of focus for grade 8 Mathematics as identified by the Common Core State Standards and the PARCC Model

More information

Teacher Page. 1. Reflect a figure with vertices across the x-axis. Find the coordinates of the new image.

Teacher Page. 1. Reflect a figure with vertices across the x-axis. Find the coordinates of the new image. Teacher Page Geometr / Da # 10 oordinate Geometr (5 min.) 9-.G.3.1 9-.G.3.2 9-.G.3.3 9-.G.3. Use rigid motions (compositions of reflections, translations and rotations) to determine whether two geometric

More information

13 MATH FACTS 101. 2 a = 1. 7. The elements of a vector have a graphical interpretation, which is particularly easy to see in two or three dimensions.

13 MATH FACTS 101. 2 a = 1. 7. The elements of a vector have a graphical interpretation, which is particularly easy to see in two or three dimensions. 3 MATH FACTS 0 3 MATH FACTS 3. Vectors 3.. Definition We use the overhead arrow to denote a column vector, i.e., a linear segment with a direction. For example, in three-space, we write a vector in terms

More information

Review Sheet for Test 1

Review Sheet for Test 1 Review Sheet for Test 1 Math 261-00 2 6 2004 These problems are provided to help you study. The presence of a problem on this handout does not imply that there will be a similar problem on the test. And

More information

SAT Subject Math Level 2 Facts & Formulas

SAT Subject Math Level 2 Facts & Formulas Numbers, Sequences, Factors Integers:..., -3, -2, -1, 0, 1, 2, 3,... Reals: integers plus fractions, decimals, and irrationals ( 2, 3, π, etc.) Order Of Operations: Arithmetic Sequences: PEMDAS (Parentheses

More information

13.4 THE CROSS PRODUCT

13.4 THE CROSS PRODUCT 710 Chapter Thirteen A FUNDAMENTAL TOOL: VECTORS 62. Use the following steps and the results of Problems 59 60 to show (without trigonometry) that the geometric and algebraic definitions of the dot product

More information

SAT Subject Math Level 1 Facts & Formulas

SAT Subject Math Level 1 Facts & Formulas Numbers, Sequences, Factors Integers:..., -3, -2, -1, 0, 1, 2, 3,... Reals: integers plus fractions, decimals, and irrationals ( 2, 3, π, etc.) Order Of Operations: Aritmetic Sequences: PEMDAS (Parenteses

More information

Maya 2014 Basic Animation & The Graph Editor

Maya 2014 Basic Animation & The Graph Editor Maya 2014 Basic Animation & The Graph Editor When you set a Keyframe (or Key), you assign a value to an object s attribute (for example, translate, rotate, scale, color) at a specific time. Most animation

More information

Logo Symmetry Learning Task. Unit 5

Logo Symmetry Learning Task. Unit 5 Logo Symmetry Learning Task Unit 5 Course Mathematics I: Algebra, Geometry, Statistics Overview The Logo Symmetry Learning Task explores graph symmetry and odd and even functions. Students are asked to

More information

Math 241, Exam 1 Information.

Math 241, Exam 1 Information. Math 241, Exam 1 Information. 9/24/12, LC 310, 11:15-12:05. Exam 1 will be based on: Sections 12.1-12.5, 14.1-14.3. The corresponding assigned homework problems (see http://www.math.sc.edu/ boylan/sccourses/241fa12/241.html)

More information

http://school-maths.com Gerrit Stols

http://school-maths.com Gerrit Stols For more info and downloads go to: http://school-maths.com Gerrit Stols Acknowledgements GeoGebra is dynamic mathematics open source (free) software for learning and teaching mathematics in schools. It

More information

Metrics on SO(3) and Inverse Kinematics

Metrics on SO(3) and Inverse Kinematics Mathematical Foundations of Computer Graphics and Vision Metrics on SO(3) and Inverse Kinematics Luca Ballan Institute of Visual Computing Optimization on Manifolds Descent approach d is a ascent direction

More information

ORIENTATIONS. Contents

ORIENTATIONS. Contents ORIENTATIONS Contents 1. Generators for H n R n, R n p 1 1. Generators for H n R n, R n p We ended last time by constructing explicit generators for H n D n, S n 1 by using an explicit n-simplex which

More information

Figure 1.1 Vector A and Vector F

Figure 1.1 Vector A and Vector F CHAPTER I VECTOR QUANTITIES Quantities are anything which can be measured, and stated with number. Quantities in physics are divided into two types; scalar and vector quantities. Scalar quantities have

More information

Mathematics Placement Packet Colorado College Department of Mathematics and Computer Science

Mathematics Placement Packet Colorado College Department of Mathematics and Computer Science Mathematics Placement Packet Colorado College Department of Mathematics and Computer Science Colorado College has two all college requirements (QR and SI) which can be satisfied in full, or part, b taking

More information

Fundamentals of Computer Animation

Fundamentals of Computer Animation Fundamentals of Computer Animation Quaternions as Orientations () page 1 Visualizing a Unit Quaternion Rotation in 4D Space ( ) = w + x + y z q = Norm q + q = q q [ w, v], v = ( x, y, z) w scalar q =,

More information

1 Symmetries of regular polyhedra

1 Symmetries of regular polyhedra 1230, notes 5 1 Symmetries of regular polyhedra Symmetry groups Recall: Group axioms: Suppose that (G, ) is a group and a, b, c are elements of G. Then (i) a b G (ii) (a b) c = a (b c) (iii) There is an

More information

Animation (-4, -2, 0 ) + (( 2, 6, -4 ) - (-4, -2, 0 ))*.75 = (-4, -2, 0 ) + ( 6, 8, -4)*.75 = (.5, 4, -3 ).

Animation (-4, -2, 0 ) + (( 2, 6, -4 ) - (-4, -2, 0 ))*.75 = (-4, -2, 0 ) + ( 6, 8, -4)*.75 = (.5, 4, -3 ). Animation A Series of Still Images We Call Animation Animation needs no explanation. We see it in movies and games. We grew up with it in cartoons. Some of the most popular, longest-running television

More information

Systems of Linear Equations: Solving by Substitution

Systems of Linear Equations: Solving by Substitution 8.3 Sstems of Linear Equations: Solving b Substitution 8.3 OBJECTIVES 1. Solve sstems using the substitution method 2. Solve applications of sstems of equations In Sections 8.1 and 8.2, we looked at graphing

More information

Computer Graphics. Introduction. Computer graphics. What is computer graphics? Yung-Yu Chuang

Computer Graphics. Introduction. Computer graphics. What is computer graphics? Yung-Yu Chuang Introduction Computer Graphics Instructor: Yung-Yu Chuang ( 莊 永 裕 ) E-mail: c@csie.ntu.edu.tw Office: CSIE 527 Grading: a MatchMove project Computer Science ce & Information o Technolog og Yung-Yu Chuang

More information

Unified Lecture # 4 Vectors

Unified Lecture # 4 Vectors Fall 2005 Unified Lecture # 4 Vectors These notes were written by J. Peraire as a review of vectors for Dynamics 16.07. They have been adapted for Unified Engineering by R. Radovitzky. References [1] Feynmann,

More information

5.2 Inverse Functions

5.2 Inverse Functions 78 Further Topics in Functions. Inverse Functions Thinking of a function as a process like we did in Section., in this section we seek another function which might reverse that process. As in real life,

More information