Chapter 4 Vector Tools for Graphics. Vectors – The Basics Lecture 11 Fri, Sep 19, 2003.

Slides:



Advertisements
Similar presentations
Computer Graphics - Geometry & Representation -
Advertisements

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.
1 Seminar of computational geometry Lecture #1 Convexity.
Vector Operations in R 3 Section 6.7. Standard Unit Vectors in R 3 The standard unit vectors, i(1,0,0), j(0,1,0) and k(0,0,1) can be used to form any.
Vector Calculus Mengxia Zhu Fall Objective Review vector arithmetic Distinguish points and vectors Relate geometric concepts to their algebraic.
Demetriou/Loizidou – ACSC330 – Chapter 4 Geometric Objects and Transformations Dr. Giorgos A. Demetriou Dr. Stephania Loizidou Himona Computer Science.
SCALARS AND VECTORS. Scalar is a simple physical quantity that is not changed by coordinate system rotations or translations. Expressing a scalar quantity.
CS 4731: Computer Graphics Lecture 6: Points, Scalars and Vectors Emmanuel Agu.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Geometry Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Representation Ed Angel Professor of Computer Science, Electrical and Computer Engineering,
Basic Math Vectors and Scalars Addition/Subtraction of Vectors Unit Vectors Dot Product.
Computer Graphics using OpenGL, 3 rd Edition F. S. Hill, Jr. and S. Kelley Chapter Vector Tools for Graphics.
Transformations. 2 Angel: Interactive Computer Graphics 3E © Addison-Wesley 2002 Coordinate-Free Geometry When we learned simple geometry, most of us.
Representation CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel.
Lecture 2: Geometry vs Linear Algebra Points-Vectors and Distance-Norm Shang-Hua Teng.
1 Computer Graphics Chapter 5 Vector Based Algorithms.
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.
Geometric Objects and Transformations Geometric Entities Representation vs. Reference System Geometric ADT (Abstract Data Types)
Computer Graphics Lecture 10 Fasih ur Rehman. Last Class Viewing – Perspectives – Projections.
Vectors Tools for Graphics.  To review vector arithmetic, and to relate vectors to objects of interest in graphics.  To relate geometric concepts to.
Geometry CSC 2141 Introduction to Computer Graphics.
1 Geometry. 2 Objectives Introduce the elements of geometry ­Scalars ­Vectors ­Points Develop mathematical operations among them in a coordinate-free.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
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.
2003CS Hons RW778 Graphics1 Chapter 3: Windows, viewports World coordinates rather than screen coordinates. World coordinates rather than screen coordinates.
Intro to 3D Models Angel Angel: Interactive Computer Graphics5E © Addison-Wesley
Mathematics for Graphics. 1 Objectives Introduce the elements of geometry  Scalars  Vectors  Points Develop mathematical operations among them in a.
©College of Computer and Information Science, Northeastern University CS 4300 Computer Graphics Prof. Harriet Fell Fall 2012 Lecture 12 – October 1, 2012.
Representation. Objectives Introduce concepts such as dimension and basis Introduce coordinate systems for representing vectors spaces and frames for.
16/5/ :47 UML Computer Graphics Conceptual Model Application Model Application Program Graphics System Output Devices Input Devices API Function.
What you should learn: Represent vectors as directed line segments. Write the component forms of vectors. Perform basic vector operations and represent.
C O M P U T E R G R A P H I C S Guoying Zhao 1 / 52 C O M P U T E R G R A P H I C S Guoying Zhao 1 / 52 Computer Graphics Three-Dimensional Graphics I.
Background Mathematics Aaron Bloomfield CS 445: Introduction to Graphics Fall 2006.
Chapter 10 Real Inner Products and Least-Square
Vector Tools for Computer Graphics
1 Graphics CSCI 343, Fall 2015 Lecture 9 Geometric Objects.
8.5.3 – Unit Vectors, Linear Combinations. In the case of vectors, we have a special vector known as the unit vector – Unit Vector = any vector with a.
CSC461: Lecture 13 Coordinates Objectives Introduce concepts such as dimension and basis Introduce concepts such as dimension and basis Introduce coordinate.
1 Representation. 2 Objectives Introduce concepts such as dimension and basis Introduce coordinate systems for representing vectors spaces and frames.
Copyright © Cengage Learning. All rights reserved. 6.3 Vectors in the Plane.
It’s time for Chapter 6… Section 6.1a Vectors in the Plane.
Vectors TS: Explicitly assessing information and drawing conclusions. Warm Up: a)What are the coordinates of A and B b)What is the distance between A and.
OBJECTIVES: Represent vectors as directed line segments Write the component forms of vectors Perform basic vector operations and represent them graphically.
Computer Graphics I, Fall 2010 Geometry.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Geometry.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Graphics Graphics Korea University kucg.korea.ac.kr Geometric Primitives 고려대학교 컴퓨터 그래픽스 연구실.
VECTORS and SCALARS Give me some DIRECTION!!!. PHYSICS QUANTITIES All quantities in Physics have a MAGNITUDE.
Introduction; Mathematical Foundations CS 445/645 Introduction to Computer Graphics David Luebke, Spring 2003.
Vectors. 2 Scalars and Vectors A scalar is a single number that represents a magnitude –E.g. distance, mass, speed, temperature, etc. A vector is a set.
Lecture 1 Linear algebra Vectors, matrices. Linear algebra Encyclopedia Britannica:“a branch of mathematics that is concerned with mathematical structures.
CIE Centre A-level Pure Maths
Vectors – The Dot Product Lecture 12 Mon, Sep 22, 2003.
ES2501: Statics/Unit 4-1: Decomposition of a Force
Does the set S SPAN R3 ?.
CSC461: Lecture 12 Geometry Objectives
STATICS (ENGINEERING MECHANICS-I)
Vectors, Linear Combinations and Linear Independence
Speed Pages 220 – 223.
Introduction to Computer Graphics with WebGL
6.1 Vectors in the Plane.
Lecture 2: Geometry vs Linear Algebra Points-Vectors and Distance-Norm
Orthogonal Projections
Rayat Shikshan Sanstha’s S.M.Joshi College, Hadapsar -28
6.3 Vectors in the Plane Ref. p. 424.
Vectors Tip or head: D Tail: C
Clipping Polygons Lecture 31 Fri, Nov 9, 2007.
Presentation transcript:

