Recap of linear algebra: vectors, matrices, transformations, … Background knowledge for 3DM Marc van Kreveld.

Slides:



Advertisements
Similar presentations
CS 450: COMPUTER GRAPHICS LINEAR ALGEBRA REVIEW SPRING 2015 DR. MICHAEL J. REALE.
Advertisements

3D Geometry for Computer Graphics
Mapping: Scaling Rotation Translation Warp
6 6.1 © 2012 Pearson Education, Inc. Orthogonality and Least Squares INNER PRODUCT, LENGTH, AND ORTHOGONALITY.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 : “shiv rpi” Linear Algebra A gentle introduction Linear Algebra has become as basic and as applicable.
Chapter 4.1 Mathematical Concepts
Computer Graphics Recitation 5.
Chapter 4.1 Mathematical Concepts. 2 Applied Trigonometry Trigonometric functions Defined using right triangle  x y h.
CSCE 590E Spring 2007 Basic Math By Jijun Tang. Applied Trigonometry Trigonometric functions  Defined using right triangle  x y h.
Class 25: Question 1 Which of the following vectors is orthogonal to the row space of A?
6 6.1 © 2012 Pearson Education, Inc. Orthogonality and Least Squares INNER PRODUCT, LENGTH, AND ORTHOGONALITY.
Vectors.
Boot Camp in Linear Algebra Joel Barajas Karla L Caballero University of California Silicon Valley Center October 8th, 2008.
Linear Algebra Review CSE169: Computer Animation Instructor: Steve Rotenberg UCSD, Winter 2005.
5.1 Orthogonality.
Linear Algebra Review By Tim K. Marks UCSD Borrows heavily from: Jana Kosecka Virginia de Sa (UCSD) Cogsci 108F Linear.
2IV60 Computer Graphics Basic Math for CG
Foundations of Computer Graphics (Fall 2012) CS 184, Lecture 2: Review of Basic Math
Graphics CSE 581 – Interactive Computer Graphics Mathematics for Computer Graphics CSE 581 – Roger Crawfis (slides developed from Korea University slides)
6.837 Linear Algebra Review Patrick Nichols Thursday, September 18, 2003.
1 February 24 Matrices 3.2 Matrices; Row reduction Standard form of a set of linear equations: Chapter 3 Linear Algebra Matrix of coefficients: Augmented.
Patrick Nichols Thursday, September 18, Linear Algebra Review.
Chapter 4.1 Mathematical Concepts
Chapter 5: The Orthogonality and Least Squares
Geometric Transformation. So far…. We have been discussing the basic elements of geometric programming. We have discussed points, vectors and their operations.
ME 1202: Linear Algebra & Ordinary Differential Equations (ODEs)
Mathematical Foundations Sections A-1 to A-5 Some of the material in these slides may have been adapted from university of Virginia, MIT and Åbo Akademi.
6.837 Linear Algebra Review Patrick Nichols Thursday, September 18, 2003.
CSE 681 Review: Transformations. CSE 681 Transformations Modeling transformations build complex models by positioning (transforming) simple components.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 : “shiv rpi” Linear Algebra A gentle introduction Linear Algebra has become as basic and as applicable.
Transformations Jehee Lee Seoul National University.
Chapter 8 Matrices and Determinants Copyright © 2014, 2010, 2007 Pearson Education, Inc Matrix Operations and Their Applications.
CS 376 Introduction to Computer Graphics 02 / 16 / 2007 Instructor: Michael Eckmann.
1 1.3 © 2012 Pearson Education, Inc. Linear Equations in Linear Algebra VECTOR EQUATIONS.
6.837 Linear Algebra Review Rob Jagnow Monday, September 20, 2004.
Introduction to Matrices and Vectors Sebastian van Delden USC Upstate
4.8 Rank Rank enables one to relate matrices to vectors, and vice versa. Definition Let A be an m  n matrix. The rows of A may be viewed as row vectors.
VECTORS (Ch. 12) Vectors in the plane Definition: A vector v in the Cartesian plane is an ordered pair of real numbers:  a,b . We write v =  a,b  and.
Matrices A matrix is an array of numbers, the size of which is described by its dimensions: An n x m matrix has n rows and m columns Eg write down the.
Class 26: Question 1 1.An orthogonal basis for A 2.An orthogonal basis for the column space of A 3.An orthogonal basis for the row space of A 4.An orthogonal.
Review of Linear Algebra Optimization 1/16/08 Recitation Joseph Bradley.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2016 Tamara Munzner Math Basics Week 1, Fri.
Sec 4.1 Matrices.
Affine Geometry.
CSCE 552 Fall 2012 Math By Jijun Tang. Applied Trigonometry Trigonometric functions  Defined using right triangle  x y h.
Basic Theory (for curve 01). 1.1 Points and Vectors  Real life methods for constructing curves and surfaces often start with points and vectors, which.
4.8 Rank Rank enables one to relate matrices to vectors, and vice versa. Definition Let A be an m  n matrix. The rows of A may be viewed as row vectors.
Linear Algebra Review Tuesday, September 7, 2010.
Chapter 4.1 Mathematical Concepts. 2 Applied Trigonometry "Old Henry And His Old Aunt" Defined using right triangle  x y h.
Boot Camp in Linear Algebra TIM 209 Prof. Ram Akella.
Matrices, Vectors, Determinants.
Graphics Graphics Korea University kucg.korea.ac.kr Mathematics for Computer Graphics 고려대학교 컴퓨터 그래픽스 연구실.
Lecture 1 Linear algebra Vectors, matrices. Linear algebra Encyclopedia Britannica:“a branch of mathematics that is concerned with mathematical structures.
CSE 167 [Win 17], Lecture 2: Review of Basic Math Ravi Ramamoorthi
Linear Algebra review (optional)
Transforms.
Chapter 1 Linear Equations and Vectors
Lecture 03: Linear Algebra
COMP 175: Computer Graphics February 9, 2016
Linear Equations in Linear Algebra
1.3 Vector Equations.
Chapter 3 Linear Algebra
Mathematics for Signals and Systems
Elementary Linear Algebra
Linear Algebra A gentle introduction
Game Programming Algorithms and Techniques
Presentation transcript:

