CS 4731: Computer Graphics Lecture 6: Points, Scalars and Vectors Emmanuel Agu.

Slides:



Advertisements
Similar presentations
Physics: Principles with Applications, 6th edition
Advertisements

Vector Calculus Mengxia Zhu Fall Objective Review vector arithmetic Distinguish points and vectors Relate geometric concepts to their algebraic.
General Physics (PHYS101)

Chapter 4.1 Mathematical Concepts
Phy 211: General Physics I Chapter 3: Vectors Lecture Notes.
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.
Computer Graphics using OpenGL, 3 rd Edition F. S. Hill, Jr. and S. Kelley Chapter Vector Tools for Graphics.
Phy 212: General Physics II Chapter : Topic Lecture Notes.
Chapter 3 Vectors in Physics.
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
1 Computer Graphics Chapter 5 Vector Based Algorithms.
Lecture 1eee3401 Chapter 2. Vector Analysis 2-2, 2-3, Vector Algebra (pp ) Scalar: has only magnitude (time, mass, distance) A,B Vector: has both.
Vectors.
Vectors. We will start with a basic review of vectors.
PHYS 218 sec Review Chap. 1. Caution This presentation is to help you understand the contents of the textbook. Do not rely on this review for.
Chapter 3: VECTORS 3-2 Vectors and Scalars 3-2 Vectors and Scalars
Scalar and Vector Fields
Kinetic energy Vector dot product (scalar product) Definition of work done by a force on an object Work-kinetic-energy theorem Lecture 10: Work and kinetic.
Chapter 3. Vector 1. Adding Vectors Geometrically
Multiplication with Vectors
ADDING INTEGERS Positive + Positive = Positive Positive + Positive = Positive ( +3) + (+2) = +5 ( +3) + (+2) = +5 When a number is positive, you do not.
MCV4U The Cross Product Of Two Vectors The cross product also called a "vector product" only exists in R 3. a CROSS b, produces a vector quantity.
Phys211C1V p1 Vectors Scalars: a physical quantity described by a single number Vector: a physical quantity which has a magnitude (size) and direction.
Vectors Tools for Graphics.  To review vector arithmetic, and to relate vectors to objects of interest in graphics.  To relate geometric concepts to.
COS 397 Computer Graphics Svetla Boytcheva AUBG, Spring 2013.
Vectors Measured quantity with Magnitude and Direction. Example: The wind velocity of 30 knots North The wind velocity of 30 knots North The weight of.
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.
Patrick Nichols Thursday, September 18, Linear Algebra Review.
Section 13.4 The Cross Product. Torque Torque is a measure of how much a force acting on an object causes that object to rotate –The object rotates around.
6.837 Linear Algebra Review Patrick Nichols Thursday, September 18, 2003.
Mathematics for Graphics. 1 Objectives Introduce the elements of geometry  Scalars  Vectors  Points Develop mathematical operations among them in a.
Vectors Vectors are represented by a directed line segment its length representing the magnitude and an arrow indicating the direction A B or u u This.
Higher Mathematics Unit 3.1 Vectors 1. Introduction A vector is a quantity with both magnitude and direction. It can be represented using a direct.
2-D motion (no projectiles – yet) Physics Chapter 3 section 1 Pages
Assigned work: pg.377 #5,6ef,7ef,8,9,11,12,15,16 Pg. 385#2,3,6cd,8,9-15 So far we have : Multiplied vectors by a scalar Added vectors Today we will: Multiply.
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.
Vector Tools for Computer Graphics
Lecture 2 Vectors.
VECTORS Vector: a quantity that is fully described by both magnitude (number and units) and direction. Scalar: a quantity that is described fully by magnitude.
CO1301: Games Concepts Dr Nick Mitchell (Room CM 226) Material originally prepared by Gareth Bellaby.
Chapter 3 Vectors. Vectors – physical quantities having both magnitude and direction Vectors are labeled either a or Vector magnitude is labeled either.
1 Graphics CSCI 343, Fall 2015 Lecture 9 Geometric Objects.
Vectors in Two Dimensions. VECTOR REPRESENTATION A vector represents those physical quantities such as velocity that have both a magnitude and a direction.
Learning Objectives Know the difference between scalar and vector quantities Know the graphical addition (subtraction) of vectors Know how to find the.
Vectors Vectors vs. Scalars Vector Addition Vector Components
Chi-Cheng Lin, Winona State University CS430 Computer Graphics Vectors Part I.
Chapter 3 Lecture 5: Vectors HW1 (problems): 1.18, 1.27, 2.11, 2.17, 2.21, 2.35, 2.51, 2.67 Due Thursday, Feb. 11.
Physics 141Mechanics Lecture 3 Vectors Motion in 2-dimensions or 3-dimensions has to be described by vectors. In mechanics we need to distinguish two types.
Are the quantities that has magnitude only only  Length  Area  Volume  Time  Mass Are quantities that has both magnitude and a direction in space.
6.4 Vectors and Dot Products Objectives: Students will find the dot product of two vectors and use properties of the dot product. Students will find angles.
Vectors Chapter 2.  Scalars and vectors : A scalar quantity: is a quantity that has magnitude only. Mass, time, speed, distance, pressure, Temperature.
Lecture Outline Chapter 3 Physics, 4th Edition James S. Walker
Dealing with Vectors Forces are used as an example though rules apply to any vector quantities.
ES2501: Statics/Unit 4-1: Decomposition of a Force
Chapter 3 Vectors.
Outline Addition and subtraction of vectors Vector decomposition
Lecture Outline Chapter 3
Scalars and Vectors.
Lecture 03: Linear Algebra
Vectors, Linear Combinations and Linear Independence
Physics 133 Electromagnetism
Lecture Outline Chapter 3 Physics, 4th Edition James S. Walker
Lecture Outline Chapter 3 Physics, 4th Edition James S. Walker
Week 2 Vectors in Physics.
Rayat Shikshan Sanstha’s S.M.Joshi College, Hadapsar -28
Lecture Outline Chapter 3 Physics, 4th Edition James S. Walker
Presentation transcript:

