Computer Graphics (CS 543) Lecture 3 (Part 1): Linear Algebra for Graphics (Points, Scalars, Vectors)

Similar documents
Computer Graphics (CS 4731) Lecture 7: Linear Algebra for Graphics (Points, Scalars, Vectors)

To Do. Vectors. Motivation and Outline. Vector Addition. Cartesian Coordinates. Foundations of Computer Graphics (Spring 2010) x y

Analytically, vectors will be represented by lowercase bold-face Latin letters, e.g. a, r, q.

MATH1131 Mathematics 1A Algebra

DEFINITION OF ASSOCIATIVE OR DIRECT PRODUCT AND ROTATION OF VECTORS

Things to Memorize: A Partial List. January 27, 2017

set is not closed under matrix [ multiplication, ] and does not form a group.

VECTORS, TENSORS, AND MATRICES. 2 + Az. A vector A can be defined by its length A and the direction of a unit

1.2 What is a vector? (Section 2.2) Two properties (attributes) of a vector are and.

Chapter 4 Contravariance, Covariance, and Spacetime Diagrams

On the diagram below the displacement is represented by the directed line segment OA.

Vectors. Introduction. Definition. The Two Components of a Vector. Vectors

4 VECTORS. 4.0 Introduction. Objectives. Activity 1

Chapter 2. Vectors. 2.1 Vectors Scalars and Vectors

CHAPTER 5 Newton s Laws of Motion

2. VECTORS AND MATRICES IN 3 DIMENSIONS

STRAND J: TRANSFORMATIONS, VECTORS and MATRICES

Phys101 Lecture 4,5 Dynamics: Newton s Laws of Motion

9.4. The Vector Product. Introduction. Prerequisites. Learning Outcomes

Mathematics. Area under Curve.

S56 (5.3) Vectors.notebook January 29, 2016

Vector differentiation. Chapters 6, 7

13.3 CLASSICAL STRAIGHTEDGE AND COMPASS CONSTRUCTIONS

Thomas Whitham Sixth Form

Torsion in Groups of Integral Triangles

What we should know about Linear Algebra

Contact Analysis on Large Negative Clearance Four-point Contact Ball Bearing

CONIC SECTIONS. Chapter 11

CHAPTER 6 Introduction to Vectors

Higher Checklist (Unit 3) Higher Checklist (Unit 3) Vectors

Discussion Question 1A P212, Week 1 P211 Review: 2-D Motion with Uniform Force

mywbut.com Lesson 13 Representation of Sinusoidal Signal by a Phasor and Solution of Current in R-L-C Series Circuits

Chapter 1 VECTOR ALGEBRA

Coordinate geometry and vectors

KINEMATICS OF RIGID BODIES

Partial Derivatives. Limits. For a single variable function f (x), the limit lim

PHYS 705: Classical Mechanics. Small Oscillations: Example A Linear Triatomic Molecule

P 1 (x 1, y 1 ) is given by,.

CHAPTER 10 PARAMETRIC, VECTOR, AND POLAR FUNCTIONS. dy dx

ENGI 9420 Lecture Notes 7 - Fourier Series Page 7.01

7.1 Integral as Net Change and 7.2 Areas in the Plane Calculus

KINEMATICS OF RIGID BODIES

R(3, 8) P( 3, 0) Q( 2, 2) S(5, 3) Q(2, 32) P(0, 8) Higher Mathematics Objective Test Practice Book. 1 The diagram shows a sketch of part of


PHYS 601 HW3 Solution

Verification Analysis of the Slope Stability

Name Class Date. Line AB is parallel to line CD. skew. ABDC } plane EFHG. In Exercises 4 7, use the diagram to name each of the following.

LINEAR ALGEBRA APPLIED

3. Vectors. Home Page. Title Page. Page 2 of 37. Go Back. Full Screen. Close. Quit

Polynomials and Division Theory

Lecture Outline. Dispersion Relation Electromagnetic Wave Polarization 8/7/2018. EE 4347 Applied Electromagnetics. Topic 3c

1.2 What is a vector? (Section 2.2) Two properties (attributes) of a vector are and.

UCSD Phys 4A Intro Mechanics Winter 2016 Ch 4 Solutions

Elementary Linear Algebra

Discussion Introduction P212, Week 1 The Scientist s Sixth Sense. Knowing what the answer will look like before you start.

Bridging the gap: GCSE AS Level

Elementary Linear Algebra

Physics Jonathan Dowling. Lecture 9 FIRST MIDTERM REVIEW

Chapter 7: Applications of Integrals

Verification Analysis of the Redi Rock Wall

Optimization Lecture 1 Review of Differential Calculus for Functions of Single Variable.

Chapter 9 Definite Integrals