Recap of linear algebra: vectors, matrices, transformations, … Background knowledge for 3DM Marc van Kreveld

Vectors, points A vector is an ordered pair, triple, … of (real) numbers, often written as a column A vector (3, 4) can be interpreted as the point with x-coordinate 3 and y-coordinate 4, so (3, 4) as well A vector like (2, 1, –4) can be interpreted as a point in 3-dimensional space Three times the vector (3, 2), and once the point (3, 2)

Vectors, length

Vector addition Two vectors of the same dimensionality can be added; just add the corresponding components: (a,b) + (c,d) = (a+c, b+d) The result is a vector of the same dimensionality Geometric interpretation: place one arrow’s start at the end of the other, and take the resulting arrow purple + purple = blue

Scalars, vectors, multiplication A value is also called a scalar We can multiply a scalar k with a vector (a, b); this is defined to be the vector (ka, kb) Geometric interpretation where a vector is an arrow: – k = – 1 : reverse the direction of an arrow – k = 2 : double the length of an arrow; same as adding a vector to itself

Vector multiplication One type of vector multiplication is called the dot product, it yields a scalar (a value) Example: (a, b, c)  (d, e, f) = ad + be + cf It works in all dimensions The dot product rule/equation for vectors u and v: u  v = |u|  |v| cos  Perpendicular vectors have a dot product 0

Vector multiplication Another type of multiplication is the cross product, denoted by  It applies only to two vectors in 3D and yields a vector in 3D – the result is normal to the input vectors – if the input vectors are parallel, we get the null vector (0, 0, 0)

Vector multiplication The length of the result vector of the cross product is related to the lengths of the input vectors and their angle |a  b| = |a|  |b| sin  In words: the length of the result a  b is the area of the parallelogram with a and b as sides

Vectors Other terms of importance: – linear independence – spanning a (sub)space – basis – orthogonal basis – orthonormal basis

Matrices Matrices are grids of values; an m-by-n (m  n) matrix consists of m rows and n columns An m  n matrix represents a linear transformation from m-space to n-space, but it could represent many other things

Matrices A linear transformation: – maps any point/vector to exactly one point/vector – maps the origin/null vector to the origin/null vector – preserves straightness: mapping a line segment (its points) yields a line segment (its points), which can degenerate to a single point Example: point or vector

Matrices mirror in y-axis shear the x-coordinate

Matrices scale x and y by 1.5 rotate by  =  /6 radians

Matrices Matrix addition: entry-wise Multiplication with scalar: entry-wise Multiplication of two matrices A and B: – #columns of A must match #rows of B – not commutative – AB represents the linear transformation where B is applied first and A is applied second

Matrices Other terms of importance: – null matrix (m  n), identity matrix (n  n) – rank of a matrix: number of independent rows (or columns) – determinant: converts a square matrix to a scalar Geometric interpretation: tells something about the area/volume enlargement (2D/3D) of a matrix Det = 2 (in 2D): a transformed triangle has twice the area Det = 0: the transformation is a projection – matrix inversion: represents the transformation that is the reverse of what the matrix did – Gaussian elimination: process (algorithm) that allows us to invert a matrix, or solve a set of linear equations

Translations and matrices A 3x3 matrix can represent any linear transformation from 3-space to 3-space, but no other transformation The most important missing transformation is translation (which never maps the origin to the origin so it cannot be a linear transformation)

Homogeneous coordinates Combinations of linear transformations and translations (one applied after the other) are called affine transformations Using homogeneous coordinates, we can use a 4x4 matrix to represent all 3-dim affine transformations (generally: (d+1)x(d+1) matrix for d-dim affine tr.)  the homogeneous coordinates of the point (a, b, c) are simply (a, b, c, 1)

Homogeneous coordinates The matrix for translation by the vector (a, b, c) using homogeneous coordinates is: Just apply this matrix to the origin = (0, 0, 0, 1) and see where it ends up: (a, b, c, 1)

Vectors of points It is possible to define and use vectors of points: ( (a, b), (c, d), (e,f) ) instead of vectors of scalars We can add two of these because vector addition is naturally defined We can also multiply such a thing by a scalar ( (a, b), (c, d), (e,f) ) + ( (g, h), (i, j), (k,l) ) = ( (a, b)+(g, h), (c, d)+(i, j), (e,f)+(k,l) ) = ( (a+g, b+h), (c+i, d+j), (e+k, f+l) ) 3 ( (a, b), (c, d), (e,f) ) = ( 3(a, b), 3(c, d), 3(e,f) ) = ( (3a, 3b), (3c, 3d), (3e, 3f) )

Vectors of points We can not add such a thing and a normal 3D vector because we cannot add a scalar and a vector/point ( (a, b), (c, d), (e,f) ) + ( g, h, i ) = undefined

Vectors of points We can even apply (scalar) matrices to these things: This works be cause we know how to add points and multiply scalars and points

Questions

5.Let S be the collection of all strings. Define – addition of two strings as their concatenation – multiplication of a string with a nonnegative integer by repeating the string as often as the value of the integer Compute: