Vectors – Definition and Coordinate System Representation

Vectors are mathematical entities that represent both magnitude and direction. In computer graphics, vectors are used to define direction, movement, forces, and object orientation.

1. Vector

A vector is a quantity that has both magnitude and direction. It is commonly represented using arrows or ordered sets of numbers.

2. Vector Representation

Vectors can be represented graphically as arrows or mathematically using coordinates.

3. Coordinate System

A coordinate system provides a reference framework to represent vectors and points in space.

4. Vector Magnitude

The magnitude (length) of a vector represents the distance covered in the given direction.

|V| = √(x² + y²)   (2D)
|V| = √(x² + y² + z²)   (3D)

5. Unit Vector

A unit vector is a vector with magnitude equal to 1. It represents direction only.

6. Vector Addition

Vector addition combines two or more vectors to produce a resultant vector.

7. Vector Subtraction

Vector subtraction finds the difference between two vectors and determines relative direction.

8. Dot Product

The dot product of two vectors results in a scalar value and is used to find angles and projections.

A · B = |A||B| cosθ

9. Cross Product

The cross product of two vectors results in a vector perpendicular to both input vectors.

10. Importance of Vectors in Computer Graphics

Practice Questions

  1. Define vector.
  2. What is a unit vector?
  3. Explain vector addition.
  4. Define dot product.
  5. Why are vectors important in graphics?

Practice Task

Solve with examples: ✔ Vector magnitude ✔ Unit vector calculation ✔ Vector addition and subtraction