Uses of transformations. 3D transformations. Review of vectors. Vectors in 3D. Points vs. vectors. Homogeneous coordinates S S [ H [ S \ H \ S ] H ]

Stage 11 Prompt Sheet

along the vector 5 a) Find the plane s coordinate after 1 hour. b) Find the plane s coordinate after 2 hours. c) Find the plane s coordinate

Chapter 1. Linear Algebra

APPLICATIONS OF DEFINITE INTEGRALS

September 13 Homework Solutions

( ) Straight line graphs, Mixed Exercise 5. 2 b The equation of the line is: 1 a Gradient m= 5. The equation of the line is: y y = m x x = 12.

Basics of space and vectors. Points and distance. Vectors

Formulae For. Standard Formulae Of Integrals: x dx k, n 1. log. a dx a k. cosec x.cot xdx cosec. e dx e k. sec. ax dx ax k. 1 1 a x.

Lesson Notes: Week 40-Vectors

Homework Assignment 6 Solution Set

r x a x b x r y a y b y r z a z b z. (3-10 to 3-12) s, multiply v by 1/s. (3-2) The Scalar Product The scalar (or dot) product of two vectors a (3-3)

UNIT 5 QUADRATIC FUNCTIONS Lesson 3: Creating Quadratic Equations in Two or More Variables Instruction

Essential Question What conjectures can you make about perpendicular lines?

Reference. Vector Analysis Chapter 2

Alg. Sheet (1) Department : Math Form : 3 rd prep. Sheet

Vectors , (0,0). 5. A vector is commonly denoted by putting an arrow above its symbol, as in the picture above. Here are some 3-dimensional vectors:

NOT TO SCALE. We can make use of the small angle approximations: if θ á 1 (and is expressed in RADIANS), then

Lecture 8. Newton s Laws. Applications of the Newton s Laws Problem-Solving Tactics. Physics 105; Fall Inertial Frames: T = mg

Generalized Surface Area of Revolution

Second degree generalized gauss-seidel iteration method for solving linear system of equations. ABSTRACT

PHYS 1114, Lecture 1, January 18 Contents:

CHAPTER 6 APPLICATIONS OF DEFINITE INTEGRALS

7.1 Integral as Net Change Calculus. What is the total distance traveled? What is the total displacement?

11-755/ Machine Learning for Signal Processing. Algebra. Class August Instructor: Bhiksha Raj

STATICS VECTOR MECHANICS FOR ENGINEERS: and Centers of Gravity. Eighth Edition CHAPTER. Ferdinand P. Beer E. Russell Johnston, Jr.

5: The Definite Integral

Mathematics Higher Block 3 Practice Assessment A

How do we solve these things, especially when they get complicated? How do we know when a system has a solution, and when is it unique?

