Linear Algebra (Mathematics for CG) Reading: HB Appendix A

Slides:



Advertisements
Similar presentations
Numbers Treasure Hunt Following each question, click on the answer. If correct, the next page will load with a graphic first – these can be used to check.
Advertisements

Computer Graphics: 2D Transformations
Cross Product Before discussing the second way to “multiply” vectors, we need to talk about matrices… If , then the determinant of A.
Angstrom Care 培苗社 Quadratic Equation II
AP STUDY SESSION 2.
1
Copyright © 2003 Pearson Education, Inc. Slide 1 Computer Systems Organization & Architecture Chapters 8-12 John D. Carpinelli.
Copyright © 2011, Elsevier Inc. All rights reserved. Chapter 6 Author: Julia Richards and R. Scott Hawley.
Author: Julia Richards and R. Scott Hawley
Properties Use, share, or modify this drill on mathematic properties. There is too much material for a single class, so you’ll have to select for your.
David Burdett May 11, 2004 Package Binding for WS CDL.
Properties of Real Numbers CommutativeAssociativeDistributive Identity + × Inverse + ×
Custom Statutory Programs Chapter 3. Customary Statutory Programs and Titles 3-2 Objectives Add Local Statutory Programs Create Customer Application For.
1 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt BlendsDigraphsShort.
Points, Vectors, Lines, Spheres and Matrices
1 Click here to End Presentation Software: Installation and Updates Internet Download CD release NACIS Updates.
Solve Multi-step Equations
Chapter 3 Determinants 3.1 The Determinant of a Matrix
Break Time Remaining 10:00.
Factoring Quadratics — ax² + bx + c Topic
Turing Machines.
Table 12.1: Cash Flows to a Cash and Carry Trading Strategy.
PP Test Review Sections 6-1 to 6-6
Bright Futures Guidelines Priorities and Screening Tables
EIS Bridge Tool and Staging Tables September 1, 2009 Instructor: Way Poteat Slide: 1.
Slide 6-1 COMPLEX NUMBERS AND POLAR COORDINATES 8.1 Complex Numbers 8.2 Trigonometric Form for Complex Numbers Chapter 8.
LIAL HORNSBY SCHNEIDER
Bellwork Do the following problem on a ½ sheet of paper and turn in.
14 Vectors in Three-dimensional Space Case Study
CS 6143 COMPUTER ARCHITECTURE II SPRING 2014 ACM Principles and Practice of Parallel Programming, PPoPP, 2006 Panel Presentations Parallel Processing is.
Exarte Bezoek aan de Mediacampus Bachelor in de grafische en digitale media April 2014.
Copyright © 2013, 2009, 2006 Pearson Education, Inc. 1 Section 5.5 Dividing Polynomials Copyright © 2013, 2009, 2006 Pearson Education, Inc. 1.
Copyright © 2012, Elsevier Inc. All rights Reserved. 1 Chapter 7 Modeling Structure with Blocks.
1 RA III - Regional Training Seminar on CLIMAT&CLIMAT TEMP Reporting Buenos Aires, Argentina, 25 – 27 October 2006 Status of observing programmes in RA.
Functions, Graphs, and Limits
Basel-ICU-Journal Challenge18/20/ Basel-ICU-Journal Challenge8/20/2014.
Chapter 1: Expressions, Equations, & Inequalities
1..
CONTROL VISION Set-up. Step 1 Step 2 Step 3 Step 5 Step 4.
Adding Up In Chunks.
1 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt Synthetic.
Splines IV – B-spline Curves
Splines I – Curves and Properties
6.4 Best Approximation; Least Squares
WK 2 Homework – due Friday, 9/16
Problem #1 E Mathboat.com.
1 hi at no doifpi me be go we of at be do go hi if me no of pi we Inorder Traversal Inorder traversal. n Visit the left subtree. n Visit the node. n Visit.
Analyzing Genes and Genomes
Essential Cell Biology
Exponents and Radicals
Clock will move after 1 minute
PSSA Preparation.
Essential Cell Biology
Immunobiology: The Immune System in Health & Disease Sixth Edition
Physics for Scientists & Engineers, 3rd Edition
Energy Generation in Mitochondria and Chlorplasts
Select a time to count down from the clock above
Murach’s OS/390 and z/OS JCLChapter 16, Slide 1 © 2002, Mike Murach & Associates, Inc.
Completing the Square Topic
Copyright Tim Morris/St Stephen's School
How to create Magic Squares
Math Review Guest Lecturer: Michiel van de Panne Week 1, Wed Jan 9
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2007 Tamara Munzner Math Review Week 1, Wed.
Graphics CSE 581 – Interactive Computer Graphics Mathematics for Computer Graphics CSE 581 – Roger Crawfis (slides developed from Korea University slides)
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2016 Tamara Munzner Math Basics Week 1, Fri.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2005 Tamara Munzner Math Review Week 1, Fri.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2010 Tamara Munzner Math Review Week 1, Wed.
Presentation transcript:

Linear Algebra (Mathematics for CG) Reading: HB Appendix A Computer Graphics Last Updated: 13-Jan-12 Linear Algebra (Mathematics for CG) Reading: HB Appendix A

Notation: Scalars, Vectors, Matrices (lower case, italic) Vector (lower case, bold) Matrix (upper case, bold)

Vectors Arrow: Length and Direction Oriented segment in 2D or 3D space

Column vs. Row Vectors Row vectors Column vectors Switch back and forth with transpose

