Computer Graphics Some Mathematics CS 385 February 23, 2005.

Slides:



Advertisements
Similar presentations
Computer Graphics - Geometry & Representation -
Advertisements

Year 10 Pathway C Mr. D. Patterson.  Distinguish between scalar and vector quantities  Add and subtract vectors in 2 dimensions using scaled diagrams.
6.3 Vectors in the Plane Many quantities in geometry and physics, such as area, time, and temperature, can be represented by a single real number. Other.
Demetriou/Loizidou – ACSC330 – Chapter 4 Geometric Objects and Transformations Dr. Giorgos A. Demetriou Dr. Stephania Loizidou Himona Computer Science.
Vectors and the Geometry of Space
Section 9.3 The Dot Product
Chapter 7: Vectors and the Geometry of Space
Chapter 4.1 Mathematical Concepts
Chapter 4.1 Mathematical Concepts. 2 Applied Trigonometry Trigonometric functions Defined using right triangle  x y h.
Introduction to Vectors March 2, What are Vectors? Vectors are pairs of a direction and a magnitude. We usually represent a vector with an arrow:
Vectors in Two and Three Dimensions. Definition A vector is a quantity that is determined by a magnitude and a direction.
Chapter 2: Vectors Ian Parberry University of North Texas Fletcher Dunn Valve Software 3D Math Primer for Graphics and Game Development.
Copyright © 2014, 2010, 2007 Pearson Education, Inc. 1 Section 6.6 Vectors.
PHY 1151 Principles of Physics I
Vectors Sections 6.6. Objectives Rewrite a vector in rectangular coordinates (in terms of i and j) given the initial and terminal points of the vector.
Chapter 12 Vectors A. Vectors and scalars B. Geometric operations with vectors C. Vectors in the plane D. The magnitude of a vector E. Operations with.
Chapter 3: VECTORS 3-2 Vectors and Scalars 3-2 Vectors and Scalars
VECTORS AND THE GEOMETRY OF SPACE Vectors VECTORS AND THE GEOMETRY OF SPACE In this section, we will learn about: Vectors and their applications.
Section 9.2 Vectors Goals Goals Introduce vectors. Introduce vectors. Begin to discuss operations with vectors and vector components. Begin to discuss.
Copyright © Cengage Learning. All rights reserved.
VECTORS AND THE GEOMETRY OF SPACE 12. VECTORS AND THE GEOMETRY OF SPACE So far, we have added two vectors and multiplied a vector by a scalar.
Copyright © Cengage Learning. All rights reserved.
Definitions Examples of a Vector and a Scalar More Definitions
APPLICATIONS OF TRIGONOMETRY
Vectors. Definitions Scalar – magnitude only Vector – magnitude and direction I am traveling at 65 mph – speed is a scalar. It has magnitude but no direction.
Graphics CSE 581 – Interactive Computer Graphics Mathematics for Computer Graphics CSE 581 – Roger Crawfis (slides developed from Korea University slides)
Little Linear Algebra Contents: Linear vector spaces Matrices Special Matrices Matrix & vector Norms.
Vectors and the Geometry of Space
Copyright © Cengage Learning. All rights reserved. 12 Vectors and the Geometry of Space.
Geometry CSC 2141 Introduction to Computer Graphics.
3-2 Vectors and Scalars  Is a number with units. It can be positive or negative. Example: distance, mass, speed, Temperature… Chapter 3 Vectors  Scalar.
H.Melikyan/12001 Vectors Dr.Hayk Melikyan Departmen of Mathematics and CS
6.1 – Vectors in the Plane. What are Vectors? Vectors are a quantity that have both magnitude (length) and direction, usually represented with an arrow:
Section 10.2a VECTORS IN THE PLANE. Vectors in the Plane Some quantities only have magnitude, and are called scalars … Examples? Some quantities have.
3.1 Introduction to Vectors.  Vectors indicate direction; scalars do not  Examples of scalars: time, speed, volume, temperature  Examples of vectors:
Vectors and the Geometry of Space 9. Vectors 9.2.
Slide Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley.
Copyright © Cengage Learning. All rights reserved. 12 Vectors and the Geometry of Space.
VECTORS. A vector is a quantity that has both magnitude and direction. It is represented by an arrow. The length of the vector represents the magnitude.
Introduction to Vectors (Geometric)
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.
Mathematics Vectors 1 This set of slides may be updated this weekend. I have given you my current slides to get you started on the PreAssignment. Check.
CHAPTER 3: VECTORS NHAA/IMK/UNIMAP.
8.4 Vectors. A vector is a quantity that has both magnitude and direction. Vectors in the plane can be represented by arrows. The length of the arrow.
Vectors in Two Dimensions. VECTOR REPRESENTATION A vector represents those physical quantities such as velocity that have both a magnitude and a direction.
AP Physics C – Vectors. 1.1 Vectors. Vectors are mathematical quantities indicated by arrows. The length of the arrow denotes the magnitude or the size.
Copyright © Cengage Learning. All rights reserved. 12 Vectors and the Geometry of Space.
Vectors and Dot Product 6.4 JMerrill, Quick Review of Vectors: Definitions Vectors are quantities that are described by direction and magnitude.
PHY 093 – Lecture 1b Scalars & Vectors Scalars & vectors  Scalars – quantities with only magnitudes Eg. Mass, time, temperature Eg. Mass, time,
Vectors Vectors and Scalars Properties of vectors Adding / Sub of vectors Multiplication by a Scalar Position Vector Collinearity Section Formula.
Computer Graphics Mathematical Fundamentals Lecture 10 Taqdees A. Siddiqi
Vectors and Vector Addition. Vectors vs. Scalars Scalars are physical quantities having only magnitude– that is, a numerical value & units. Ex: a speed.
Vectors in the Plane 8.3 Part 1. 2  Write vectors as linear combinations of unit vectors.  Find the direction angles of vectors.  Use vectors to model.
5.0 VECTORS 5.2 Vectors in Two and Three Dimensions 5.2 Vectors in Two and Three Dimensions 5.3 Scalar Product 5.4 Vector Product 5.5 Application of Vectors.
Copyright © Cengage Learning. All rights reserved. Vectors in Two and Three Dimensions.
Vectors and the Geometry
CHAPTER 3 VECTORS NHAA/IMK/UNIMAP.
5.4 Vectors terminal point initial point Q v S w P R
6.1 – Vectors in the Plane.
Chapter 3 Vectors September 17, 2018 Chap 3.
Lecture 03: Linear Algebra
Math 200 Week 1- Wednesday Vectors.
Chapter 3 Vectors.
Vectors and the Geometry of Space
Notes: 8-1 Geometric Vectors
8.4 Vectors.
6.3 Vectors in the Plane Ref. p. 424.
CHAPTER 3 VECTORS NHAA/IMK/UNIMAP.
Notes: 8-1 Geometric Vectors
Presentation transcript:

Computer Graphics Some Mathematics CS 385 February 23, 2005

Vectors Many physical quantities such as temperature and speed are measured with a single number. But other quantities require more than one number. Examples include velocity (which=speed + direction) and certain forces where the strength and the direction are important. Vectors can be looked both algebraically and geometrically. We will be using both representations

Vectors from the Algebraic Point of View Vectors have a dimension A one dimensional vector is a real number A two dimensional vector is an ordered pair of real numbers written (x, y). x and y are called the coordinates of the vector. This can be generalized to any positive integral dimension n

Vectors can be added Let’s think about 2 – dimensional vectors. Let v = (v1,v2) and let w = (w1,w2) be two 2- dimensional vectors. Define v+w = (v1+w1, v2+w2) We can do the same for 3-dimensional (or any dimensional) vectors (v1,v2,v3)+(w1,w2,w3) = (z1+z2+z3)= (v1+w1+z1, v2+w2+z2, v3+w3+z3)

Sometimes we don’t care about the coordinates of the vector and we just write v+w = z The idea here is to think of vectors as ordinary numbers whenever possible. This way we can use our intuition of numbers and apply it to vectors. Of course not everything will work. We need to be careful and check things.

The zero vector There is a special vector denoted 0 and called the zero vector. In 2 dimensions, 0 = (0,0). Let’s note that 0 shares many of the same properties of our good old regular number 0. For any 2-dimensional vector v, we have, v+0=0+v=v

The negative of a vector Let v be a 2-dimensional vector. Let us show that there exists a vector that when added to v yields the 0 vector. Define –v = (-v1,-v2) Theorem: v + (-v) = 0 Proof: v+(-v)=(v1,v2)+(-v1,-v2)= (v1+(-v1),v2+(-v2))=(0,0) = 0

Scalars Scalars can be thought of as ordinary real numbers. In general they can be complex numbers or any elements in an algebraic structure called a field. But for our purposes, the field is the ordinary real numbers. Scalars are often written as lower case greek letters but I will use a, b, c, d, e, f, or a1.a2,

The coordinates of a vector come from the set of scalars. We can multiply a scalar by a vector by multiplying it coordinatewise: aV = a(v1,v2) = (av1,1v2)

Vectors from the Geometric Point of View Geometrically a vector is an arrow It is characterized by two quantities, its direction and its length. Its length is often called its magnitude.

Important Consequence of Definition of Vector from Geometric point of view Two vectors with the same length and same direction are actually the same vector

Addition of Geometric Vectors v w v + w

Addition of Geometric Vectors v w v + w = ? v + w

Subtraction of Geometric Vectors We define: v-w to be v + (-w)

Example v w v - w

Dot product between 2 vectors v·w = v1w1 + v2w2 Notice: The dot product of 2 vectors is a scalar.

Interesting Fact If v·w=0 then v and w are perpindicular

Norm of a vector ||v||= The norm of a vector is its length

Bringing in a little trig Some Formulas cosθ =

Next Time Matrices and Transformations