F is on a moving charged particle. F = 0, if B v. (sin " = 0)

C Precalculus Review. C.1 Real Numbers and the Real Number Line. Real Numbers and the Real Number Line

Log1 Contest Round 3 Theta Individual. 4 points each 1 What is the sum of the first 5 Fibonacci numbers if the first two are 1, 1?

Inner-product spaces

a * a (2,1) 1,1 0,1 1,1 2,1 hkl 1,0 1,0 2,0 O 2,1 0,1 1,1 0,2 1,2 2,2

Math 32B Discussion Session Session 7 Notes August 28, 2018

Summary Information and Formulae MTH109 College Algebra

Shape and measurement

Time : 3 hours 03 - Mathematics - March 2007 Marks : 100 Pg - 1 S E CT I O N - A

Transcription:

Coputer Grphics (CS 543) Lecture 3 (Prt ): Liner Alger for Grphics (Points, Sclrs, Vectors) Prof Enuel Agu Coputer Science Dept. Worcester Poltechnic Institute (WPI)

Points, Sclrs nd Vectors Points, vectors defined reltive to coordinte sste Point: Loction in coordinte sste Eple: Point (5,4) Cnnot dd or scle points 5 (5,4) 4 (0,0)

Vectors Mgnitude Direction NO position Cn e dded, scled, rotted CG vectors:, 3 or 4 diensions Length Angle

Vector-Point Reltionship Sutrct points = vector v = Q P P point + vector = point P + v = Q v Q

Vector Opertions Define vectors (,, 3), ) (, 3 Then vector ddition: (,, 3 3 ) +

Vector Opertions Define sclr, s Scling vector sclr s ( s, s, 3 s ) Note vector sutrction: ( ( ), ( ), 3 ( 3 )) -.5

Vector Opertions: Eples Scling vector sclr s ( s, s, 3 s ) Vector ddition: (,, 3 3 ) For eple, if =(,5,6) nd =(-,7,) nd s=6, then ( 3,, 3 ) (0,,7) s ( 3 s, s, s) (,30,36)

Affine Cointion Given vector (,, 3,..., n... n Affine cointion: Su of ll coponents = ) Conve ffine = ffine + no negtive coponent i.e,,... n non negtive

Mgnitude of Vector Mgnitude of... n Norliing vector (unit vector) â vector gnitude Note gnitude of norlied vector =. i.e... n

Mgnitude of Vector Eple: if = (, 5, 6) Mgnitude of 5 6 65 Norliing â 65, 5 65, 6 65

Conve Hull Sllest conve oject contining P,P,..P n Fored shrink wrpping points

Dot Product (Sclr product) Dot product, d... 3 3 For eple, if =(,3,) nd =(0,4,-) then ( 0) (3 4) ( ) 0

Properties of Dot Products Setr (or couttive): Linerit: Hoogeneit: And ) ( ) ( s s c c ) (

Angle Between Two Vectors c c c cos, sin c cos, c sin c c c c cos Sign of.c: c c c.c > 0.c = 0.c < 0

Angle Between Two Vectors Prole: Find ngle /w vectors = (3,4) nd c = (5,) Step : Find gnitudes of vectors nd c Step : Norlie vectors nd c 5 4, 5 3 ˆ 9, 9 5 ĉ 5 5 4 3 9 5 c

Angle Between Two Vectors Step 3: Find ngle s dot product ˆ cˆ ˆ cˆ 3 5, 4 5 5 9, 9 ˆ cˆ 5 5 9 5 8 9 5 3 9 0.854 Step 4: Find ngle s inverse cosine cos( 0.854) 3.36

Stndrd Unit Vectors Define i j,0,0 0,,0 k i k 0,0, 0 j So tht n vector, v, c i j ck,

Cross Product (Vector product),,,, If Then k j i ) ( ) ( ) ( Reeer using deterinnt k j i Note: is perpendiculr to nd

Cross Product Note: is perpendiculr to oth nd 0

Cross Product (Vector product) Clculte if = (3,0,) nd = (4,,8) 3,0, 4,,8 Using deterinnt i j k 3 0 4 8 Then ( 0 ) i (4 8) j (3 0) k i 6j 3k

Norl for Tringle using Cross Product Method plne n (p - p 0 ) = 0 n p n = (p - p 0 ) (p - p 0 ) norlie n n/ n p p 0 p Note tht right-hnd rule deterines outwrd fce

Newell Method for Norl Vectors Proles with cross product ethod: clcultion difficult hnd, tedious If vectors lost prllel, cross product is sll Nuericl inccurc result p Proposed Mrtin Newell t Uth (tepot gu) Uses forule, suitle for coputer Copute during esh genertion Roust! p 0 p

Newell Method Eple Eple: Find norl of polgon with vertices P0 = (6,,4), P=(7,0,9) nd P = (,,) Using siple cross product: ((7,0,9)-(6,,4)) X ((,,)-(6,,4)) = (,-3,-5) P - P0 P - P0 P (,,) PO (6,,4) P (7,0,9)

Newell Method for Norl Vectors Forule: Norl N = (,, ) N i0 N i0 N i0 i net( i) i net( i) i net( i) i net( i) i net( i) i net( i)

Newell Method for Norl Vectors Clculte coponent of norl N i0 i net( i) i net( i) P0 6 4 ()(3) ( )() (0)(6) 3 0 P P P0 7 6 0 9 4

Newell Method for Norl Vectors Clculte coponent of norl N i0 i net( i) i net( i) P0 6 4 ( 5)(3) (7)(8) ( )(7) 65 56 4 3 P P P0 7 6 0 9 4

Newell Method for Norl Vectors Clculte coponent of norl N i0 i net( i) i net( i) ( )() (6)() ( 5)() 6 0 5 P0 P P P0 6 7 6 0 4 9 4 Note: Using Newell ethod ields se result s Cross product ethod (,-3,-5)

Finding Vector Reflected Fro Surfce = originl vector n = norl vector r = reflected vector = projection of long n e = projection of orthogonl to n Note: Θ = Θ n e r r e Θ Θ - r e e

Fors of Eqution of Line Two-diensionl fors of line Eplicit: = +h Iplicit: + +c =0 Pretric: () = 0 + (-) () = 0 + (-) Pretric for of line - α More roust nd generl thn other fors Etends to curves nd surfces P o α P α P

Conveit An oject is conve iff for n two points in the oject ll points on the line segent etween these points re lso in the oject P P Q Q conve not conve

References Angel nd Shreiner, Interctive Coputer Grphics, 6 th edition, Chpter 3 Hill nd Kelle, Coputer Grphics using OpenGL, 3 rd edition, Sections 4. - 4.4