Vectors Mike Bailey Oregon State University Oregon State University Computer Graphics

Similar documents
V V V V. Vectors. Mike Bailey. Vectors have Direction and Magnitude. Magnitude: x y z. Computer Graphics.

V V The circumflex (^) tells us this is a unit vector

V V The circumflex (^) tells us this is a unit vector

4.1 Distance and Length

(arrows denote positive direction)

1. The unit vector perpendicular to both the lines. Ans:, (2)

Vector Geometry. Chapter 5

x 1. x n i + x 2 j (x 1, x 2, x 3 ) = x 1 j + x 3

What you will learn today

11.1 Three-Dimensional Coordinate System

Chapter 2: Force Vectors

Dot Product August 2013

Department of Physics, Korea University

The Cross Product. In this section, we will learn about: Cross products of vectors and their applications.

Course Notes Math 275 Boise State University. Shari Ultman

(1) Recap of Differential Calculus and Integral Calculus (2) Preview of Calculus in three dimensional space (3) Tools for Calculus 3

CHAPTER 4 VECTORS. Before we go any further, we must talk about vectors. They are such a useful tool for

Kevin James. MTHSC 206 Section 12.5 Equations of Lines and Planes

A = 3 B = A 1 1 matrix is the same as a number or scalar, 3 = [3].

DATE: MATH ANALYSIS 2 CHAPTER 12: VECTORS & DETERMINANTS

Review of Coordinate Systems

A VERY BRIEF LINEAR ALGEBRA REVIEW for MAP 5485 Introduction to Mathematical Biophysics Fall 2010

Name: ID: Math 233 Exam 1. Page 1

VECTORS IN COMPONENT FORM

Quantities which have only magnitude are called scalars. Quantities which have magnitude and direction are called vectors.

12.5 Equations of Lines and Planes

VECTORS. Given two vectors! and! we can express the law of vector addition geometrically. + = Fig. 1 Geometrical definition of vector addition

CHAPTER 10 VECTORS POINTS TO REMEMBER

EUCLIDEAN SPACES AND VECTORS

VISUAL PHYSICS ONLINE THE LANGUAGE OF PHYSICS SCALAR AND VECTORS

Department of Mathematical and Statistical Sciences University of Alberta

Magnetism and Vectors

Mechanics: Scalars and Vectors

Maple Output Maple Plot 2D Math 2D Output

VECTORS AND THE GEOMETRY OF SPACE

6.1.1 Angle between Two Lines Intersection of Two lines Shortest Distance from a Point to a Line

2.1 Scalars and Vectors

2) If a=<2,-1> and b=<3,2>, what is a b and what is the angle between the vectors?

Chapter 13: Vectors and the Geometry of Space

Chapter 13: Vectors and the Geometry of Space

Module 3: Cartesian Coordinates and Vectors

Fundamental Electromagnetics [ Chapter 2: Vector Algebra ]

Fundamental Electromagnetics ( Chapter 2: Vector Algebra )

1.1 Bound and Free Vectors. 1.2 Vector Operations

Distances in R 3. Last time we figured out the (parametric) equation of a line and the (scalar) equation of a plane:

Vectors for Physics. AP Physics C

A B Ax Bx Ay By Az Bz

Ch. 7.3, 7.4: Vectors and Complex Numbers

MATH 12 CLASS 4 NOTES, SEP

Friday, 2 November 12. Vectors

Math 241, Exam 1 Information.

Problem 1: (3 points) Recall that the dot product of two vectors in R 3 is

Vectors. Introduction. Prof Dr Ahmet ATAÇ

8. Find r a! r b. a) r a = [3, 2, 7], r b = [ 1, 4, 5] b) r a = [ 5, 6, 7], r b = [2, 7, 4]

Chapter 6: Vector Analysis

Vectors. Introduction

WYSE Academic Challenge. First add the two vectors together to get 2i + 5j k. Then find the length of this vector, which gives a result of 30.

Solutions to Selected Questions from Denis Sevee s Vector Geometry. (Updated )

Section 10.7 The Cross Product

CALCULUS III. prepared by

12.1. Cartesian Space

Culminating Review for Vectors

MAT 1339-S14 Class 10 & 11

MATH 2730: Multivariable Calculus. Fall 2018 C. Caruvana

