Linear and affine transformations

Similar documents
CS 4300 Computer Graphics. Prof. Harriet Fell Fall 2011 Lecture 11 September 29, 2011

Reading. 4. Affine transformations. Required: Watt, Section 1.1. Further reading:

Affine transformations. Brian Curless CSE 557 Fall 2014

Affine transformations

Affine transformations

Reading. Affine transformations. Vector representation. Geometric transformations. x y z. x y. Required: Angel 4.1, Further reading:

Graphics Example: Type Setting

Affine transformations

Two conventions for coordinate systems. Left-Hand vs Right-Hand. x z. Which is which?

Vector and Affine Math

2D Geometric Transformations. (Chapter 5 in FVD)

Physically Based Rendering ( ) Geometry and Transformations

Mathematical Fundamentals

Rigid Body Transforms-3D. J.C. Dill transforms3d 27Jan99

Mathematics of Cryptography Part I

CS 354R: Computer Game Technology

we must pay attention to the role of the coordinate system w.r.t. which we perform a tform

Lecture 16: 9.2 Geometry of Linear Operators

Linear Algebra & Geometry why is linear algebra useful in computer vision?

we must pay attention to the role of the coordinate system w.r.t. which we perform a tform

Lecture 4: Affine Transformations. for Satan himself is transformed into an angel of light. 2 Corinthians 11:14

Computer Graphics MTAT Raimond Tunnel

Some linear transformations on R 2 Math 130 Linear Algebra D Joyce, Fall 2013

CS 378: Computer Game Technology

Linear Algebra & Geometry why is linear algebra useful in computer vision?

Exercises for Unit I I (Vector algebra and Euclidean geometry)

1 Last time: multiplying vectors matrices

Lecture 4: Affine Transformations. for Satan himself is transformed into an angel of light. 2 Corinthians 11:14

Computer Graphics: 2D Transformations. Course Website:

A geometric interpretation of the homogeneous coordinates is given in the following Figure.

Row Space, Column Space, and Nullspace

Linear Algebra V = T = ( 4 3 ).

(A B) 2 + (A B) 2. and factor the result.

Transformations. Chapter D Transformations Translation

Coordinates for Projective Planes

Introduction to 3D Game Programming with DirectX 9.0c: A Shader Approach

Analytic Geometry in Three Dimensions

CSC 470 Introduction to Computer Graphics. Mathematical Foundations Part 2

( ) ( ) ( ) ( ) TNM046: Datorgrafik. Transformations. Linear Algebra. Linear Algebra. Sasan Gooran VT Transposition. Scalar (dot) product:

Lecture 03. Math 22 Summer 2017 Section 2 June 26, 2017

Rigid Body Dynamics, SG2150 Solutions to Exam,

CSE 167: Introduction to Computer Graphics Lecture #2: Linear Algebra Primer

15. Eigenvalues, Eigenvectors

Eigenvectors and Eigenvalues 1

MATRICES. a m,1 a m,n A =

Lines and points. Lines and points

Homogeneous Coordinates

Mathematical Structures for Computer Graphics Steven J. Janke John Wiley & Sons, 2015 ISBN: Exercise Answers

a 1n a 2n. a mn, a n = a 11 a 12 a 1j a 1n a 21 a 22 a 2j a m1 a m2 a mj a mn a 11 v 1 + a 12 v a 1n v n a 21 v 1 + a 22 v a 2n v n

We could express the left side as a sum of vectors and obtain the Vector Form of a Linear System: a 12 a x n. a m2

1 Euclidean geometry. 1.1 The metric on R n

Linear Algebra Homework and Study Guide

LinGloss. A glossary of linear algebra

ES.1803 Topic 16 Notes Jeremy Orloff

2. Isometries and Rigid Motions of the Real Line

Physics 116A Solutions to Homework Set #2 Winter 2012

CS-184: Computer Graphics. Today

CSE 167: Introduction to Computer Graphics Lecture #2: Linear Algebra Primer

A Tutorial on Euler Angles and Quaternions

III.3. Analytic Functions as Mapping, Möbius Transformations

CSE4030 Introduction to Computer Graphics

When two letters name a vector, the first indicates the and the second indicates the of the vector.

Linear Algebra Practice Problems

Algebra 2 Matrices. Multiple Choice Identify the choice that best completes the statement or answers the question. 1. Find.

Linear Algebra. Preliminary Lecture Notes