Chapter 4 Vector Tools for Graphics

Vectors – The Basics Lecture 11 Fri, Sep 19, 2003

Review of Vectors A point specifies a position. A vector specifies a direction and a magnitude. Generally, our vectors will be normalized to have a length of 1.

Operations on Points The difference between two points is a vector. v = P – Q The sum of two points is undefined. The product of a scalar and a point is undefined. We should avoid these operations in our programs.

Operations on Vectors The sum of two vectors is the vector that is defined by the parallogram rule. u v u + v

Operations on Vectors The difference between two vectors is a vector. u u – v v

Operations on Vectors The product of a vector and a scalar is a vector. v 4v4v

Operations on Points and Vectors The sum or difference of a point and a vector is a point. P v P + v Q – v v Q

Points vs. Vectors Points and vectors are not the same. OpenGL treats them differently. However, there is a certain equivalence: PP – O = v

Linear Combinations of Vectors A linear combination of vectors v 1, …, v n, is an expression a 1 v 1 + … + a n v n, where a 1, …, a n are real numbers. The linear combination is affine if a 1 + … + a n = 1.

Affine Linear Combinations For any set of vectors v 1, …, v n, the set of all affine linear combinations of v 1, …, v n defines a convex polygon. v1v1 v2v2 v3v3 v4v4

The Magnitude of a Vector The magnitude of a vector v = (a 1, …, a n ) is |v| = (a … + a n 2 ) 1/2 A vector of length 1 is a unit vector. A vector may be normalized by dividing it by its length: v/|v|.

The Vector Class We will use the Vector3 class whenever it is convenient. vector3.h vector3.cpp However, we must be aware that OpenGL knows nothing of our Vector3 class. To OpenGL, a “vector” is a 3- or 4- dimensional array of floats or doubles.