x 9 or x > 10 Name: Class: Date: 1 How many natural numbers are between 1.5 and 4.5 on the number line?

Vectors and Matrices

MATH 12 CLASS 2 NOTES, SEP Contents. 2. Dot product: determining the angle between two vectors 2

Vectors and 2D Kinematics. AIT AP Physics C

Solutions to Chapter Review Questions, Chapter 0

Mathematics 2203, Test 1 - Solutions

11.4 Dot Product Contemporary Calculus 1

The Inner Product (Many slides adapted from Octavia Camps and Amitabh Varshney) Much of material in Appendix A. Goals

8.4. Systems of Equations in Three Variables. Identifying Solutions 2/20/2018. Example. Identifying Solutions. Solving Systems in Three Variables

Vectors. The standard geometric definition of vector is as something which has direction and magnitude but not position.

Math review. Math review

Introduction. Chapter Points, Vectors and Coordinate Systems

Chapter 11. Angular Momentum

2010 Fermat Contest (Grade 11)

Vector components and motion

6. Vectors. Given two points, P 0 = (x 0, y 0 ) and P 1 = (x 1, y 1 ), a vector can be drawn with its foot at P 0 and

Multivariable Calculus: Chapter 13: Topic Guide and Formulas (pgs ) * line segment notation above a variable indicates vector

Vectors. J.R. Wilson. September 28, 2017

Chapter 3 Vectors. 3.1 Vector Analysis

Essential Mathematics for Computer Graphics

Systems of Linear Equations

Linear Algebra: Homework 3

How can we find the distance between a point and a plane in R 3? Between two lines in R 3? Between two planes? Between a plane and a line?

Vector equations of lines in the plane and 3-space (uses vector addition & scalar multiplication).

VECTORS. 3-1 What is Physics? 3-2 Vectors and Scalars CHAPTER

MTH MTH Lecture 6. Yevgeniy Kovchegov Oregon State University

MAC Module 5 Vectors in 2-Space and 3-Space II

Math 3c Solutions: Exam 1 Fall Graph by eliiminating the parameter; be sure to write the equation you get when you eliminate the parameter.

This pre-publication material is for review purposes only. Any typographical or technical errors will be corrected prior to publication.

Section 8.4 Vector and Parametric Equations of a Plane

Give a geometric description of the set of points in space whose coordinates satisfy the given pair of equations.

CSC 470 Introduction to Computer Graphics. Mathematical Foundations Part 2

Chapter 1: Precalculus Review

Vector Operations. Vector Operations. Graphical Operations. Component Operations. ( ) ˆk

Mathematics for 3D Graphics

Math 234. What you should know on day one. August 28, You should be able to use general principles like. x = cos t, y = sin t, 0 t π.

Transcription:

1 Vectors Mike Bailey mjb@cs.oregonstate.edu vectors.pptx

Vectors have Direction and Magnitude 2 Magnitude: V V V V 2 2 2 x y z

A Vector Can Also Be Defined as the Positional Difference Between Two Points 3 ( x, y, z ) ( P x, P y, P z ) ( V, V, V ) ( P, P, P) x y z x x y y z z

Unit Vectors have a Magnitude = 1.0 4 V V V V V Vˆ V 2 2 2 x y z The circumflex (^) tells us this is a unit vector

Dot Product 5 A ( Ax, Ay, Az) B ( Bx, By, Bz) AB( A B A B A B ) A B cos x x y y z z Because it produces a scalar result (i.e., a single number), this is also called the calar Product

A Physical Interpretation of the Dot Product 6 A ˆB This is important memorize this phrase! ABˆ A cos ^ = How much of A lives in the B direction

A Physical Interpretation of the Dot Product 7 F The amount of the force accelerating the car along the road is how much of F is in the horizontal direction? F Fcos road This is easy to see in 2D, but a 3D version of the same problem is trickier.

A Physical Interpretation of the Dot Product 8 F The amount of the force accelerating the car along the road is how much of F is in the direction? F Fcos F ˆ road

A Physical Interpretation of the Dot Product 9 F F Fcos F ˆ road

Dot Products are Commutative 10 A B BA Dot Products are Distributive A( BC) ( AB) ( AC)

The Perpendicular to a 2D Vector 11 If V (x,y) then V ( y,x) You can tell that this is true because VV (x,y) ( y,x) xyxy 0 cos90