ISOMETRIES OF THE PLANE AND COMPLEX NUMBERS. y in R 2 is (

1 Overview. CS348a: Computer Graphics Handout #8 Geometric Modeling Original Handout #8 Stanford University Thursday, 15 October 1992

642:550, Summer 2004, Supplement 6 The Perron-Frobenius Theorem. Summer 2004

Lecture 8: Coordinate Frames. CITS3003 Graphics & Animation

CS 335 Graphics and Multimedia. 2D Graphics Primitives and Transformation

MMJ1153 COMPUTATIONAL METHOD IN SOLID MECHANICS PRELIMINARIES TO FEM

Linear Equations in Linear Algebra

Matrix Calculations: Linear maps, bases, and matrices

Pre-AP Algebra 2 Lesson 1-5 Linear Functions

GG303 Lecture 15 10/6/09 1 FINITE STRAIN AND INFINITESIMAL STRAIN

Consider a slender rod, fixed at one end and stretched, as illustrated in Fig ; the original position of the rod is shown dotted.

Linear Algebra (wi1403lr) Lecture no.4

x n -2.5 Definition A list is a list of objects, where multiplicity is allowed, and order matters. For example, as lists

Example. We can represent the information on July sales more simply as

Ma 227 Final Exam Solutions 5/8/03

Compression, Matrix Range and Completely Positive Map

COMP 175 COMPUTER GRAPHICS. Lecture 04: Transform 1. COMP 175: Computer Graphics February 9, Erik Anderson 04 Transform 1

4 Strain true strain engineering strain plane strain strain transformation formulae

ELEMENTARY LINEAR ALGEBRA

Outline. MA 138 Calculus 2 with Life Science Applications Linear Maps (Section 9.3) Graphical Representation of (Column) Vectors. Addition of Vectors

1 HOMOGENEOUS TRANSFORMATIONS

ED209 TWO DIMENSIONAL TRANSFORMATIONS

22m:033 Notes: 1.3 Vector Equations

Announcements Monday, November 13

1. Projective geometry

A matrix over a field F is a rectangular array of elements from F. The symbol

The Distance Formula & The Midpoint Formula

GEOMETRY. 2.5 Proving Statements about Segments and Angles

Matrix Arithmetic. a 11 a. A + B = + a m1 a mn. + b. a 11 + b 11 a 1n + b 1n = a m1. b m1 b mn. and scalar multiplication for matrices via.

What is the Matrix? Linear control of finite-dimensional spaces. November 28, 2010

KINEMATIC RELATIONS IN DEFORMATION OF SOLIDS

Linear Equation: a 1 x 1 + a 2 x a n x n = b. x 1, x 2,..., x n : variables or unknowns

I&C 6N. Computational Linear Algebra

Engineering Mathematics I

03 - Basic Linear Algebra and 2D Transformations

Transcription:

Linear and affine transformations Linear Algebra Review Matrices Transformations Affine transformations in Euclidean space 1 The linear transformation given b a matri Let A be an mn matri. The function T defined b T( v) Av is a linear transformation from R n into R m. Note: n m R vector R vector a11 a12 a1n v1 a11v1 a12v2 a1nvn a21 a22 a 2n v 2 a21v1 a22v2 a2nv n Av a a a v a v a v a v m1 m2 mn n m1 1 m2 2 mn n T( v) Av T : R n R m 6-2 1

Two representations of the linear transformation T:R 3 R 3 : ( 1) T( 1, 2, 3) (21 2 3, 1 32 23,32 43) 2 (2) T( ) A 1 0 1 3 3 11 2 2 4 3 Three reasons for matri representation of a linear transformation: It is simpler to write. It is simpler to read. It is more easil adapted for computer use. Geometric transformations Geometric transformations map points in one space to points in another: (',',z') = f(,,z), i.e. in vector form X = f(x) These transformations can be ver simple, such as scaling each coordinate, or comple, such as non-linear twists and bends. We'll focus on transformations that can be represented easil with matri operations. We'll start in 2D... 2

Representation of 2D linear map We can represent a 2-D transformation M b a matri M a b c d If is a column vector, M goes on the left: ' M a b c d If is a row vector, M T goes on the right: M We will use column vectors. a c b d T Basic 2D Linear Transforms Base vectors map to columns of matri. M a b a b M c d c d ' M a b c d a b 1 a a b 0 b c d 0 c c d 1 d (1, 0) 6 3

Scaling b 0.5 M M 0.5 0 0 0.5 November 7, 2016 7 General Scaling scale( s, s ) 1 scale s, s s 0 0 s s 1 s November 7, 2016 8 4

Rotation rot( ) cos sin rot sin cos November 7, 2016 9 Reflection in -ais ref ref 1 0 0 1 November 7, 2016 10 5

Reflection in -ais ref ref 1 0 0 1 November 7, 2016 11 Shear- M 1 s 0 1 November 7, 2016 12 6

Shear- M 1 0 s 1 November 7, 2016 13 Composing Linear Transformations If T 1 and T 2 are transformations T1( v) M1v T T 2 T 1 (v) = def T 2 ( T 1 (v)) 2( v) M2 v If T 1 and T 2 are represented b matrices M 1 and M 2 T 2 T 1 is represented b M 2 M 1 T 2 T 1 (v) = T 2 ( T 1 (v)) = (M 2 M 1 )(v) Order is important! reflect() (rot(o,α)): A A A rot(o,α) (reflect()): A A A A' Rot A A'' Ref A' 14 7

Composing Linear Transformations Order is important! reflect() (rot(o,α)): A A A rot(o,α) (reflect()): A A A A' Rot A A'' Ref A' cos sin 1 0 Rot ; Ref sin cos 0 1 cos sin Rot*Ref sin cos cos sin Ref*Rot sin cos 15 Decomposing Linear Transformations An 2D Linear Transformation can be decomposed into the product of a rotation, a scale (or line reflection), and a rotation M = R 1 SR 2. An 2D Linear Transformation can be decomposed into the product of 3 line reflection at the most. Isometr (congruent transformation) Isometr preserves length, whereas direct isometr preserves orientation and opposite does not preserve orientation Direct Isometr R = 1 (Rotation) Opposite Isometr R = -1 (Line Reflection) November 7, 2016 16 8

Reflection About an Arbitrar Line (through the origin) November 7, 2016 17 Reflection as a Composition -1 F ref F new base B = B = B -1-1 B = ref B B B B = B ref B -1 B B B F e1, e2 f 1,f 2 f 1 f 2 9

Linear Transformations Scale, Reflection, Rotation, and Shear are all linear transformations The satisf: T(au + bv) = at(u) + bt(v) u and v are vectors a and b are scalars If T is a linear transformation T((0, 0)) = (0, 0) Q: What important operation does that leave out? 19 Rotation about an Arbitrar Point This is not a linear transformation. The origin moves. November 7, 2016 20 10

Translation (, )(+a,+b) (a, b) This is not a linear transformation. The origin moves. November 7, 2016 21 2D Linear Transformations as 3D Matrices An 2D linear transformation can be represented b a 22 matri a11 a12 a11 a12 a a a a 21 22 21 22 or a 33 matri a11 a12 0 a11 a12 a a 0 a a 21 22 21 22 0 0 1 1 1 November 7, 2016 22 11

2D Linear Translations as 3D Matrices An 2D translation can be represented b a 33 matri. 1 0 a a 0 1 b b 0 0 1 1 1 With homogeneous coordinates, we can represent all 2D affine transformations as 3D linear transformations. We can then use matri multiplication to transform objects. 23 2D Affine Transformations An affine transformation is an transformation that preserves co-linearit (i.e., all points ling on a line initiall still lie on a line after transformation) and ratios of distances (e.g., the midpoint of a line segment remains the midpoint after transformation). 24 12

T(c, c ) R() T(-c, -c ) Rotation about an Arbitrar Point November 7, 2016 25 Windowing Transforms (A,B) (a,b) translate (A-a,B-b) scale (C-c,D-d) (C,D) translate (c,d) November 7, 2016 26 13

3D Transformations Remember: z z 1 A 3D linear transformation can be represented b a 33 matri. a a a a a a 0 11 12 13 11 12 13 a21 a22 a22 0 a21 a22 a 23 a31 a32 a33 0 a31 a32 a33 0 0 0 1 November 7, 2016 27 3D Affine Transformations scale s, s, s z s 0 0 0 0 s 0 0 0 0 sz 0 0 0 0 1 translate t, t, t z 1 0 0 t 0 1 0 t 0 0 1 tz 0 0 0 1 28 14

3D Rotations rotate rotate z 1 0 0 0 0 cos sin 0 0 sin cos 0 0 0 0 1 rotate cos sin 0 0 sin cos 0 0 0 0 1 0 0 0 0 1 cos 0 sin 0 0 1 0 0 sin 0 cos 0 0 0 0 1 29 15