Vector-Vector Addition Add: vector + vector = vector Parallelogram rule tail to head, complete the triangle geometric algebraic examples:

Vector-Vector Subtraction Subtract: vector - vector = vector

Vector-Vector Subtraction Subtract: vector - vector = vector argument reversal

Scalar-Vector Multiplication Multiply: scalar * vector = vector vector is scaled

Vector-Vector Multiplication Multiply: vector * vector = scalar Dot product or Inner product

Vector-Vector Multiplication Multiply: vector * vector = scalar dot product, aka inner product

Vector-Vector Multiplication Multiply: vector * vector = scalar dot product or inner product geometric interpretation lengths, angles can find angle between two vectors

Dot Product Geometry Can find length of projection of u onto v as lines become perpendicular,

Dot Product Example

Vector-Vector Multiplication Multiply: vector * vector = vector cross product

Vector-Vector Multiplication multiply: vector * vector = vector cross product algebraic geometric parallelogram area perpendicular to parallelogram

RHS vs. LHS Coordinate Systems Right-handed coordinate system Left-handed coordinate system right hand rule: index finger x, second finger y; right thumb points up left hand rule: index finger x, second finger y; left thumb points down

Basis Vectors Take any two vectors that are linearly independent (nonzero and nonparallel) can use linear combination of these to define any other vector:

Orthonormal Basis Vectors If basis vectors are orthonormal (orthogonal (mutually perpendicular) and unit length) we have Cartesian coordinate system familiar Pythagorean definition of distance Orthonormal algebraic properties

Basis Vectors and Origins Coordinate system: just basis vectors can only specify offset: vectors Coordinate frame (or Frame of Reference): basis vectors and origin can specify location as well as offset: points It helps in analyzing the vectors and solving the kinematics.

Working with Frames F1 F1 Coefficient of i: Start from O, move along i and count until the line passing through P parallel to j. Coefficient of j: Start from O, move along j and count until the line passing through P parallel to i. Coefficient of i or j will be –ve if the movement is opposite to the direction of i or j, resp.

Working with Frames F1 F1 p = (3,-1)

Working with Frames F1 F1 p = (3,-1) F2 F2

Working with Frames F1 F1 p = (3,-1) F2 F2 p = (-1.5,2)

Working with Frames F1 F1 p = (3,-1) F2 F3 F2 p = (-1.5,2) F3

Working with Frames F1 p = (3,-1) F2 p = (-1.5,2) F3 p = (1,2) F1 F2

Named Coordinate Frames Origin and basis vectors Pick canonical frame of reference then don’t have to store origin, basis vectors just convention: Cartesian orthonormal one on previous slide Handy to specify others as needed airplane nose, looking over your shoulder, ... really common ones given names in CG object, world, camera, screen, ...

Lines Slope-intercept form Implicit form y = mx + b y – mx – b = 0 Ax + By + C = 0 f(x,y) = 0

Implicit Functions Find where function is 0 An implicit function f(x,y) = 0 can be thought of as a height field where f is the height (top). A path where the height is zero is the implicit curve (bottom). Find where function is 0 plug in (x,y), check if = 0 on line < 0 inside > 0 outside

Implicit Circles circle is points (x,y) where f(x,y) = 0 points p on circle have property that vector from c to p dotted with itself has value r2 points p on the circle have property that squared distance from c to p is r2 points p on circle are those a distance r from center point c

Parametric Curves Parameter: index that changes continuously (x,y): point on curve t: parameter Vector form

2D Parametric Lines start at point p0, go towards p1, according to parameter t p(0) = p0, p(1) = p1

Linear Interpolation Parametric line is example of general concept p goes through a at t = 0 p goes through b at t = 1 Linear weights t, (1-t) are linear polynomials in t

Matrix-Matrix Addition Add: matrix + matrix = matrix Example

Scalar-Matrix Multiplication Multiply: scalar * matrix = matrix Example

Matrix-Matrix Multiplication Can only multiply (n, k) by (k, m): number of left cols = number of right rows legal undefined

Matrix-Matrix Multiplication row by column

Matrix-Matrix Multiplication row by column

Matrix-Matrix Multiplication row by column

Matrix-Matrix Multiplication row by column

Matrix-Matrix Multiplication row by column Non commutative: AB != BA

Matrix-Vector Multiplication points as column vectors: post-multiply

Matrices Transpose Identity Inverse Note: Not all matrices are invertible

Matrices and Linear Systems Linear system of n equations, n unknowns Matrix form Ax=b

Exercise 1 Q 1: If the vectors, u and v in figure are coplanar with the sheet of paper, does the cross product v x u extend towards the reader or away assuming right-handed coordinate system? For u = [1, 0, 0] & v = [2, 2, 1]. Find Q 2: The length of v Q 3: length of projection of u onto v Q 4: v x u Q 5: Cos t, if t is the angle between u & v

Exercise 2 F1 F3 F2 F1 p = (?, ?) F2 p = (?, ?) F3 p = (?, ?)

Exercise 3 Given P1(3,6,9) and P2(5,5,5). Find a point on the line with end points P1 & P2 at t = 2/3 using parametric equation of line, where t is the parameter.

Things to do Reading for OpenGL practice: HB 2.9 Ready for the Quiz

References http://faculty.cs.tamu.edu/schaefer/teaching/441_Spring2012/index.html http://www.ugrad.cs.ubc.ca/~cs314/Vjan2007/