Mathematics for Computer Graphics (Appendix A) 2001. 1. 10 Won-Ki Jeong.

Slides:



Advertisements
Similar presentations
UBI 516 Advanced Computer Graphics
Advertisements

Solving Linear Systems (Numerical Recipes, Chap 2)
12.1 Systems of Linear Equations: Substitution and Elimination.
EE2030: Electromagnetics (I)
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.
Chapter 2 Basic Linear Algebra
Matrices. Special Matrices Matrix Addition and Subtraction Example.
CSCE 590E Spring 2007 Basic Math By Jijun Tang. Applied Trigonometry Trigonometric functions  Defined using right triangle  x y h.
Chapter 3 Determinants and Matrices
Chapter 2 Matrices Definition of a matrix.
Chapter 1 Vector analysis
MOHAMMAD IMRAN DEPARTMENT OF APPLIED SCIENCES JAHANGIRABAD EDUCATIONAL GROUP OF INSTITUTES.
10.1 Gaussian Elimination Method
Graphics Graphics Korea University cgvr.korea.ac.kr Mathematics for Computer Graphics 고려대학교 컴퓨터 그래픽스 연구실.
資訊科學數學11 : Linear Equation and Matrices
化工應用數學 授課教師: 郭修伯 Lecture 9 Matrices
Chapter 5 Determinants.
Lesson 8.1, page 782 Matrix Solutions to Linear Systems
MATH – High School Common Core Vs Kansas Standards.
2IV60 Computer Graphics Basic Math for CG
Algebra Review. Polynomial Manipulation Combine like terms, multiply, FOIL, factor, etc.
MATRICES AND DETERMINANTS
Systems and Matrices (Chapter5)
Geometric Objects Computer Graphics Lab. Sun-Jeong Kim.
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.
8.1 Vector spaces A set of vector is said to form a linear vector space V Chapter 8 Matrices and vector spaces.
 Row and Reduced Row Echelon  Elementary Matrices.
Slide Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley.
Systems of Linear Equation and Matrices
Chapter 6 ADDITIONAL TOPICS IN TRIGONOMETRY. 6.1 Law of Sines Objectives –Use the Law of Sines to solve oblique triangles –Use the Law of Sines to solve,
Chapter 10 Vector Calculus
Review of Vector Analysis
7.1 Scalars and vectors Scalar: a quantity specified by its magnitude, for example: temperature, time, mass, and density Chapter 7 Vector algebra Vector:
Chemistry 330 The Mathematics Behind Quantum Mechanics.
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.
1 Math Review Coordinate systems 2-D, 3-D Vectors Matrices Matrix operations.
Matrices Addition & Subtraction Scalar Multiplication & Multiplication Determinants Inverses Solving Systems – 2x2 & 3x3 Cramer’s Rule.
Matrices. Definitions  A matrix is an m x n array of scalars, arranged conceptually as m rows and n columns.  m is referred to as the row dimension.
Graphics Graphics Korea University Mathematics for Computer Graphics Graphics Laboratory Korea University.
Section 9.1 Polar Coordinates. x OriginPole Polar axis.
Chapter 10 Real Inner Products and Least-Square
Chap. 5 Inner Product Spaces 5.1 Length and Dot Product in R n 5.2 Inner Product Spaces 5.3 Orthonormal Bases: Gram-Schmidt Process 5.4 Mathematical Models.
Matrices and Systems of Equations
Copyright © 2009 Pearson Education, Inc. CHAPTER 9: Systems of Equations and Matrices 9.1 Systems of Equations in Two Variables 9.2 Systems of Equations.
Matrices and Systems of Equations
The Mathematics for Chemists (I) (Fall Term, 2004) (Fall Term, 2005) (Fall Term, 2006) Department of Chemistry National Sun Yat-sen University 化學數學(一)
1. Systems of Linear Equations and Matrices (8 Lectures) 1.1 Introduction to Systems of Linear Equations 1.2 Gaussian Elimination 1.3 Matrices and Matrix.
CSCE 552 Fall 2012 Math By Jijun Tang. Applied Trigonometry Trigonometric functions  Defined using right triangle  x y h.
Graphics Graphics Korea University cgvr.korea.ac.kr Mathematics for Computer Graphics 고려대학교 컴퓨터 그래픽스 연구실.
Linear Algebra Engineering Mathematics-I. Linear Systems in Two Unknowns Engineering Mathematics-I.
Matrices, Vectors, Determinants.
CALCULUS III CHAPTER 5: Orthogonal curvilinear coordinates
Graphics Graphics Korea University kucg.korea.ac.kr Mathematics for Computer Graphics 고려대학교 컴퓨터 그래픽스 연구실.
1 SYSTEM OF LINEAR EQUATIONS BASE OF VECTOR SPACE.
Lecture 1 Linear algebra Vectors, matrices. Linear algebra Encyclopedia Britannica:“a branch of mathematics that is concerned with mathematical structures.
Lecture 11 Inner Product Spaces Last Time Change of Basis (Cont.) Length and Dot Product in R n Inner Product Spaces Elementary Linear Algebra R. Larsen.
MATHEMATICS B.A./B.Sc. (GENERAL) FIRST YEAR EXAMINATIONS,2012.
CA 302 Computer Graphics and Visual Programming
Matrices and vector spaces
Chapter 8: Lesson 8.1 Matrices & Systems of Equations
CSE 411 Computer Graphics Lecture #2 Mathematical Foundations
Elementary Linear Algebra
Math review - scalars, vectors, and matrices
Presentation transcript:

Mathematics for Computer Graphics (Appendix A) Won-Ki Jeong

A-1. Coordinate Reference Frame 2D Cartesian reference frame x y x y

2D Polar Coordinate reference frame

3D Cartesian reference frame Right-handed v.s left-handed Right-handedLeft-handed

3D curvilinear coordinate systems General curvilinear reference frame  Orthogonal coordinate system  Each coordinate surfaces intersects at right angles

Cylindrical-coordinate : vertical cylinder : vertical plane containing z-axis : horizontal plane parallel to xy-plane constant Transform to Cartesian coordinator x axis y axisz axis

Spherical-coordinate x axis y axis z axis : sphere : vertical plane containing z-axis : cone with the apex at the origin constant Transform to Cartesian coordinator

Solid angle 3D Angle defined on a sphere(steradian) Steradian : Total solid angle : steradian

A-2. Points & Vectors Point  Position in some reference frame  Distance from the origin depends on the reference frame P Frame B Frame A x y

Vector  Difference between two point positions  Properties : Magnitude & direction  Same properties within a single coordinate system  Magnitude is independent from coordinate frames Magnitude : Direction :

3D vector Magnitude Directional angle

Vector addition & scalar multiplication Addition Scalar multiplication

Vector multiplication Scalar product(inner product) Commutative : Distributive : Orthogonal :

Vector product(Cross product) Noncommutative : Nonassociative : Distributive : Right-handed rule!

A-3. Basis vectors and the metric tensor Basis of vector space  Linearly independent axis vectors Orthonormal basis  Orthogonal :  Normalized :  Orthonormal = Orthogonal + Normalized  Orthonormal basis of 3D Cartesian reference frame

Metric tensor Tensor  Generalization of a vector with rank & dim. that satisfy certain transformation properties  n-th rank with dim m : m-dimensional space which has n indices  Rank 0: scalar, rank 1: dim m vector rank 2 : vector which has m 2 component Metric tensor  Definition :  The tensor for  Distance metric  Used as transformation equation  Component of differential vector operators (gradient, divergence, and curl)

Example of metric tensor Cartesian coordinate system Polar coordinates If j = k otherwise Pythagorean theorem : For 3D Cartesian coordinate system :

A-4. Matrices Rows & columns Matrix multiplication Column row Properties

Transpose & Determinant Matrix transpose Determinant  Large matrix A

Inverse of a matrix Inverse matrix  Determinant is not 0 : Non-singular matrix  Elements of

A-5. Complex numbers Real + Imaginary part Real axis Imaginary axis

Polar form & Euler ’ s formula Polar form Euler ’ s formula Real axis Imaginary axis

A-6. Quaternions Higher dimension complex number Addition, multiplication, magnitude, & inverse

A-7. Nonparameteric representation Direct description in terms of the reference frame  Surface : or  Curve :  Useful in the given reference frame Example (circle) Implicit form Explicit form

A-8. Parameteric representation Use parameter domain  Curve  Ex. Circle  Surface  Ex. Spherical surface r : radius of the sphere u: latitude v: longitude

A-9. Numerical methods Solving sets of linear equation  Matrix form  Cramer ’ s rule  Adequate for a few variables : matrix A with the kth column replaced with B

 Gauss elimination  Elementary Row Operation  Multiply a row through by a nonzero constant  Interchange two rows  Add a multiple of one row to another row  Make row-echelon form by e.r.o  Row-echelon form  First nonzero number of each row is 1(leading 1)  Entire-zero-rows are grouped together at the bottom of the matrix  In any successive non-entire-zero rows, the leading 1 in the lower row occurs farther to the right than the leading 1 in the higher row

 Gauss-Seidel method  Start with initial guess and repeatedly calculate successive approximations until their difference is small  Convergence condition  Each diagonal element of a matrix A has a magnitude greater than the sum of the magnitudes of the other elements across that row

Finding roots of nonlinear equation Object  Finding the solution of Newton-Raphson algorithm  Iterative approximation  Fast, but it may be fail to converge Initial guess

Bisection method  Convergence guaranteed

Evaluating integrals Rectangle approximation Polynomial approximation  Simpson ’ s rule

 Monte Carlo method  For high-frequency oscillation function or multiple integrals  Use random positions : uniformly distributed : # of random points between f(x) and x-axis Given two random number r 1 and r 2 :

Fitting curves to data sets  Least-squares algorithm  Fitting a function to a set of data points  Ex. 2D linear case Solve linear equation!