CS 4731: Computer Graphics Lecture 6: Points, Scalars and Vectors Emmanuel Agu

Points, Scalars and Vectors Points, vectors defined relative to a coordinate system

Vectors Magnitude Direction NO position Can be added, scaled, rotated CG vectors: 2, 3 or 4 dimensions Length Angle

Points Location in coordinate system Cannot add or scale Subtract 2 points = vector Point

Vector-Point Relationship Diff. b/w 2 points = vector v = Q – P Sum of point and vector = point v + P = Q P Q v

Vector Operations Define vectors and scalar, s Then vector addition: a a+b a

Vector Operations Scaling vector by a scalar Note vector subtraction: a b a-ba 2.5a

Vector Operations: Examples Scaling vector by a scalar For example, if a=(2,5,6) and b=(-2,7,1)and s=6, then Vector addition:

Affine Combination Summation of all components = 1 Convex affine = affine + no negative component

Magnitude of a Vector Magnitude of a Normalizing a vector (unit vector) Note magnitude of normalized vector = 1. i.e

Dot Product (Scalar product) Dot product, For example, if a=(2,3,1) and b=(0,4,-1) then

Dot Product Try your hands at these: ( 2, 2, 2, 2)( 4, 1, 2, 1.1) ( 2, 3, 1)( 0, 4, -1)

Dot Product Try your hands at these: ( 2, 2, 2, 2)( 4, 1, 2, 1.1) = = 16.2 ( 2, 3, 1)( 0, 4, -1) = –1 = 11

Properties of Dot Products Symmetry (or commutative): Linearity: Homogeneity: And

Angle Between Two Vectors c x b y Sign of b.c: b.c > 0 c b b b.c = 0 b c c b.c < 0

Angle Between Two Vectors Find the angle b/w the vectors b = (3,4) and c = (5,2)

Angle Between Two Vectors Find the angle b/w the vectors b = (3,4) and c = (5,2) |b|= 5, |c|= 5.385

Standard Unit Vectors Define So that any vector, y z x i j k 0

Cross Product (Vector product) If Then Remember using determinant Note: a x b is perpendicular to a and b

Cross Product Note: a x b is perpendicular to both a and b a x b a 0 b

Cross Product Calculate a x b if a = (3,0,2) and b = (4,1,8)

Cross Product Calculate a x b if a = (3,0,2) and b = (4,1,8) a x b = -2i – 16j + 3k

References Hill, chapter