Cross Product 12 A ( Ax, Ay, Az) B ( Bx, By, Bz) AB( A B A B, A B A B, A B A B ) y z z y z x x z x y y x AB A B sin Because it produces a vector result (i.e., three numbers), this is also called the Vector Product

A Physical Interpretation of the Cross Product 13 ABˆ A sin A This is important memorize this phrase! ˆB ^ = How much of A lives perpendicular to the B direction

The Perpendicular Property of the Cross Product 14 The vector A B is both perpendicular to A and perpendicular to B AxB. The ight-hand-ule Property of the Cross Product Curl the fingers of your right hand in the direction that starts at A and heads towards B. Your thumb points in the direction of AxB. A B

Cross Products are Not Commutative 15 A BBA AxB. BxA. A B A B Cross Products are Distributive A( BC) ( AB) ( AC)

A Use for the Cross Product : Finding a Vector Perpendicular to a Plane (= the urface Normal) 16 n n ( ) ( )

A Use for the Cross Product : Finding a Vector Perpendicular to a Plane (= the urface Normal) This is used in CG Lighting 17

A Use for the Cross and Dot Products : Is a Point Inside a Triangle? 3D (X-Y-Z) Version 18 n Let: n ( ) ( ) P n ( ) ( P) q n ( ) ( P) r n ( ) ( P) s If ( nn ),( nn ), and( nn ) q r s are all positive, then P is inside the triangle

n Is a Point Inside a Triangle? This can be simplified if you are in 2D (X-Y) E ( P) ( ) 19 where: (, ) x x y y P and: (, ) y y x x If E, E, E imilarly, E ( P) ( ) E ( P) ( ) are all positive, then P is inside the triangle

A Use for the Cross Product : Finding the Area of a 3D Triangle 20 height Area Base 1 BaseHeight 2 Height sin 1 1 Area sin ( ) ( ) 2 2

21 Derivation of the Law of Cosines q r s s 2 2 s ) ( ) ( 2 s )] ( ) [( )] ( ) [( 2 s ) ( ) 2( )] )( [( )] )( [( 2 s qr r q s cos 2 2 2 2

Derivation of the Law of ines 22 r q 2* Area( ) ( ) ( ) rs sin s But, the area is the same regardless of which two sides we use to compute it, so: rs sin qs sin qr sin Dividing by (qrs) gives: sin q sin r sin s

P d Distance from a Point to a Plane nˆ In high school, you defined a plane by: Ax + By + Cz + D = 0 23 It is more useful to define it by a point on the plane combined with the plane s normal vector If you want the familiar equation of the plane, it is: x,y,z,, (n,n,n ) 0 which expands out to become the more familiar Ax + By + Cz + D = 0 x y z x y z The perpendicular distance from the point P to the plane is based on the plane equation: d P nˆ The dot product is answering the question How much of (P-) is in the direction?. Note that this gives a signed distance. If d > 0., then P is on the same side of the plane as the normal points. This is very useful. ˆn

Where does a line segment intersect an infinite plane? 24 P 1 nˆ P The equation of the line segment is: P (1 tp ) tp 0 1 If point P is in the plane, then: P,P,P,, (n,n,n ) 0 x y z x y z x y z If we substitute the parametric expression for P into the plane equation, then the only thing we don t know in that equation is t. olve it for t*. Knowing t* will let us compute the (x,y,z) of the actual intersection using the line equation. If t* has a zero in the denominator, then that tells us that t*=, and the line must be parallel to the plane. This gives us the point of intersection with the infinite plane. We could now use the method covered a few slides ago to see if P lies inside a particular triangle. P 0

Minimal Distance Between Two 3D Lines 25 v p d v q P 0 0 The equation of the lines are : P P 0 t v p 0 t v q The minimal distance vector between the two lines must be perpendicular to both A vector between them that is perpendicular to both is: v v p v q We need to answer the question How much of ( 0 -P 0 ) is in the direction?. To do this, we once again use the dot product: d P 0 0 vˆ v

Another use for Dot Products : Force One Vector to be Perpendicular to Another Vector 26 Here, we want to force A to become perpendicular to B A A ˆB A But, A The strategy is to get rid of the parallel component, leaving just the perpendicular A A A A A A ( ABˆ) Bˆ o that A A A( ABˆ) Bˆ This is known as Gram-chmidt orthogonalization