1 / 29

# Vectors Tools for Graphics - PowerPoint PPT Presentation

Vectors Tools for Graphics. Vector, Geometry and CG. To review vector arithmetic, and to relate vectors to objects of interest in graphics. To relate geometric concepts to their algebraic representations. To describe lines and planes parametrically. To distinguish points and vectors properly.

I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.

## PowerPoint Slideshow about ' Vectors Tools for Graphics' - marlow

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.

- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

### Vectors Tools for Graphics

• To review vector arithmetic, and to relate vectors to objects of interest in graphics.

• To relate geometric concepts to their algebraic representations.

• To describe lines and planes parametrically.

• To distinguish points and vectors properly.

• To exploit the dot product in graphics topics.

• To develop tools for working with objects in 3D space, including the cross product of two vectors.

• Objects to be drawn

• Shape

• position

• orientation

• fundamental mathematical discipline to aid graphics is

• vector analysis

• transformation

The difference between two points is a vector: v = Q - P;

• Turning this around, we also say that a point Q is formed by displacing point P by vector v; we say that v offsets P to form Q. Algebraically, Q is then the sum:

Q = P + v.

• The sum of a point and a vector is a point: P + v = Q.

• At this point we represent a vector through a list of its components: an n-dimensional vector is given by an n-tuple:

• w = (w 1 , w 2 , . . . , w n )

• Scale

• a v + b w

• A linear combination of vector is affine combination if

• ex: 3 a + 2 b - 4 c

• Plus one more requirement

• ai >= 0 I = 1…m

• .3a+.7b

• 1.8a -.8b

• The set of coefficients a 1 , a 2 , . . . , a m is sometimes said to form a partition of unity, suggesting that a unit amount of material is partitioned into pieces.

Note that if w is the vector from point A to point B, then |w| will be the distance from A to B

It is often useful to scale a vector so that the result has a length equal to one. This is called normalizing a vector, and the result is known as a unit vector. For example, we form the normalized version of a, denoted , by scaling it with the value 1/|a|:

Ex. a = (3, -4),

The Sign of b.cand Perpendicularity.

the distance from a point C to the line through A

in the direction v is:

The cross product (also called the vector product) of two vectors is another vector. It has many useful properties, but the one we use most often is that it is perpendicular to both of the given vectors. The cross product is defined only for three-dimensional vectors.