Linear Interpolation (for curve 01).  This chapter discusses straight lines and flat surfaces that are defined by points.  The application of these.

Slides:



Advertisements
Similar presentations
Computer Graphics - Geometry & Representation -
Advertisements

Linear Equation in One Variable
5.1 Real Vector Spaces.
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.
Euclidean m-Space & Linear Equations Euclidean m-space.
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.
However, some functions are defined implicitly. Some examples of implicit functions are: x 2 + y 2 = 25 x 3 + y 3 = 6xy.
Lecture 10 Curves and Surfaces I
Computer Aided Engineering Design
11 Analytic Geometry in Three Dimensions
More about Polynomials
GEOMETRY Chapter 3: Angle Pairs, Lines and Planes
Offset of curves. Alina Shaikhet (CS, Technion)
Chapter 2 Basic Linear Algebra
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Geometry Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and.
Orthogonality and Least Squares
Chapter 3 Motion in Two Dimensions
VECTORS AND THE GEOMETRY OF SPACE Vectors VECTORS AND THE GEOMETRY OF SPACE In this section, we will learn about: Vectors and their applications.
Scalar and Vector Fields
VECTORS AND THE GEOMETRY OF SPACE 12. VECTORS AND THE GEOMETRY OF SPACE A line in the xy-plane is determined when a point on the line and the direction.
1 Chapter 2 Matrices Matrices provide an orderly way of arranging values or functions to enhance the analysis of systems in a systematic manner. Their.
5  Systems of Linear Equations: ✦ An Introduction ✦ Unique Solutions ✦ Underdetermined and Overdetermined Systems  Matrices  Multiplication of Matrices.
LIAL HORNSBY SCHNEIDER
Chapter one Linear Equations
Systems of Equations and Inequalities
1 Preliminaries Precalculus Review I Precalculus Review II
Vectors and the Geometry of Space
Copyright © Cengage Learning. All rights reserved. 12 Vectors and the Geometry of Space.
Presentation by: H. Sarper
1 Geometry. 2 Objectives Introduce the elements of geometry ­Scalars ­Vectors ­Points Develop mathematical operations among them in a coordinate-free.
Linear Algebra Chapter 4 Vector Spaces.
V. Space Curves Types of curves Explicit Implicit Parametric.
Multivariate Statistics Matrix Algebra II W. M. van der Veld University of Amsterdam.
SECOND-ORDER DIFFERENTIAL EQUATIONS Series Solutions SECOND-ORDER DIFFERENTIAL EQUATIONS In this section, we will learn how to solve: Certain.
H.Melikyan/12001 Vectors Dr.Hayk Melikyan Departmen of Mathematics and CS
Vectors. A line segment to which a direction has been assigned is called a directed line segment. The figure below shows a directed line segment form.
Chapter 6 Additional Topics in Trigonometry
Vectors and the Geometry of Space 9. Vectors 9.2.
Copyright © Cengage Learning. All rights reserved. 12 Vectors and the Geometry of Space.
Vectors CHAPTER 7. Ch7_2 Contents  7.1 Vectors in 2-Space 7.1 Vectors in 2-Space  7.2 Vectors in 3-Space 7.2 Vectors in 3-Space  7.3 Dot Product 7.3.
Vectors Addition is commutative (vi) If vector u is multiplied by a scalar k, then the product ku is a vector in the same direction as u but k times the.
Copyright © Cengage Learning. All rights reserved. 10 Topics in Analytic Geometry.
Slide Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley.
© 2010 Pearson Education, Inc. Lecture Outline Chapter 3 College Physics, 7 th Edition Wilson / Buffa / Lou.
Solving Systems of Equations Algebraically Chapter 3.2.
Basic Theory (for curve 02). 1.3 Parametric Curves  The main aim of computer graphics is to display an arbitrary surface so that it looks real.  The.
MAT 150 Module 10 – Systems of Equations Lesson 1 – Systems of Linear Equations.
Boyce/DiPrima 9 th ed, Ch 2.2: Separable Equations Elementary Differential Equations and Boundary Value Problems, 9 th edition, by William E. Boyce and.
Basic Theory (for curve 01). 1.1 Points and Vectors  Real life methods for constructing curves and surfaces often start with points and vectors, which.
Introduction to Meshes Lecture 22 Mon, Oct 20, 2003.
Section 1-1 Points and Lines. Each point in the plane can be associated with an ordered pair of numbers, called the coordinates of the point. Each ordered.
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 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Systems of Equations and Inequalities 9. Systems of Equations 9.1.
Vectors and the Geometry
1.1: Objectives Properties of Real Numbers
5 Systems of Linear Equations and Matrices
Computer Graphics Lecture 37
Chapter 3 VECTORS.
Systems of Linear Equations
CHAPTER 13 Geometry and Algebra.
4.3 Vectors.
Systems of Linear Equations
Vectors Revision.
Systems of Linear Equations
6.3 Vectors in the Plane Ref. p. 424.
Chapter 13 : Kinetics of A Particle – Force and acceleration
Presentation transcript:

Linear Interpolation (for curve 01)

 This chapter discusses straight lines and flat surfaces that are defined by points.  The application of these simple geometric figures to computer graphics is referred to as linear interpolation.

2.1 Straight Segments  We start with the parametric equation of a straight segment.  Given any two points A and C, the expression A+ (C−A) is the sum of a point and a vector, so it is a point that we can denote by B.

 The vector C−A points from A to C, so adding it to A results in a point on the line connecting A to C.  Thus, we conclude that the three points A, B, and C are collinear.

 Note that the expression B = A + (C − A) can be written B = (1 − )A + C, showing that B is a linear combination of A and C with barycentric weights.  In general, any of three collinear points can be written as a linear combination of the other two.  Such points are not independent.

 We therefore conclude that given two arbitrary points P 0 and P 1, the parametric representation of the line segment from P 0 to P 1 is

 The tangent vector of this line is the constant vector dP(t) / dt = P 1 −P 0 = d, the direction from P 0 to P 1.

Distance of a Point From a Line  Given a line in parametric form L(t) = P 0 + tv (where v is a vector in the direction of the line) and a point P, what is the distance between them?  Assume that Q is the point on L(t) that’s the closest to P.

 Point Q can be expressed as Q = L(t 0 ) = P 0 + t 0 v for some t 0.  The vector from Q to P is P−Q.  Since Q is the nearest point to P, this vector should be perpendicular to the line.

 Thus, we end up with the condition (P−Q)v = 0 or (P − P 0 − t 0 v) v = 0, which is satisfied by

 Substituting this value of t0 in the line equation gives  The distance between Q and P is the magnitude of vector P − Q.

 In the two-dimensional case, the line can be represented explicitly as y = ax+b and the problem can be easily solved with just elementary trigonometry.  Figure 2.1 shows a general point P = (P x, P y ) at a distance d from a line y = ax + b.

 It is easy to see that the vertical distance e between the line and P is |P y −aP x −b|.

 We also know from trigonometry that  implying

 We therefore get

Intersection of Lines  Here is a simple, fast algorithm for finding the intersection point(s) of two line segments.  Assuming that the two segments P 1 + (P 2 − P 1 ) and P 3 + β(P 4 − P 3 ) are given [Equation (2.1)], their intersection point satisfies

 This can also be written A + β B + C = 0, where A = P 2 − P 1, B = P 3 − P 4, and C = P 1 − P 3.  The solutions are

 The calculation of A, B, and C requires six subtractions.  The calculation of and β requires three subtractions, six multiplications (since the denominators are identical), and two divisions.

Example:  To calculate the intersection of the line segment from P 1 = (−1, 1) to P 2 = (1,−1) with the line segment from P 3 = (−1,−1) to P 4 = (1, 1), we first calculate  A = P 2 − P 1 = (2,−2),  B = P 3 − P 4 = (−2,−2),  C = P 1 − P 3 = (0, 2).

 Then calculate  The lines intersect at their midpoints.

Example:  The line segment from P 1 = (0, 0) to P 2 = (1, 0) and the line segment from P 3 = (2, 0) to P 4 = (2, 1) don’t intersect.  However, the calculation shows the values of and β necessary for them to intersect,

A = P 2 − P 1 = (1, 0), B = P 3 − P 4 = (0,−1), C = P 1 − P 3 = (−2, 0),  Yields

 The lines would intersect at = 2 (i.e., if we extend the first segment to twice its length beyond P 2 ) and β = 0 (i.e., point P 3 ).